I am using gcc-3.1.1-r1 with only the standard options "-march=i686 -03 -pipe" I was trying to install gnome-db and in the process i had to install libgda which failed to emerge, here is the configure part of the process. --- >>> md5 ;-) libgda-0.2.96.tar.gz >>> Unpacking source... >>> Unpacking libgda-0.2.96.tar.gz patching file bindings/c++/gdaBatch.cpp patching file bindings/c++/gdaCommand.cpp patching file bindings/c++/gdaConnection.cpp patching file bindings/c++/gdaConnection.h patching file bindings/c++/gdaError.cpp patching file bindings/c++/gdaField.cpp patching file bindings/c++/gdaHelpers.h patching file bindings/c++/gdaRecordset.cpp >>> Source unpacked. creating cache ./config.cache checking for a BSD compatible install... /bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking for perl... /usr/bin/perl checking for strerror in -lcposix... no checking for gcc... gcc checking whether the C compiler (gcc -march=i686 -O3 -pipe ) works... yes checking whether the C compiler (gcc -march=i686 -O3 -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ -march=i686 -O3 -pipe ) works... yes checking whether the C++ compiler (c++ -march=i686 -O3 -pipe ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for bison... bison -y checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for Cygwin environment... no checking for mingw32 environment... no checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for glib-config... /usr/bin/glib-config checking for GLIB - version >= 1.2.0... yes checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.0.0... yes checking for ORBit... found checking for GConf >= 0.9... found checking for Bonobo >= 1.0.9... found checking for libxml... found checking for libxslt... found checking for gtkdoc-mkdb... false checking for scrollkeeper-config... /usr/bin/scrollkeeper-config checking for MySQL files... found mysql in /usr checking for LDAP files... found LDAP in /usr checking for ranlib... (cached) ranlib checking for working const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for unistd.h... yes checking for getpagesize... yes checking for working mmap... yes checking for argz.h... yes checking for limits.h... yes checking for locale.h... yes checking for nl_types.h... yes checking for malloc.h... yes checking for string.h... yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getcwd... yes checking for munmap... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for strchr... yes checking for strcasecmp... yes checking for strdup... yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for stpcpy... yes checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking for libintl.h... yes checking for gettext in libc... yes checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... ca da de el es fi fr ga gl hu it ja nl nn no pl pt pt_BR ru sk sl sv uk sed: can't read ./intl/po2tbl.sed.in: No such file or directory updating cache ./config.cache creating ./config.status creating Makefile creating libgda.spec creating macros/Makefile creating po/Makefile.in creating intl/Makefile creating idl/Makefile creating lib/Makefile creating lib/gda-common/Makefile creating lib/gda-client/Makefile creating lib/gda-server/Makefile creating bindings/Makefile creating bindings/c++/Makefile creating providers/Makefile creating providers/gda-default-server/Makefile creating providers/gda-odbc-server/Makefile creating providers/gda-mysql-server/Makefile creating providers/gda-postgres-server/Makefile creating providers/gda-primebase-server/Makefile creating providers/gda-sybase-server/Makefile creating providers/gda-tds-server/Makefile creating providers/gda-ldap-server/Makefile creating providers/gda-oracle-server/Makefile creating providers/gda-interbase-server/Makefile creating providers/gda-mdb-server/Makefile creating providers/gda-mail-server/Makefile creating tools/Makefile creating tools/gda-config creating tools/gda-buildserver creating tools/gda-buildclient creating tools/templates/Makefile creating testing/Makefile creating doc/Makefile creating doc/es/Makefile creating doc/C/Makefile creating doc/C/reference/Makefile creating doc/C/reference/libgda-common/Makefile creating doc/C/reference/libgda-client/Makefile creating doc/pt_BR/Makefile creating stamp.h creating config.h make all-recursive --- Then it began to compile for a while.. towards the end it died with the following error... --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/gconf/1 -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/usr/include -I/usr/include/orbit-1.0 -I../../lib/gda-common -I../../lib/gda-common -I../../lib/gda-server -I../../lib/gda-server -I/usr/include -march=i686 -O3 -pipe -c gda-ldap-connection.c cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory gda-ldap-connection.c: In function `gda_ldap_error_make': gda-ldap-connection.c:292: dereferencing pointer to incomplete type gda-ldap-connection.c:296: dereferencing pointer to incomplete type make[3]: *** [gda-ldap-connection.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/libgda-0.2.96-r2/work/libgda-0.2.96/providers/gda-ldap-server' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgda-0.2.96-r2/work/libgda-0.2.96/providers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgda-0.2.96-r2/work/libgda-0.2.96' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 58, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/gnome-extra/libgda/libgda-0.2.96-r2.ebuild . --- I hope this helps.
*** Bug 6552 has been marked as a duplicate of this bug. ***
I think the ebuild should have --disable-ldap instead of --without-ldap.
I can build it just fine, a gcc3.1 only problem ? (in that case it can be closed)
no activity anymore, probably gcc31 only bug. closing.