GNOME Bugzilla – Bug 142905
vte fails compile on gcc 3.4.0
Last modified: 2004-12-22 21:47:04 UTC
1 start compile using gcc-3.4.0 using garnome's build system for gnome 2.7 2 compile fails with this issue [===== NOW BUILDING: vte-0.11.11 =====] [fetch] complete for vte. [checksum] complete for vte. [extract] complete for vte. [patch] complete for vte. [configure] complete for vte. ==> Running make in work/main.d/vte-0.11.11 Making all in src cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/test/garnome/include -I/usr/X11R6/include -I/usr/test/garnome/include/glib-2.0 -I/usr/test/garnome/lib/glib-2.0/include -I/usr/test/garnome/include/gtk-2.0 -I/usr/test/garnome/lib/gtk-2.0/include -I/usr/local/include -I/usr/X11R6/include -I/usr/test/garnome/include/atk-1.0 -I/usr/test/garnome/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/X11R6/include -g -I/usr/test/garnome/include -I/usr/X11R6/include -L/usr/test/garnome/lib -L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387 -march=athlon-tbird -I/usr/X11R6/include -I/usr/X11R6/include -g -I/usr/test/garnome/include -I/usr/X11R6/include -L/usr/test/garnome/lib -L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387 -march=athlon-tbird -MT vtefc.lo -MD -MP -MF .deps/vtefc.Tpo -c vtefc.c -fPIC -DPIC -o .libs/vtefc.o cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/test/garnome/include -I/usr/X11R6/include -I/usr/test/garnome/include/glib-2.0 -I/usr/test/garnome/lib/glib-2.0/include -I/usr/test/garnome/include/gtk-2.0 -I/usr/test/garnome/lib/gtk-2.0/include -I/usr/local/include -I/usr/X11R6/include -I/usr/test/garnome/include/atk-1.0 -I/usr/test/garnome/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/X11R6/include -g -I/usr/test/garnome/include -I/usr/X11R6/include -L/usr/test/garnome/lib -L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387 -march=athlon-tbird -I/usr/X11R6/include -I/usr/X11R6/include -g -I/usr/test/garnome/include -I/usr/X11R6/include -L/usr/test/garnome/lib -L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387 -march=athlon-tbird -MT vteft2.lo -MD -MP -MF .deps/vteft2.Tpo -c vteft2.c -fPIC -DPIC -o .libs/vteft2.o vtefc.c: In function `_vte_fc_transcribe_from_pango_font_description': vtefc.c:163: error: `FC_WIDTH' undeclared (first use in this function) vtefc.c:163: error: (Each undeclared identifier is reported only once vtefc.c:163: error: for each function it appears in.) make[5]: *** [vtefc.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [all-recursive] Error 1 make[3]: *** [all] Error 2 make[2]: *** [build-work/main.d/vte-0.11.11/Makefile] Error 2 make[1]: *** [../../desktop/vte/cookies/main.d/install] Error 2 make: *** [paranoid-install] Error 2 I'm using kernel 2.6.6, gcc-3.4.0, glibc-2.3.2
FC_WIDTH is defined in <fontconfig/fontconfig.h>, which is included in vtefc.c What fontconfig are you using?
Fontconfig.h is showing this version * $RCSId: xc/lib/fontconfig/fontconfig/fontconfig.h,v 1.30 2002/09/26 00:17:27 keithp Exp $ I think that I've compiled the latest and greatest version of fontconfig a short while ago < 1 month
<fontconfig/fontconfig.h> seems to exist in two places: .../gonome/include/fontconfig/fontconfig.h (which defines FC_WIDTH) and /usr/X11R6/include/fontconfig/fontconfig.h Both directories are drawn in with the compile line. I get the same error. The version of the one in the X11 directory does not contain the define of FC_WIDTH. The version there is: $XFree86: xc/extras/fontconfig/fontconfig/fontconfig.h,v 1.1.1.1 2003/06/04 02:57:42 dawes Exp $ It stems from the compile of XFree86 of version 4.4.0.
I currently don't have the compilation problem anymore. It looks like I had duplicate fontconfig installs.