Report information
The Basics
Id:
45680
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Cc:
AdminCc:

BugTracker
Version Fixed:
9.9.12, 9.9.12(sub), 9.10.7, 9.10.7(sub), 9.11.3, 9.12.0
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P2 Normal
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
feature

Dates
Created:Thu, 03 Aug 2017 19:06:36 -0400
Updated:Fri, 04 Aug 2017 15:15:06 -0400
Closed:Thu, 03 Aug 2017 21:13:43 -0400



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

Subject: configure does not properly detect pthread_np.h on openbsd
Date: Thu, 03 Aug 2017 23:06:36 +0000
To: bind9-public@isc.org
From: ckb@isc.org
configuring on openbsd gives the following: checking pthread_np.h presence... yes configure: WARNING: pthread_np.h: present but cannot be compiled configure: WARNING: pthread_np.h: check for missing prerequisite headers? configure: WARNING: pthread_np.h: see the Autoconf documentation configure: WARNING: pthread_np.h: section "Present But Cannot Be Compiled" configure: WARNING: pthread_np.h: proceeding with the compiler's result configure: WARNING: ## --------------------------------- ## configure: WARNING: ## Report this to bind9-bugs@isc.org ## configure: WARNING: ## --------------------------------- ## checking for pthread_np.h... no this is because the file does not include pthread.h, so the test for it fails. the following patch fixes it: diff --git a/configure.in b/configure.in index 737b1c1..059189b 100644 --- a/configure.in +++ b/configure.in @@ -1353,7 +1353,7 @@ then # Look for functions relating to thread naming AC_CHECK_FUNCS(pthread_setname_np pthread_set_name_np) - AC_CHECK_HEADERS(pthread_np.h) + AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>]) # # Look for sysconf to allow detection of the number of processors.
Reviewed over jabber by Evan. committing with no CHANGES note committing to 9.9.12, 9.10.7, 9.11.3, 9.12.0 On Thu Aug 03 23:06:36 2017, ckb wrote: > configuring on openbsd gives the following: > > checking pthread_np.h presence... yes > configure: WARNING: pthread_np.h: present but cannot be compiled > configure: WARNING: pthread_np.h: check for missing prerequisite > headers? > configure: WARNING: pthread_np.h: see the Autoconf documentation > configure: WARNING: pthread_np.h: section "Present But Cannot Be > Compiled" > configure: WARNING: pthread_np.h: proceeding with the compiler's > result > configure: WARNING: ## --------------------------------- ## > configure: WARNING: ## Report this to bind9-bugs@isc.org ## > configure: WARNING: ## --------------------------------- ## > checking for pthread_np.h... no > > this is because the file does not include pthread.h, so the test for > it fails. > > the following patch fixes it: > > diff --git a/configure.in b/configure.in > index 737b1c1..059189b 100644 > --- a/configure.in > +++ b/configure.in > @@ -1353,7 +1353,7 @@ then > > # Look for functions relating to thread naming > AC_CHECK_FUNCS(pthread_setname_np pthread_set_name_np) > - AC_CHECK_HEADERS(pthread_np.h) > + AC_CHECK_HEADERS([pthread_np.h], [], [], [#include > <pthread.h>]) > > # > # Look for sysconf to allow detection of the number of processors.