When I try to emerge glib, the following error occurs in the configure phase: checking for thread implementation... posix checking thread related cflags... -D_REENTRANT checking for pthread_create/pthread_join... no checking for pthread_create/pthread_join in -lpthread... no checking for pthread_create/pthread_join in -lpthread32... no checking for pthread_create/pthread_join in -lpthreads... no checking for pthread_create/pthread_join in -lthread... no checking for pthread_create/pthread_join in -ldce... no configure: error: I can't find the libraries for the thread implementation posix. Please choose another thread implementation or provide information on your thread implementation. You can also run 'configure --disable-threads' to compile without thread support. !!! ERROR: dev-libs/glib-2.4.5 failed. !!! Function econf, Line 362, Exitcode 1 !!! econf failed Reproducible: Always Steps to Reproduce: 1. emerge --update system 2. emerge --update portage 3. emerge glib Actual Results: The configure phase of emerge glib does not finish. The following error occurs: checking for thread implementation... posix checking thread related cflags... -D_REENTRANT checking for pthread_create/pthread_join... no checking for pthread_create/pthread_join in -lpthread... no checking for pthread_create/pthread_join in -lpthread32... no checking for pthread_create/pthread_join in -lpthreads... no checking for pthread_create/pthread_join in -lthread... no checking for pthread_create/pthread_join in -ldce... no configure: error: I can't find the libraries for the thread implementation posix. Please choose another thread implementation or provide information on your thread implementation. You can also run 'configure --disable-threads' to compile without thread support. !!! ERROR: dev-libs/glib-2.4.5 failed. !!! Function econf, Line 362, Exitcode 1 !!! econf failed Expected Results: Finish configuring and proceeded to compilation. Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7) ================================================================= System uname: 2.6.7 i686 Intel(R) Xeon(TM) CPU 2.66GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d arts avi berkdb crypt cups doc encode esd fftw foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 hardened imagemagick imap imlib jpeg kde lesstif libg++ libwww mad mikmod motif mozilla mpeg mpi mysql ncurses netcdf nls oggvorbis opengl oss pam pda pdflib perl plotutils png posix python qt quicktime readline sdl slang spell ssl svga tcpd tetex tiff truetype usb x86 xinerama xml xml2 xmms xv zlib"
attach the config.log
Created attachment 39616 [details] config.log from dev-libs/glib-2.4.5 config failed
well the config.log shows several failing thread checks, i suppose most of them are supposed to fail, but one of them does so incorrectly. Could you maybe check out that direction ?
The libraries the configure script is looking for are: libpthread32 libpthreads libthread libdce libthread they do not exist in my system and I have tried to find the package they belong to but no luck. I also have posted several messages in the gentoo-user mailing list in this month and no response. So I am assuming others may have difficulties in finding them too. Any help appreciated.
Here is a dirty work around. In the ebuild file /usr/portage/dev-libs/glib/glib-2.4.5.ebuild replace the line --with-threads=posix \ with --disable-threads \ Then reemerge glib.
that is just avoiding the problem, i dunno if its a good idea to build glib without threads. No it seems to me one of the tests fails not because of the missing threads but of a missing reference, some sort of glibc/gcc issue.
Yes indeed without threads enabled in glib, gstreamer won't compile (that is part of emerge -u world). So still stuck. I posted this issue many times in the gentoo-user mailing list but no response. I wonder why others are not having this problem. I initially had the hardened use flag on but I have it turned off now. Also, I have nptl use flag turned off. I have recompiled gcc and glibc several times and no luck. I've searched the web for libpthread32 and found no help either. In my system glib-1.2.10-r5 is also installed. I recompiled it without any problem.
this is not critical, it is probably some mess up on your system : you are the only one seeing it.
Will take your word for it. This bug is "fixed."
don't get all touchy, we just have more things todo than looking at your bug alone. Maybe you could put some time in yourself.
dupe.. *** This bug has been marked as a duplicate of 49874 ***