Bug 54416 - pthread_cond_timedwait autoconf test broken
Summary: pthread_cond_timedwait autoconf test broken
Status: RESOLVED DUPLICATE of bug 47239
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 06:42 UTC by Brad Smith
Modified: 2012-09-03 17:18 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
autoconf patch (499 bytes, patch)
2012-09-03 06:42 UTC, Brad Smith
Details | Splinter Review

Description Brad Smith 2012-09-03 06:42:38 UTC
Created attachment 66527 [details] [review]
autoconf patch

The current pthread_cond_timedwait check only checks for pthread_cond_timedwait in libpthread if it is found in libc but does not if not fouund in libc breaking most OS's. The current behavior makes no sense. The attached patch moves the fallback check from the "if found" field of AC_CHECK_FUNC() to the "if not found" field.
Comment 1 Simon McVittie 2012-09-03 09:09:41 UTC
There's a more comprehensive version awaiting review on Bug #47239. Could you review and test that, please?

(In reply to comment #0)
> breaking most OS's

What (presumably non-Linux) OS do you have in mind? Which library implements each of pthread_cond_timedwait, pthread_mutexattr_init and pthread_mutexattr_settype on your OS?

*** This bug has been marked as a duplicate of bug 47239 ***
Comment 2 Brad Smith 2012-09-03 17:18:34 UTC
OpenBSD, although this is the case for other *BSD OS's and POSIX like OS's. The library being libpthread.


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.