LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pngfix.c:2151: undefined reference to `inflateReset2' (https://www.linuxquestions.org/questions/linux-newbie-8/pngfix-c-2151-undefined-reference-to-%60inflatereset2-4175483104/)

chakra1 11-01-2013 09:41 PM

pngfix.c:2151: undefined reference to `inflateReset2'
 
I am trying to install libpng-1.6.6 but when trying to make it is failing giving the below error.

NOTE: I have successfully pre-installed zlib (as well as freetype2) which is supposedly the error is pointing at.

pngfix.o: In function `zlib_reset':
/usr/lib/hue/libpng-1.6.6/contrib/tools/pngfix.c:2151: undefined reference to `inflateReset2'
collect2: ld returned 1 exit status
make[1]: *** [pngfix] Error 1
make[1]: Leaving directory `/usr/lib/hue/libpng-1.6.6'
make: *** [all] Error 2

knudfl 11-01-2013 11:35 PM

`inflateReset2' was introduced in zlib-1.2.3.4 : 21 Dec 2009
http://www.zlib.net/ChangeLog.txt
Unless you have an older version / a corrupt zlib,
libpng-1.6.6 will build OK : libpng-1.6.6 is bug free.

chakra1 11-02-2013 12:34 AM

I have installed zlib-1.2.8 and it went successful.
I followed http://englanders.us/~jason/howtos.php?howto=zlib
but probably it was for zlib-1.2.7 mentioned as the latest stable release. I used 1.2.8 which may not be stable. Can this be the reason?

chakra1 11-02-2013 02:00 AM

The problem seems to be due to version incompatibility between libpng-1.6.6/zlib-1.2.8 (unstable) which I have been trying. I installed renew with libpng-1.5.9/zlib-1.2.7 (both stable) and this time everything worked as expected. The libpng passed the test successfully! Thanks for pointing the version problem.


All times are GMT -5. The time now is 05:30 PM.