Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88779 - libpng-1.2.8 failes to emerge due to error with glibc
Summary: libpng-1.2.8 failes to emerge due to error with glibc
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-11 15:09 UTC by Christopher Frömmel
Modified: 2005-08-16 05:54 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 Christopher Frömmel 2005-04-11 15:09:10 UTC
When I try to emerge libpng (gnome and many other packages need this) I get a strange error never seen (not even on a machine configured similar). Demonstrating link is given. 

Reproducible: Always
Steps to Reproduce:
1. emerge libpng
Actual Results:  
Emerge is stopping with this error:

/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3
Comment 1 Christopher Frömmel 2005-04-11 15:09:10 UTC
When I try to emerge libpng (gnome and many other packages need this) I get a strange error never seen (not even on a machine configured similar). Demonstrating link is given. 

Reproducible: Always
Steps to Reproduce:
1. emerge libpng
Actual Results:  
Emerge is stopping with this error:

/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3´
collect2: ld returned 1 exit status
make: *** [pngtest-static] Error 1
make: *** Waiting for unfinished jobs....
( /lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3´
collect2: ld returned 1 exit status
make: *** [pngtest] Error 1 )

I am not able to say what this means; hours of searching were a waste of time.

Expected Results:  
imlib-1.2.8 should be emerged cleanly.

pluescho@cruxx ~ $ 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.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 11 2005, 21:05:22)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
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.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium-m -mmmx -msse2 -mfpmath=sse,387 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mmmx -msse2 -mfpmath=sse,387 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LINGUAS="de"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 4kstacks X acpi alsa avi berkdb bitmap-fonts divx4linux dvd exif gdbm
gif gnome gtk imagemagick imlib jpeg mmx mozilla moznomail mp3 mpeg ncurses nocd
nptl nptlonly opengl pam perl png python readline sse ssl usb userlocales vcd
xine xml2 xmms xv xvid zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

I tried rebuilding the whole system with other CFLAGS, rebuilding glibc with all
 or none combinations auf nptl & nptlonly. The error occurs on all versions of
libpng given through portage. No other packages failed to emerge until now. My
2nd gentoo box cleanly emerge this package. Differences are: 2004.3 stage1 vs
2005.0 stage1 install; update to glibc with nptl support vs nptl from the
scratch; excessive use of CFLAGS vs nothing bad (see emerge --info output).
Nevertheless everytime it is the first-mentioned system that _does_ work.

Please help.
Comment 2 SpanKY gentoo-dev 2005-04-11 18:40:41 UTC
what does `ls /lib/lib*thread* -l` show ?
Comment 3 Christopher Frömmel 2005-04-12 03:46:24 UTC
pluescho@cruxx / $ ls -l /lib/lib*thread*
-rwxr-xr-x  1 root root 124173 Apr 11 22:07 /lib/libpthread-2.3.4.so
lrwxrwxrwx  1 root root     19 Apr 11 22:07 /lib/libpthread.so.0 -> libpthread-2.3.4.so
-rwxr-xr-x  1 root root  38040 Apr 11 22:07 /lib/libthread_db-1.0.so
lrwxrwxrwx  1 root root     19 Apr 11 22:07 /lib/libthread_db.so.1 -> libthread_db-1.0.so
Comment 4 Aleksander Blomskøld 2005-04-23 14:20:06 UTC
I have the same problem

 emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 23 2005, 19:22:11)]
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=athlon-xp -O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.du.se/pub/os/gentoo ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirror.aiya.ru/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa amd apm arts avi berkdb bitmap-fonts cdr cdrom codecs crypt cups curl docs dvd dvdr emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg mplayer msn ncurses network nls nvidia 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"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

ls -l /lib/lib*thread*
-rwxr-xr-x  1 root root 143492 Apr 23 22:06 /lib/libpthread-0.10.so
lrwxrwxrwx  1 root root     18 Apr 23 22:06 /lib/libpthread.so.0 -> libpthread-0.10.so
-rwxr-xr-x  1 root root  29046 Apr 23 22:06 /lib/libthread_db-1.0.so
lrwxrwxrwx  1 root root     19 Apr 23 22:06 /lib/libthread_db.so.1 -> libthread_db-1.0.so
Comment 5 Daniel Shorten 2005-05-18 10:29:50 UTC
I also have this problem:
emerge --info
Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Celeron (Mendocino)
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 17 2005, 04:18:37)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo
ftp://gentoo.risq.qc.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/
ftp://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups
emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6
jpeg libg++ libwww mad mikmod motif mp3 mpeg msn mysql ncurses nls ogg
oggvorbis opengl oss pam pdflib perl php png python quicktime readline
sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts usb
win32codecs xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS,
PORTDIR_OVERLAY

gentoo / # ls -l /lib/lib*thread*
-rwxr-xr-x  1 root root 143172 May 17 17:55 /lib/libpthread-0.10.so
lrwxrwxrwx  1 root root     18 May 17 17:55 /lib/libpthread.so.0 -> libpthread-0.10.so
-rwxr-xr-x  1 root root  28774 May 17 17:55 /lib/libthread_db-1.0.so
lrwxrwxrwx  1 root root     19 May 17 17:55 /lib/libthread_db.so.1 -> libthread_db-1.0.so
Comment 6 toss 2005-06-12 06:59:25 UTC
the "same" bug with postgresql :(

/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
collect2: ld returned 1 exit status
make[2]: *** [zic] Error 1
make[2]: Leaving directory
`/var/tmp/portage/postgresql-8.0.1-r3/work/postgresql-8.0.1/src/timezone'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/postgresql-8.0.1-r3/work/postgresql-8.0.1/src'
make: *** [all] Error 2

!!! ERROR: dev-db/postgresql-8.0.1-r3 failed.
!!! Function src_compile, Line 110, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 14 2005, 03:27:58)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.5, 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext apache2 bash-completion berkdb bind-mysql bitmap-fonts
caps cmov crypt cx8 de dedicated dlz fortran fpu fxsr gif hardenedphp
imagemagick imap imlib innodb jpeg libg++ libwww mca mce mmx mmxext msr mtrr
mysql ncurses nls odbc pae pam pat perl pge png pni postgres pse pse36 python
readline sasl sep spell ssl syscall tcpd truetype truetype-fonts tsc type1-fonts
vhosts vme xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

ls /lib/lib*thread* -l:
-rwxr-xr-x  1 root root 143172 May 14 06:28 /lib/libpthread-0.10.so
lrwxrwxrwx  1 root root     18 May 14 06:28 /lib/libpthread.so.0 ->
libpthread-0.10.so
-rwxr-xr-x  1 root root  28774 May 14 06:28 /lib/libthread_db-1.0.so
lrwxrwxrwx  1 root root     19 May 14 06:28 /lib/libthread_db.so.1 ->
libthread_db-1.0.so
Comment 7 Josh 2005-06-25 15:55:26 UTC
I was told in ##gentoo-overflow that this is proper etiquitte, so here goes:

I am also having this exact same bug.

The emerge error:

gwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o
pngpread.pic.o
/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
collect2: ld returned 1 exit status
make: *** [pngtest-static] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libpng-1.2.8 failed.
!!! Function src_compile, Line 50, Exitcode 2


inspire libpng # emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 22 2005, 09:14:07)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
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.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi bitmap-fonts crypt cups dbus dvd emboss encode
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad
maildir mikmod mmx motif mp3 mpeg ncurses nls oggvorbis opengl pam pdflib perl
png python qt quicktime readline sdl ssl tcpd truetype truetype-fonts
type1-fonts wifi xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 8 Josh 2005-06-26 14:24:07 UTC
(In reply to comment #6)
> I was told in ##gentoo-overflow that this is proper etiquitte, so here goes:
> 
> I am also having this exact same bug.
> 
> The emerge error:
> 
> gwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o
> pngpread.pic.o
> /lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
> collect2: ld returned 1 exit status
> make: *** [pngtest-static] Error 1
> make: *** Waiting for unfinished jobs....
> 
> !!! ERROR: media-libs/libpng-1.2.8 failed.
> !!! Function src_compile, Line 50, Exitcode 2
> 
> 
> inspire libpng # emerge --info
> Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
> glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
> =================================================================
> System uname: 2.6.11-gentoo-r11 i686 Intel(R) Celeron(R) CPU 2.00GHz
> Gentoo Base System version 1.6.12
> Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 22 2005, 09:14:07)]
> dev-lang/python:     2.3.5
> sys-apps/sandbox:    [Not Present]
> 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.5
> sys-devel/binutils:  2.15.92.0.2-r10
> sys-devel/libtool:   1.5.16
> virtual/os-headers:  2.6.8.1-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
> /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> CXXFLAGS=""
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
> GENTOO_MIRRORS="http://gentoo.osuosl.org/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="x86 X acpi alsa apm arts avi bitmap-fonts crypt cups dbus dvd emboss encode
> foomaticdb gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad
> maildir mikmod mmx motif mp3 mpeg ncurses nls oggvorbis opengl pam pdflib perl
> png python qt quicktime readline sdl ssl tcpd truetype truetype-fonts
> type1-fonts wifi xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
> Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY



Could this be a problem with kernel 2.6.11? I have another box with the same
base build, except it's running kernel 2.6.9-gentoo-r4. 

libpng compiled cleanly on that system.
Comment 9 Josh 2005-06-26 19:19:14 UTC
(In reply to comment #7)
> Could this be a problem with kernel 2.6.11? I have another box with the same
> base build, except it's running kernel 2.6.9-gentoo-r4. 
> 
> libpng compiled cleanly on that system.

I tried to compile on gentoo-sources 2.6.10-r7, as well as 2.6.9-r4 (the same
kernel that compiled cleanly on my other gentoo box, with the .config out of
that box)

None of these kernels produced a clean compile of libpng on my maching with the
original bug.
Comment 10 Pavel 2005-07-04 22:45:59 UTC
We fix this by remooving string
-e "/^ZLIB=/s:=.*:=/usr/$(get_libdir):" \
in the ebuild file
Perhabs this path covering libraries
Comment 11 Christopher Frömmel 2005-08-16 05:54:47 UTC
looks like it's fixed