var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/elf/ld.so /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.text+0x223): In function `pthread_initialize': : undefined reference to `_res' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.text+0xa0e): In function `__pthread_reset_main_thread': : undefined reference to `_h_errno' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.text+0xa14): In function `__pthread_reset_main_thread': : undefined reference to `_res' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.text+0xa1d): In function `__pthread_reset_main_thread': : undefined reference to `_errno' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.data.rel+0x698): undefined reference to `_errno' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.data.rel+0x6a0): undefined reference to `_h_errno' /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os) (.data.rel+0x6a8): undefined reference to `_res' collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/linuxthreads' make[1]: *** [linuxthreads/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5 failed. !!! Function toolchain-glibc_src_compile, Line 237, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # cat emerge --info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 23 2005, 01:56:54)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 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="-march=pentium-mmx -mtune=pentium-mmx -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer" CHOST="i586-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-mmx -mtune=pentium-mmx -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Please use "New -> Gentoo Linux -> Component: Ebuilds" in future. Infrastructure is not the correct addressee.
It looks like it's a problem with the linuxthreads part of glibc. Do you actually need linuxthreads compatibility? If not try remerging glibc with the "nptlonly" USE flag set and see if it works. --Peter
thread relating to bug report merged by mods into this thread: http://forums.gentoo.org/viewtopic-p-2352986.html PS - yes, nptlonly has been excluded on my systems by design, so i would respond that turning off linuxthreads and rebuilding all of my systems to hide the error isn't an optimal solution.
I get the same failure here too, but only on the one system. The forum thread says it is limited to i586 system, which this appears to confirm. Portage 2.0.51.20-r5 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 VIA Samuel 2 Gentoo Base System version 1.6.11 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=c3 -Os -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=c3 -Os -pipe -fomit-frame-pointer" DISTDIR="/mnt/portage/distfiles" FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/mnt/portage/packages/desatio" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow apache2 apm avi berkdb bitmap-fonts crypt cups curl emboss encode fam foomaticdb fortran gdbm gif gtk2 imlib jpeg libg++ libwww mad mbox mikmod mmx motif mp3 mpeg mysql ncurses oggvorbis opengl oss pdflib perl png ppds python quicktime readline samba session slang ssl svga tcpd tiff truetype-fonts type1-fonts usb vhosts xml xml2 xmms xv zlib linguas_en_GB" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
I confirm. I have the exact same error on the same architecture (VIA EPIA 800, whose processor is a Samuel 2, i.e. a 586 with MMX and 3DNow). Julien.
Confirmed on K6-2 with: Portage 2.0.51.20-r5 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.4.27-gentoo-r1 i586) 3D processor AuthenticAMD GNU/Linux System uname: 2.4.27-gentoo-r1 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.6.11 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.2 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -O3 -pipe" CHOST="i586-pc-linux-gnu" [ebuild U ] sys-libs/glibc-2.3.5 [2.3.4.20050125-r1] -build -debug -erandom -hardened (-multilib) -nls -nomalloccheck -nptl -nptlonly -pic -userlocales 0 kB /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x21a): In function `pthread_initialize': : undefined reference to `_res' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xa3a): In function `__pthread_reset_main_thread': : undefined reference to `_errno' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xa43): In function `__pthread_reset_main_thread': : undefined reference to `_h_errno' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xa55): In function `__pthread_reset_main_thread': : undefined reference to `_res' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x698): undefined reference to `_errno' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x6a0): undefined reference to `_h_errno' /glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x6a8): undefined reference to `_res' collect2: ld returned 1 exit status make[2]: *** [/home/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so] Error 1 -- Will try rebuilding with NPTLOnly now
Another i586 with the issue. This one an AMD K6-2. I'm a bit worried about the possibility of some apps that don't work with nptl threads, but I guess its time for nptl-only and see how it goes.
Bug #90236 seems to be the same issue And I can verify that nptlonly does indeed allow for a successfull compile.
yes, this is a linuxthreads problem, not an ntpl problem. ;)
*** This bug has been marked as a duplicate of 90236 ***