LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2013, 10:41 PM   #1
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Rep: Reputation: Disabled
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
 
Old 11-02-2013, 12:35 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
`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.
 
Old 11-02-2013, 01:34 AM   #3
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-02-2013, 03:00 AM   #4
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
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.

Last edited by chakra1; 11-02-2013 at 03:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ undefined reference grob115 Programming 4 01-22-2013 12:22 PM
Undefined reference, why? george_mercury Programming 4 05-07-2009 01:15 AM
undefined reference to.... crapodino Programming 1 01-13-2008 08:05 PM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 04:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 01:38 PM


All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration