Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16921 - emerge -u of net-misc/rsync-2.5.6-r1 fails at link stage, as it doen not pass -lpthread
Summary: emerge -u of net-misc/rsync-2.5.6-r1 fails at link stage, as it doen not pass...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 16:32 UTC by bdonlan
Modified: 2003-08-18 14:32 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 bdonlan 2003-03-05 16:32:24 UTC
When emerge-ing net-misc/rsync-2.5.6-r1 it fails with:
[...]
gcc -O2 -mcpu=i686 -pipe -DHAVE_CONFIG_H -Wall -W  -o rsync rsync.o generator.o
receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o
syscall.o log.o backup.o options.o flist.o io.o compat.o hlink.o token.o
uidlist.o socket.o fileio.o batch.o clientname.o progress.o pipe.o params.o
loadparm.o clientserver.o access.o connection.o authenticate.o lib/fnmatch.o
lib/compat.o lib/snprintf.o lib/mdfour.o lib/permstring.o  zlib/deflate.o
zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o
zlib/infutil.o zlib/trees.o zlib/zutil.o zlib/adler32.o  -lpopt -lresolv
rsync.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
generator.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
receiver.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
cleanup.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
sender.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
exclude.o(.text+0x31): more undefined references to `pthread_create' follow
collect2: ld returned 1 exit status
make: *** [rsync] Error 1

!!! ERROR: net-misc/rsync-2.5.6-r1 failed.
!!! Function src_compile, Line -3, Exitcode 2
!!! (no error message)

I am using 2.95.3 and Portage 2.0.47-r8 on an i686 platform.

Reproducible: Always
Steps to Reproduce:
1. (as root) emerge net-misc/rsync


Actual Results:  
[...]
gcc -O2 -mcpu=i686 -pipe -DHAVE_CONFIG_H -Wall -W  -o rsync rsync.o generator.o
receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o
syscall.o log.o backup.o options.o flist.o io.o compat.o hlink.o token.o
uidlist.o socket.o fileio.o batch.o clientname.o progress.o pipe.o params.o
loadparm.o clientserver.o access.o connection.o authenticate.o lib/fnmatch.o
lib/compat.o lib/snprintf.o lib/mdfour.o lib/permstring.o  zlib/deflate.o
zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o
zlib/infutil.o zlib/trees.o zlib/zutil.o zlib/adler32.o  -lpopt -lresolv
rsync.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
generator.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
receiver.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
cleanup.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
sender.o(.text+0x31): In function `crLaunchThread':
: undefined reference to `pthread_create'
exclude.o(.text+0x31): more undefined references to `pthread_create' follow
collect2: ld returned 1 exit status
make: *** [rsync] Error 1

!!! ERROR: net-misc/rsync-2.5.6-r1 failed.
!!! Function src_compile, Line -3, Exitcode 2
!!! (no error message)


Expected Results:  
It should have installed.

Portage 2.0.47-r8 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7)
=================================================================
System uname: 2.4.19-rmap14a i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/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=""
USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses
pdflib quicktime spell truetype xml2 xmms xv arts berkdb bonobo cdr esd gdbm gif
gnome-libs gpm gtkhtml guile imlib java kde libwww motif mozilla mysql nas nls
opengl pam perl png postgres python qt readline scanner sdl slang ssl svga tcltk
tcpd tetex tiff X gtk gnome alsa pda oggvorbis ipv6"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Luca Barbato gentoo-dev 2003-03-05 19:22:44 UTC
glibc version?
Comment 2 bdonlan 2003-03-06 09:27:47 UTC
glibc 2.2.5-r7
Comment 3 Luca Barbato gentoo-dev 2003-03-06 16:36:40 UTC
ok, I added a fix for that, please test it and notify if solves the issue

emerge rsync && emerge =net-misc/rsync-2.5.6-r1

Comment 4 bdonlan 2003-03-06 17:11:10 UTC
I tried it again, after rsyncing. It still fails with the same error.
Comment 5 Luca Barbato gentoo-dev 2003-03-06 17:48:15 UTC
check the ebuild it should be changed

I forced the -lpthread in LDFLAGS it must work

rsync again please
Comment 6 bdonlan 2003-03-06 18:20:13 UTC
Ok, it works now. Thanks!
Comment 7 Luca Barbato gentoo-dev 2003-03-06 18:31:23 UTC
Good to known

*CLOSED*
Comment 8 bdonlan 2003-03-25 16:50:27 UTC
After updating to gcc 3.1, this bug has reappeared.
emerge info:
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r2)
=================================================================
System uname: 2.4.19-rmap14a i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/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=""
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 alsa gdbm berkdb slang readline arts tetex nas bonobo svga tcltk java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla cdr scanner"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

Comment 9 Luca Barbato gentoo-dev 2003-03-25 19:04:13 UTC
bash-2.05b# ldd `which rsync`
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0x4002c000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40035000)
        libc.so.6 => /lib/libc.so.6 (0x40046000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.05b# ldd  /usr/lib/libpopt.so.0
        libc.so.6 => /lib/libc.so.6 (0x40020000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
bash-2.05b# ldd  /lib/libresolv.so.2
        libc.so.6 => /lib/libc.so.6 (0x4002c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.05b# ldd  /lib/libc.so.6
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.05b# ldd /lib/ld-linux.so.2
        statically linked

Please try doing the same steps I did here, there is something quite wierd on you glibc probably.
Comment 10 bdonlan 2003-03-25 19:08:20 UTC
bdonlan@bd-home-comp bdonlan $ ldd `which rsync`
        libpthread.so.0 => /lib/libpthread.so.0 (0x40030000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40081000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40088000)
        libc.so.6 => /lib/libc.so.6 (0x40099000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bdonlan@bd-home-comp bdonlan $  ldd  /usr/lib/libpopt.so.0
        libc.so.6 => /lib/libc.so.6 (0x40023000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
bdonlan@bd-home-comp bdonlan $ ldd  /lib/libresolv.so.2
        libc.so.6 => /lib/libc.so.6 (0x40030000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bdonlan@bd-home-comp bdonlan $ ldd  /lib/libc.so.6
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bdonlan@bd-home-comp bdonlan $ ldd /lib/ld-linux.so.2
        statically linked
Comment 11 Luca Barbato gentoo-dev 2003-08-12 18:36:46 UTC
is still happening?
Comment 12 bdonlan 2003-08-18 13:39:11 UTC
No, after reinstalling it stopped.
Comment 13 Luca Barbato gentoo-dev 2003-08-18 14:32:00 UTC
ok, marked as fixed then