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 302071 - Compile fails with Gcc-4.0.0
Compile fails with Gcc-4.0.0
Status: RESOLVED FIXED
Product: libgnome
Classification: Deprecated
Component: general
2.10.x
Other All
: Normal normal
: ---
Assigned To: libgnome maintainer
libgnome maintainer
: 303387 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-26 16:54 UTC by Stef van der Made
Modified: 2005-07-29 19:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Stef van der Made 2005-04-26 16:54:03 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:
Comment 1 geoff 2005-06-12 02:41:14 UTC
Temporary fix: add to config.h
#define HAVE_POPT_H 1
Comment 2 Kjartan Maraas 2005-06-12 10:48:06 UTC
This means configure can't find popt on your system. Is it installed in the
default prefix or normal system prefix?
Comment 3 Stef van der Made 2005-06-14 19:17:41 UTC
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 :-(
Comment 4 Stef van der Made 2005-06-17 17:12:16 UTC
*** Bug 303387 has been marked as a duplicate of this bug. ***
Comment 5 Dave Vasilevsky 2005-07-01 06:06:45 UTC
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)
Comment 6 Sebastien Bacher 2005-07-23 13:07:46 UTC
is that still an issue?
Comment 7 Stef van der Made 2005-07-29 19:06:34 UTC
It's no longer in 2.11.1.