When emerge mozilla-1.3-r2 the build (link of nsinstall) will fail with : undefined reference to `__libc_csu_fini'. I really don't know if this is a bug in the ebuild, portage, or if my system has gone bad. Reproducible: Always Steps to Reproduce: 1. emerge net-www/mozilla/mozilla-1.3-r2.ebuild Actual Results: make[4]: Entering directory `/var/tmp/portage/mozilla-1.3-r2/work/mozilla/security/coreconf/nsinstall' gcc -o Linux2.4_x86_glibc_PTH_OPT.OBJ/nsinstall.o -c -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include -I../../../dist/public/coreconf -I../../../dist/private/coreconf -I../../../dist/include -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/nspr -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/dbm nsinstall.c gcc -o Linux2.4_x86_glibc_PTH_OPT.OBJ/pathsub.o -c -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include -I../../../dist/public/coreconf -I../../../dist/private/coreconf -I../../../dist/include -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/nspr -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/dbm pathsub.c gcc -o Linux2.4_x86_glibc_PTH_OPT.OBJ/nsinstall -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include -I../../../dist/public/coreconf -I../../../dist/private/coreconf -I../../../dist/include -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/nspr -I/var/tmp/portage/mozilla-1.3-r2/work/mozilla/dist/include/dbm Linux2.4_x86_glibc_PTH_OPT.OBJ/nsinstall.o Linux2.4_x86_glibc_PTH_OPT.OBJ/pathsub.o -L/lib -lpthread -ldl -lc /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../crt1.o(.text+0xc): In function `_start': : undefined reference to `__libc_csu_fini' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../crt1.o(.text+0x11): In function `_start': : undefined reference to `__libc_csu_init' collect2: ld returned 1 exit status make[4]: *** [Linux2.4_x86_glibc_PTH_OPT.OBJ/nsinstall] Error 1 Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21-z1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ rsync://planetmirror.com/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts nas bonobo svga tcltk java guile mysql sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla cdr apache2 X gtk2 gnome2 qt kde -alsa" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Have you maybe tried to drop the '-fomit-frame-pointer' from C[XX]FLAGS, and remerge glibc, then mozilla ? '-fomit-frame-pointer' is a origin of much evil (*g*) - anyhow, I have not seen this before, so without recreating it will be difficult to track. You are using unmodified gcc ebuild ?
I tried to remerge glibc, gcc/glibc and change C*FLAGS... the error was there all the time. Finally I grabbed a spare disk and rebuilt the system fromscratch (livecd) and the problem disappeared. So I'm convinced that my system had gone bad somehow. I noticed there is a inconsistency in which order gcc/glibc is built between emerge system/world/glibc and gccc. I did rebuild glibc and gcc at some stage, trying to track down a problem building some non-gentoo software with gcc3. Don't really know if this can have something to do with this case. This is how it looks: comedialabs current # emerge -ep system | grep '\(gcc\|glibc\)' [ebuild N ] sys-devel/gcc-config-1.3.3-r1 [ebuild N ] sys-devel/gcc-3.2.3-r1 [ebuild N ] sys-libs/glibc-2.3.2-r1 comedialabs current # emerge -ep world | grep '\(gcc\|glibc\)' [ebuild N ] sys-devel/gcc-config-1.3.3-r1 [ebuild N ] sys-devel/gcc-3.2.3-r1 [ebuild N ] sys-libs/glibc-2.3.2-r1 comedialabs current # emerge -ep glibc | grep '\(gcc\|glibc\)' [ebuild N ] sys-devel/gcc-config-1.3.3-r1 [ebuild N ] sys-devel/gcc-3.2.3-r1 [ebuild N ] sys-libs/glibc-2.3.2-r1 comedialabs current # emerge -ep gcc | grep '\(gcc\|glibc\)' [ebuild N ] sys-devel/gcc-config-1.3.3-r1 [ebuild N ] sys-libs/glibc-2.3.2-r1 [ebuild N ] sys-devel/gcc-3.2.3-r1
So this is no longer an issue. Let's mark it as fixed and get it off bugzilla.
Flaw in the build environment