GNOME Bugzilla – Bug 135632
compile error in function gimp_font_list_font_desc_from_pattern
Last modified: 2004-06-06 15:13:20 UTC
Description of Problem: Won't compile. Stops with this message: if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../app -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -DG_LOG_DOMAIN=\"Gimp-Text\" -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -MT gimpfontlist.o -MD -MP -MF ".deps/gimpfontlist.Tpo" \ -c -o gimpfontlist.o `test -f 'gimpfontlist.c' || echo './'`gimpfontlist.c; \ then mv -f ".deps/gimpfontlist.Tpo" ".deps/gimpfontlist.Po"; \ else rm -f ".deps/gimpfontlist.Tpo"; exit 1; \ fi gimpfontlist.c: In function `gimp_font_list_font_desc_from_pattern': gimpfontlist.c:282: error: `FC_WIDTH' undeclared (first use in this function) gimpfontlist.c:282: error: (Each undeclared identifier is reported only once gimpfontlist.c:282: error: for each function it appears in.) gimpfontlist.c:286: error: `FC_WIDTH_NORMAL' undeclared (first use in this function) gimpfontlist.c:289: error: `FC_WIDTH_ULTRACONDENSED' undeclared (first use in this function) gimpfontlist.c:292: error: `FC_WIDTH_EXTRACONDENSED' undeclared (first use in this function) gimpfontlist.c:295: error: `FC_WIDTH_CONDENSED' undeclared (first use in this function) gimpfontlist.c:298: error: `FC_WIDTH_SEMICONDENSED' undeclared (first use in this function) gimpfontlist.c:301: error: `FC_WIDTH_SEMIEXPANDED' undeclared (first use in this function) gimpfontlist.c:304: error: `FC_WIDTH_EXPANDED' undeclared (first use in this function) gimpfontlist.c:307: error: `FC_WIDTH_EXTRAEXPANDED' undeclared (first use in this function) gimpfontlist.c:310: error: `FC_WIDTH_ULTRAEXPANDED' undeclared (first use in this function) gimpfontlist.c: In function `gimp_font_list_load_names': gimpfontlist.c:339: error: `FC_WIDTH' undeclared (first use in this function) make[3]: *** [gimpfontlist.o] Error 1 make[3]: Leaving directory `/home/rob/downloads/gimp-2.0pre3/app/text' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/rob/downloads/gimp-2.0pre3/app' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rob/downloads/gimp-2.0pre3' make: *** [all] Error 2
At first glance, this looks like a dependency check issue. If you have the appropriate version of fontconfig installed, and pkg-config picked it up at configure time, you should be OK. If configure didn't catch this, then this is probably a problem with configure.in. Here when I check for my fontconfig version, I get... dave@bolsh:~$ pkg-config --version fontconfig 0.15.0 And dave@bolsh:~$ locate fontconfig.h /usr/include/fontconfig/fontconfig.h Perhaps updating fontconfig will fix the problem. Cheers, Dave.
Here's what I get... root@rhudson1> pkg-config --version fontconfig 0.15.0 root@rhudson1> locate fontconfig.h /usr/include/fontconfig/fontconfig.h /usr/local/include/fontconfig/fontconfig.h /usr/X11R6/include/fontconfig/fontconfig.h Which shows the problem... I have (had) leftover fontconfig stuff from when fontconfig wasn't in debian's repository but I wanted to play with it. I removed the old ones and it's compiling now just fine. Thanks. Changing to notabug...
BTW, you're supposed to use --modversion, not --version when checking package versions with pkg-config.
*** Bug 143809 has been marked as a duplicate of this bug. ***