Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23411 - emerge mozilla (1.3-r2) results in : undefined reference to `__libc_csu_fini'
Summary: emerge mozilla (1.3-r2) results in : undefined reference to `__libc_csu_fini'
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-24 14:31 UTC by Matti Rendahl
Modified: 2003-07-11 14:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Rendahl 2003-06-24 14:31:24 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-30 14:48:55 UTC
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 ?
Comment 2 Matti Rendahl 2003-07-01 00:18:53 UTC
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  

Comment 3 Marc Doughty 2003-07-11 13:04:00 UTC
So this is no longer an issue. Let's mark it as fixed and get it off bugzilla.
Comment 4 Brad Laue (RETIRED) gentoo-dev 2003-07-11 14:37:15 UTC
Flaw in the build environment