I'm trying to build emacs from a current CVS checkout on OSX 10.4.11 with the configure option --with-ns. Build fails because of error in nsfonts.m. That file references a variable called gidx, which is not defined in the relevant structure. The attached patch changes all instances of gidx to x, and allows emacs to build on my system.