2004.03.10 10:25 "[Tiff] Compiling under OS X with ZIP_SUPPORT", by Peter

2004.03.11 02:34 "Re: [Tiff] Compiling under OS X with ZIP_SUPPORT", by Peter

But the "proper" way of turning on zip support is to enable it in config.site by uncommenting the ZIP="yes" line. This sets things up so the configure can try to include the supporting library.

I was editing tiffconf.h for ZIP_SUPPORT. Editing config.site for Zip support is the correct way as you mention. BTW by enabling Zip support, it enable PIXARLOG_SUPPORT as well. After I redo a new "configure" & ranlib, it all compiles smoothly for the libtiff. However when I compile my project (linking with libtiff.a ), the linker (on the Xcode) gives this error message,

ld: /Users/peter/Project-Test/TestTIFF/libtiff.a(tif_pixarlog.o) illegal reference to symbol: _inflateEnd defined in indirectly referenced dynamic library /usr/lib/libz.1.dylib

Somehow the linker is not happy to link with static library which have connections to a dynamic library. At the moment, I am doing the hard way by compiling and linking another copy of static zlib library to make the linker "happy". Naturally it works, however by doing this also making the executable bulkier.

Is there a work around for this problem (by linking with dynamic library /usr/lib/libz.1.dylib (zlib))?

Best Regards,