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"
glibc version?
glibc 2.2.5-r7
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
I tried it again, after rsyncing. It still fails with the same error.
check the ebuild it should be changed I forced the -lpthread in LDFLAGS it must work rsync again please
Ok, it works now. Thanks!
Good to known *CLOSED*
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"
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.
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
is still happening?
No, after reinstalling it stopped.
ok, marked as fixed then