Bug 178997 - PTHREAD_PRIO_INHERIT and friends missing from pthread.h
PTHREAD_PRIO_INHERIT and friends missing from pthread.h
Status: CLOSED DUPLICATE of bug 176911
Product: Fedora
Classification: Fedora
Component: apr (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2006-01-26 06:17 EST by Bojan Smojver
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-30 08:36:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Apache Bugzilla 38442 None None None Never

  None (edit)
Description Bojan Smojver 2006-01-26 06:17:18 EST
Description of problem:
Various #define and other symbols missing from pthread.h file (e.g.
PTHREAD_PRIO_INHERIT, pthread_mutexattr_setprotocol etc.)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Compile APR 1.2.2.
2. Wait for it to break on missing stuff.
Actual results:
locks/unix/proc_mutex.c:338: warning: implicit declaration of function
locks/unix/proc_mutex.c:338: error: 'PTHREAD_PRIO_INHERIT' undeclared
(first use in this function)

Expected results:
This used to work (i.e. APR compilation didn't fail before).

Additional info:
The APR currently in Rawhide was delivered on 05 Jan 2006. This glibc-headers
was delivered in Jan 10 2006. So, there is a good chance this problem wasn't yet
encountered in Rawhide APR build.
Comment 1 Jakub Jelinek 2006-01-26 08:11:42 EST
That's apr bug, it mistakenly assumes that if robust mutexes are available, then
POSIX priority inheritance extension is present as well, but that assumption
is valid on Solaris, but not on Linux.
Apr should just use the proper POSIXy way how to find out if priority inheritance
is supported.
Linux has:
/* No support for priority inheritance or protection so far.  */
which means the support is not present and the functions nor constants don't
need to be provided in the headers.
Comment 2 Joe Orton 2006-01-30 08:36:45 EST

*** This bug has been marked as a duplicate of 176911 ***
Comment 3 Bob Russell 2006-09-27 16:55:40 EDT
That is not an APR bug as stated by Jakub Jelinek.
It is a misinterpretation by Linux of what the proper POSIXy way to do things is.
These 2 symbols are POSIX feature test macros, not limit macros.
They are either defined (to any value, including -1) if the feature is supported,
or not defined if the feature is not supported.  See for example section 2.9.3
page 53 in Std 1003.1 1996 edition of POSIX.
In any case, Linux must have added these definitions, because it used to work.
Bob Russell

Note You need to log in before you can comment on or make changes to this bug.