A need for zlib 1.1.4?

filmfoto

Registered
Is there a need for compiling the new version zlib 1.1.4 when compiling in GD support in PHP? OS X's version is zlib 1.1.3.

Anyone have a clue how to do this? I get a *** zlib test FAILED *** error message when doing a: make test.

Also it warns me of:
Warning different zlib version.


Any help will be appreciated,

Cheers. :)
 
well maybe yes, maybe no.

1.1.4 has a security fix and OSX supplies
1.1.3

What is most likely happening is that
your building GD w/ '-lz' on the Makefile
command and that is using the OSX 1.1.3

You could download 1.1.4 and compile and
modify the Makefiles to use libz.a instead of
-lz (which bypasses the issue) or probably
just bypass the test and use the OSX 1.1.3
version.

Actually, from the zlib FAQ:

14. Why does "make test" fail on Mac OS X?

Mac OS X already includes zlib as a shared library, and so -lz links the
shared library instead of the one that the "make" compiled. For zlib
1.1.3, the two are incompatible due to different compile-time
options. Simply change the -lz in the Makefile to libz.a, and it will use
the compiled library instead of the shared one and the "make test" will
succeed.
 
Back
Top