After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142905 - vte fails compile on gcc 3.4.0
vte fails compile on gcc 3.4.0
Status: RESOLVED NOTGNOME
Product: vte
Classification: Core
Component: general
0.11.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
Depends on:
Blocks:
 
 
Reported: 2004-05-21 15:03 UTC by Stef van der Made
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Stef van der Made 2004-05-21 15:03:23 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
Comment 1 Mariano Suárez-Alvarez 2004-07-02 22:38:00 UTC
FC_WIDTH is defined in <fontconfig/fontconfig.h>, which is included in vtefc.c
What fontconfig are you using?
Comment 2 Stef van der Made 2004-07-03 13:08:29 UTC
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
Comment 3 Daniel Wilhelm 2004-10-20 14:06:58 UTC
<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.

Comment 4 Stef van der Made 2004-10-20 20:30:29 UTC
I currently don't have the compilation problem anymore. It looks like I had
duplicate fontconfig installs.