Report information
The Basics
Id:
46847
Status:
resolved
Priority:
Medium/Medium
Queue:

People
Owner:
Nobody in particular
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:
Other

Dates
Created:Wed, 13 Dec 2017 15:15:47 -0500
Updated:Wed, 20 Dec 2017 19:01:49 -0500
Closed:Wed, 20 Dec 2017 19:00:35 -0500



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: --enable-developer bugs on last macOS / Xcode
From: Francis_Dupont@isc.org
To: bind9-confidential@isc.org
Date: Wed, 13 Dec 2017 20:15:47 +0000
On macOS high sierra with Xcode 92 ./configure --without-gssapi --with-openssl=/usr/local/opt/openssl --enable-full-report --enable-developer bugs with checking for json library... yes checking for library containing json_object_new_int64... -ljson-c checking for zlib library... configure: error: include/zlib.h not found. I don't know where is the problem (i.e. bind or macOS) and of course there is a zlib.h in the SDK include.
Or we can use pkg-config like it's 2017... $ pkg-config --libs zlib -lz $ pkg-config --cflags zlib $
On Wed Dec 13 19:54:54 2017, ondrej wrote: > Or we can use pkg-config like it's 2017... > > $ pkg-config --libs zlib > -lz > $ pkg-config --cflags zlib > $ Which doesn't exist in the MacOS. Now if you install macports (and presumably home-brew) it does but that doesn't give you the native instance.
On Thu Dec 14 06:30:12 2017, marka wrote: > On Wed Dec 13 19:54:54 2017, ondrej wrote: > > Or we can use pkg-config like it's 2017... > > > > $ pkg-config --libs zlib > > -lz > > $ pkg-config --cflags zlib > > $ > > Which doesn't exist in the MacOS. > > Now if you install macports (and presumably home-brew) it does but > that doesn't give you the native instance. So doesn't libjson nor libxml nor openssl >= 1.0 (it's either openssl 0.9.8 or libressl on High Sierra). And pkg-config is very lightweight in terms of dependencies - only libc is really required as it uses internal glib on Mac OS X.
On Thu Dec 14 08:27:13 2017, ondrej wrote: > On Thu Dec 14 06:30:12 2017, marka wrote: > > On Wed Dec 13 19:54:54 2017, ondrej wrote: > > > Or we can use pkg-config like it's 2017... > > > > > > $ pkg-config --libs zlib > > > -lz > > > $ pkg-config --cflags zlib > > > $ > > > > Which doesn't exist in the MacOS. > > > > Now if you install macports (and presumably home-brew) it does but > > that doesn't give you the native instance. > > So doesn't libjson nor libxml nor openssl >= 1.0 (it's either openssl > 0.9.8 or libressl on High Sierra). And pkg-config is very lightweight > in terms of dependencies - only libc is really required as it uses > internal glib on Mac OS X. => I have pkg-config (I brewed my macOS :-) but as Mark said it does not help because it returns nothing for zlib. BTW the zlib.pc file is: /Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13/zlib.pc with prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib sharedlibdir=${libdir} includedir=${prefix}/include Name: zlib Description: zlib compression library Version: 1.2.11 Requires: Libs: -L${libdir} -L${sharedlibdir} -lz Cflags: -I${includedir} which is correct for the library but assumes there is a /usr/include directory. Finally I found on the web the answer by Ondřej Čertík: you have to install the command line tools (by Xcode-select --install) and this effectively (i.e. I tried with success) installs /usr/include... So I redirect the ticket about what we should do: - add something in the FAQ? - detect /usr/include does not exist in configure? BTW it means too in cross-compiling you have to give full paths but this was already the case (i.e. it is just another proof of this).
Documented steps to get /usr/include in README.