tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zlib and builtin.mk on macOS



On Sun, Dec 25, 2016 at 04:09:29PM +0100, Benny Siegert wrote:
 > Compiling php-zip on a macOS Sierra system results in the following error:
 > 
 > checking for the location of libz... /usr
 > checking pcre install prefix... no
 > checking libzip... no
 > configure: error: Can not find zlib headers under "/usr"
 > 
 > 
 > Which is true. There is no zlib.h under /usr/include, in fact, there is no /usr/include at all. If you ask clang about the location of the file, it is in the macOS SDK:
 > 
 > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/zlib.h
 > 
 > The library, however, is in /usr/lib.
 > 
 > I don?t know if this is a failure of the php-zip Makefile, which
 > uses BUILDLINK_PREFIX to find zlib, of the upstream php-zip
 > configure, or of the builtin.mk itself.

From a pkgsrc perspective, it's the upstream configure. pkgsrc
makes sure the includes and libs are there, and the configure script's
outsmarted itself.

Otherwise, I'd characterize it as Apple's fault for shipping a weird
development environment.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index