Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62471 - ERROR: dev-libs/glib-2.4.5 failed when emerging update for glib-2.4.1
Summary: ERROR: dev-libs/glib-2.4.5 failed when emerging update for glib-2.4.1
Status: RESOLVED DUPLICATE of bug 49874
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 21:46 UTC by Valmor de Almeida
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log from dev-libs/glib-2.4.5 config failed (config.log,138.16 KB, text/plain)
2004-09-14 15:43 UTC, Valmor de Almeida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valmor de Almeida 2004-08-31 21:46:26 UTC
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"
Comment 1 foser (RETIRED) gentoo-dev 2004-09-01 03:37:27 UTC
attach the config.log
Comment 2 Valmor de Almeida 2004-09-14 15:43:42 UTC
Created attachment 39616 [details]
config.log from dev-libs/glib-2.4.5 config failed
Comment 3 foser (RETIRED) gentoo-dev 2004-09-15 03:38:24 UTC
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 ?
Comment 4 Valmor de Almeida 2004-09-15 16:31:23 UTC

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.
Comment 5 Valmor de Almeida 2004-09-15 18:51:37 UTC
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.
Comment 6 foser (RETIRED) gentoo-dev 2004-09-16 02:05:19 UTC
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.
Comment 7 Valmor de Almeida 2004-09-16 06:22:13 UTC
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.
Comment 8 foser (RETIRED) gentoo-dev 2004-09-16 06:31:18 UTC
this is not critical, it is probably some mess up on your system : you are the only one seeing it.
Comment 9 Valmor de Almeida 2004-09-17 08:19:48 UTC
Will take your word for it.
This bug is "fixed."
Comment 10 foser (RETIRED) gentoo-dev 2004-09-17 08:38:06 UTC
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.
Comment 11 foser (RETIRED) gentoo-dev 2004-10-09 08:10:46 UTC
dupe..

*** This bug has been marked as a duplicate of 49874 ***