tech-pkg archive

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

zlib and builtin.mk on macOS



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.

Thoughts?


Home | Main Index | Thread Index | Old Index