Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133164 - sys-libs/glibc-2.4-r2 undefined reference to `_dl_open'
Summary: sys-libs/glibc-2.4-r2 undefined reference to `_dl_open'
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2006-05-12 21:40 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-05-13 02:01 UTC (History)
0 users

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

compile stdout (log,72.07 KB, text/plain)
2006-05-12 22:36 UTC, DEMAINE Benoît-Pierre, aka DoubleHP

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-12 21:40:24 UTC
eemrge -va1 glibc

mv -f /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.aT /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.a
make[3]: Leaving directory `/mnt/big/portage/glibc-2.4-r2/work/glibc-2.4/elf'
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -r -o /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os '-Wl,-(' /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.a -lgcc '-Wl,-)' \
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -Wl,-z,now	\
		  -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,--verbose 2>&1 |	\
		  LC_ALL=C \
		  sed -e '/^=========/,/^=========/!d;/^=========/d'	\
		      -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
		  > /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -o /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/			\
		  -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,-z,now	\
		  /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os -Wl,--version-script=/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/		\
		  -Wl, -T /mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `dlmopen_doit':
rtld.c:(.text+0x13c): undefined reference to `_dl_open'
/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `.L468':
rtld.c:(.text+0x43d1): undefined reference to `_dl_close'
/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os:( undefined reference to `_dl_open'
/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os:( undefined reference to `_dl_close'
collect2: ld returned 1 exit status
make[2]: *** [/mnt/big/portage/glibc-2.4-r2/work/build-default-i686-pc-linux-gnu-nptl/elf/] Error 1
make[2]: Leaving directory `/mnt/big/portage/glibc-2.4-r2/work/glibc-2.4/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/big/portage/glibc-2.4-r2/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r2 failed.
Call stack:, line 1532:   Called dyn_compile, line 929:   Called src_compile
  glibc-2.4-r2.ebuild, line 1180:   Called toolchain-glibc_src_compile
  glibc-2.4-r2.ebuild, line 264:   Called die

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

eemrge --info:
Gentoo Base System version 1.12.0_pre19
Portage 2.1_pre7-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r7-Gentoo-moon_05 i686)
System uname: 2.6.16-gentoo-r7-Gentoo-moon_05 i686 AMD Athlon(tm) 4 Processor
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
dev-python/pycrypto: 2.0.1-r4
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
CFLAGS="-O2 -march=pentium3 -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
FEATURES="autoconfig distlocks keeptemp keepwork metadata-transfer noclean sandbox sfperms strict"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="x86 X a52 aac aalib acpi aim alsa amr amuled ao apache2 apic apm arts audiofile avi bash-completion berkdb bidi binfilter bitmap-fonts bl bonjour bootsplash cdda cdparanoia cdr cjk cli cmov cpudetection crypt cups curl cx8 dbus de dga directfb doc dri dts dv dvb dvd dvdread dynamic eds emboss encode esd ethereal examples fbcon ffmpeg flac flash foomaticdb fortran fping fpu freetype fxsr gdbm ggi gif gnome gnutls gpm gs gstreamer gtk gtk2 httpd i8x0 icq idea idn ieee1394 imagemagick imlib ipv6 irc isdnlog jabber jack java javascript jpeg kde lcms libcaca libg++ libwww lirc listentcp live lj logrotate lzo mad matrox mca mce mikmod mmx mmxext mono motif mozcalendar mp3 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pae pam pat pcre pdflib perl pge png pppd pse pse36 python qt quicktime rar readline real reflection rss rtc samba screen sdl sensord sep server session silc skey skins sndfile speex spell spl sse ssl startup-notification stream subtitles svg svga swat symlink tcpd tga theora threads tiff truetype truetype-fonts tsc type1-fonts unicode urandom usb v4l v4l2 vcd vim vlm vme vorbis win32codecs wmf wxwindows x264 xanim xinerama xml2 xmms xorg xosd xscreensaver xv xvid xvmc yahoo zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux userland_GNU video_cards_apm video_cards_chips video_cards_cirrus video_cards_fbdev video_cards_i810 video_cards_i128 video_cards_mga video_cards_nv video_cards_-nvidia video_cards_s3 video_cards_s3virge video_cards_sis video_cards_tga video_cards_trident video_cards_v4l video_cards_vesa video_cards_vga video_cards_via"

( woah ... new bugzilla allows lines longer than 80c ; really great to past compile lines :P )
Comment 1 SpanKY gentoo-dev 2006-05-12 21:52:56 UTC
what does `gcc-config -l` show ?  your build looks all screwed up, like it's trying to apply PIC stuff to all the wrong files
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-12 21:53:41 UTC
root@moon_gen:~# gcc-config -l
 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.6 *
 [7] i686-pc-linux-gnu-3.4.6-hardened
 [8] i686-pc-linux-gnu-3.4.6-hardenednopie
 [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.6-hardenednossp
Comment 3 SpanKY gentoo-dev 2006-05-12 22:02:29 UTC
run `MAKEOPTS=-j1 emerge glibc >& log` and post the log as an attachment
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-12 22:36:41 UTC
Created attachment 86681 [details]
compile stdout 

root@moon_gen:~# MAKEOPTS=-j1 emerge glibc >& log 2>log.e
root@moon_gen:~# cat log.e
mv: cannot stat `/mnt/big/portage/glibc-2.4-r2/temp/environment': No such file or directory
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-12 22:37:34 UTC
(In reply to comment #3)
> run `MAKEOPTS=-j1 emerge glibc >& log` and post the log as an attachment

see #3 
good luck
Comment 6 SpanKY gentoo-dev 2006-05-12 22:46:11 UTC
uhh, your portage is screwing it up:
>>> WORKDIR is up-to-date, keeping...

run `rm -rf /mnt/big/portage/glibc-2.4-r2/` and try to emerge again

you should also see about updating your portage, it's pretty out of date
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-13 02:01:33 UTC
emerge -DaNuv world
says to bother about glibc before portage.

I flushed /mnt/big/portage/ yesterday ... but this morning it worked when you told me to do it (again) :S