GNOME Bugzilla – Bug 302071
Compile fails with Gcc-4.0.0
Last modified: 2005-07-29 19:06:34 UTC
Please describe the problem: During compile libgnome-2.10.0 doesn't compile using gcc-4.0.0, glibc-2.3.3 The compile logs pops up these messages: ccache cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -Wall -Wmissing-prototypes -pthread -DORBIT2=1 -I/usr/test/garnome3/include/glib-2.0 -I/usr/test/garnome3/lib/glib-2.0/include -I/usr/test/garnome3/include/gnome-vfs-2.0 -I/usr/test/garnome3/lib/gnome-vfs-2.0/include -I/usr/test/garnome3/include/bonobo-activation-2.0 -I/usr/test/garnome3/include/libbonobo-2.0 -I/usr/test/garnome3/include/gconf/2 -I/usr/test/garnome3/include/orbit-2.0 -I/usr/test/garnome3/include -DG_DISABLE_DEPRECATED -DLIBGNOME_PREFIX=\"/usr/test/garnome3\" -DLIBGNOME_LIBDIR=\"/usr/test/garnome3/lib\" -DLIBGNOME_DATADIR=\"/usr/test/garnome3/share\" -DLIBGNOME_BINDIR=\"/usr/test/garnome3/bin\" -DLIBGNOME_LOCALSTATEDIR=\"/usr/test/garnome3/var\" -DLIBGNOME_SYSCONFDIR=\"/usr/test/garnome3/etc\" -DVERSION=\"2.10.0\" -DGNOMEVFSVERSION=\"2.10.1\" -DG_LOG_DOMAIN=\"Gnome\" -I/usr/test/garnome3/include -I/usr/test/garnome3/include -L/usr/test/garnome3/lib -O2 -pipe -mtune=athlon-tbird -m3dnow -Os -s -w -fomit-frame-pointer -funroll-loops -Wl,--as-needed -MT gnome-gconf.lo -MD -MP -MF .deps/gnome-gconf.Tpo -c gnome-gconf.c -DPIC cc: --as-needed: linker input file unused because linking not done gnome-gconf.c:33: error: array type has incomplete element type make[6]: *** [gnome-gconf.lo] Error 1 make[6]: Leaving directory `/usr/download/garnome-2.10.0.1/platform/libgnome/work/main.d/libgnome-2.10.0/libgnome' make[5]: *** [all] Error 2 Steps to reproduce: 1. Download libgnome 2. configure 3. compile Actual results: The compile ends Expected results: A completed compilation Does this happen every time? Yes Other information:
Temporary fix: add to config.h #define HAVE_POPT_H 1
This means configure can't find popt on your system. Is it installed in the default prefix or normal system prefix?
popt is installed in /usr/local and I've just installed the latest version. Only adding the #define HAVE_POPT_H 1 solved the issue :-(
*** Bug 303387 has been marked as a duplicate of this bug. ***
It looks like this patch that has been applied in CVS should fix compilation: http://cvs.gnome.org/ viewcvs/libgnome/libgnome/gnome-gconf.c?r1=1.48&r2=1.49 However, now libgnome is using popt.h without ever checking for it in configure, it only checks for libpopt. Maybe add an AC_CHECK_HEADER in configure.in? vasi (from Fink)
is that still an issue?
It's no longer in 2.11.1.