When compiling software which uses shared loadable modules on machines with GLIBC-2.3.4.20041102-r1 and NPTL support seems to break loadable modules support. Not sure if this is related to NPTL or stripped GLIBC. 1. in some cases you might compile but for an .so module to be able to load without missing symbols. It would need -lc attached to Reproducible: Always Steps to Reproduce: 1. download www.isd.no/sotest.tgz 2. compile gcc -c test2.c ld --shared -o test2.so test2.o gcc -Wall test.c -o test -ldl 3. Watch error if fails Actual Results: On a working box it compiles. On a non-working box it: /tmp/ccaA8wIq.o(.text+0x20): In function `main': : undefined reference to `dlopen' collect2: ld returned 1 exit status Expected Results: Work? ;) Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 22 2005, 01:39:27)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=pentium3 -mmmx -msse -mfpmath=sse -pipe -funroll-loops -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=pentium3 -mmmx -msse -mfpmath=sse -pipe -funroll-loops -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" MAKEOPTS="-j 2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X X509 Xaw3d a52 aac aalib acl acpi acpi4linux activefilter adns aim alsa apache2 apm arts asm atm avi bash-completion berkdb bitmap-fonts bootsplash bzip2 bzlib cdr cdrom clamav cle266 client codecs crypt cscope css ctype cups curl dba dbcp dbm devmap dhcp dio directfb divx4linux dv dvd dvdr dvdread eds emacs emboss emoticon encode erandom escreen esd esx ethereal evms2 fam fbcon flac flash foomaticdb fortran gd gdbm gif gmp gnokii gnome gnomedb gnutls gphoto2 gpm gprof gsm gstreamer gtk gtk2 gtkhtml guile hal icq icu idea imagemagick imap imlib imlib2 ipv6 ipv6arpa irda irmc java javascript jpeg junit kde libg++ libwww lzo lzw mad maildir md5sum mhash mikmod mmap mmx mmx2 mng mono motif mozilla mp3 mpeg mpeg2 mpeg4 mpi mplayer mppe-mppc msn multislot mysql ncurses net network nls nosendmail nptl nptlonly ntlm ogg oggvorbis openal opengl openssh operanom2 oss pam pcap pcmcia pcre pdf pdfkit pdflib perl png pnp ppds pthreads python qdbm qt quicktime rdesktop readline samba sasl scanner sdl server sftplogging shaper silc silverxp skey slang slp smime sms snmp soap sockets socks5 spamassassin spell sse sse2 ssl suid svga t1lib tcltk tcpd tcpmd5 tiff truetype truetype-fonts trusted type1 type1-fonts usagi usb utf8 v4l2 vcd vcdimager vhosts videos vidix vorbis wifi wmf xml xml2 xmms xpm xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Boxes that work have the following versions: box 1: gcc -v : 2.3.4.20041102-r1 gcc version 3.3.5-20050130 (Gentoo Hardened Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) /lib/libc-2.3.4.so: GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.5 (Gentoo Hardened Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1). Compiled on a Linux 2.6.8 system on 2005-03-17. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others linuxthreads-0.10 by Xavier Leroy The C stubs add-on version 2.1.2. GNU Libidn by Simon Josefsson BIND-8.2.3-T5B libthread_db work sponsored by Alpha Processor Inc NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. Box 2: gcc -v: Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6). Compiled on a Linux 2.4.21 system on 2004-10-24. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others linuxthreads-0.10 by Xavier Leroy BIND-8.2.3-T5B libthread_db work sponsored by Alpha Processor Inc NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
Info from box that doesn't work: Boxes that work have the following versions: Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1 GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1). Compiled on a Linux 2.6.8 system on 2005-05-04. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al The C stubs add-on version 2.1.2. GNU Libidn by Simon Josefsson BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
Compiling the GLIBC without USE="NPTL" and "NPTLONLY" makes the test program again work. Going to try to compile with NPTL and not with NPTLONLY now. -A-
This bugs get's visible with NPTLONLY being present in the USE flags... Been tested in 3 scenarios now and it only breaks with USE="NPTLONLY" being present.
Anyone looking at this??
Please try 2.3.5. Also, come talk to me on irc... I can't reproduce
Works fine here as well. Check that you have /usr/lib/libdl.so symlink, and no /usr/lib/libdl.so.2 libs is all I can suggest.
Intrestingly enough.. re emerging glibc and gcc per today removes the problems for now.. Will try to see if I can make it happen again.
closing per above comment...