Bug 54416

Summary: pthread_cond_timedwait autoconf test broken
Product: dbus Reporter: Brad Smith <brad>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: autoconf patch

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.