Bug 1617

Summary: [PENDING] bug in glib's check for pthread_cond_timedwait
Product: pkg-config Reporter: Michael Haubenwallner <michael.haubenwallner>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to fix glib bug-70525 in glib-1.2.8

Description Michael Haubenwallner 2004-10-13 02:31:15 UTC
In the glib-1.2.8 used by pkg-config there's a problem with the configure-check
for a posix-like pthread_cond_timedwait(), which is fixed in glib2 only.
See http://bugs.gnome.org/show_bug.cgi?id=70525 for the whole description.

Don't know how to handle this cleanly, maybe use a glib2, but i've created
a patch to fix this in the glib-1.2.8 shipped within pkgconfig.
Comment 1 Michael Haubenwallner 2004-10-13 02:32:14 UTC
Created attachment 1094 [details] [review]
patch to fix glib bug-70525 in glib-1.2.8
Comment 2 Tollef Fog Heen 2005-02-21 00:16:07 UTC
Why is this needed, given that glib is configured with --disable-threads?
Comment 3 Michael Haubenwallner 2005-02-21 00:59:23 UTC
Well, if a system-admin of an HP-UX 11.2x (Itanium) tries to install pkgconfig,
why should he decide to "--disable-threads" ?
He knows that this system _has_ threads, and he might not know that pkgconfig
would run without threads. He's just bothered that configure would hang.

So if you don't want to patch third-party code, then please add --disable-threads
for the glib-1.2.8/configure-call in your configure.in instead (generally or for
this platform only), or update to a newer glib (which has to be a glib-2 to get
this fixed).
Comment 4 Tollef Fog Heen 2005-03-18 00:05:00 UTC
Fixed in CVS.
Comment 5 Tollef Fog Heen 2005-03-28 08:08:11 UTC
pkgconfig 0.16 has been released and contains a fix for this bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.