error Message
root@iz94hbx8k2tz:/usr/local/php/libpng-1.6.30# make && make install
Make All-am
MAKE[1]: Entering directory/usr/local/php/libpng-1.6.30 '
/bin/bash./libtool--tag=cc--mode=link gcc-g-o2-o pngfix contrib/tools/pngfix.o libpng16.la-lm-lz-lm
Libtool:link:gcc-g-o2-o. Libs/pngfix contrib/tools/pngfix.o./.libs/libpng16.so-lz-lm
./.libs/libpng16.so:undefined reference Toinflatevalidate '
Collect2:error:ld returned 1 exit status
MAKE[1]: * [PngFix] Error 1
MAKE[1]: Leaving directory '/usr/local/php/libpng-1.6.30 '
Make: * [All] Error 2
Install libpng encountered the above error, just at the beginning I thought is what dynamic library does not automatically load the problem, download the latest zlib and libpng package, first installed zlib then install libpng. However, there is a pit, zlib.1.2.11 version and libpng-1.6.31 version can not match, the test, libpng-1.6.30 and zlib.1.2.11 also not good
Now what works is what I now know can do is: zlib-1.2.8 and libpng-1.6.21
wget https://sourceforge.net/projects/libpng/files/zlib/1.2.8/ zlib-1.2.8.tar.gz
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.21.tar.gz