When emerging samba: Linking bin/smbd smbd/server.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/files.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/chgpasswd.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/connection.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/utmp.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/session.o(.text+0x31): more undefined references to `pthread_create' follow collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 I have seen rsync fail to link pthread as well - are these the symptoms of an underlying bug in the compilation system? See http://bugs.gentoo.org/show_bug.cgi?id=16921 Reproducible: Always Steps to Reproduce: 1. emerge samba Actual Results: [...] Linking bin/smbd smbd/server.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/files.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/chgpasswd.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/connection.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/utmp.o(.text+0x31): In function `crLaunchThread': : undefined reference to `pthread_create' smbd/session.o(.text+0x31): more undefined references to `pthread_create' follow collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 Expected Results: It should have linked properly and installed. Portage 2.0.47-r10 (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"
Donny, could you please look at this bug? It's been 4 days with no acknowledgement.
bdonlan i simply dont have the time to wait on the needs of every single user who ever has a problem with compiling something. sorry, but i dont. please dont push me. if you dont like it, well, tough. this is not a samba bug either. your problem is you have a buggy glibc and/or gcc from us which has library include ordering problems as well as borkage with .a libraries. you probably want to get your software more current. this is nothing wrong with the samba ebuild in this regard. have a nice day.