pngcrush library mismatch

Bug #38011 reported by Peter Miller
14
Affects Status Importance Assigned to Milestone
pngcrush (Ubuntu)
Fix Released
High
MOTU

Bug Description

When pngcrush is used in the

  pngcrush infile.png outfile.png

form, the following error occurs:

  pngcrush: relocation error: pngcrush: symbol png_read_data, version PNG12_0 not defined in file libpng12.so.0 with link time reference

strangely, this doesn't occur for usage messages.

Ubuntu version: Dapper

dpkg reports...
ii libpng12-0 1.2.8rel-5 PNG library - runtime
ii pngcrush 1.5.10-2 optimizes PNG (Portable Network Graphics) files

Revision history for this message
Peter Miller (pmiller-opensource) wrote :

The /usr/lib/libpng.a file contains the definition of the png_read_data symbol, but the /usr/lib/libpng.so file has no mention of it.

The command

  apt-get --compile source pngcrush

fails with numerous undefined png_* symbols.

Revision history for this message
Peter Miller (pmiller-opensource) wrote :

This patch at least gets pngcrush to build, but highlights the disparity between the .a and .so form of libpng

--- Makefile-orig 2006-04-04 21:55:36.000000000 +1000
+++ Makefile 2006-04-04 21:56:30.000000000 +1000
@@ -6,7 +6,7 @@
 all: pngcrush

 pngcrush: pngcrush.o
- $(CC) -o pngcrush -lpng -lz pngcrush.o
+ $(CC) -static pngcrush.o -o pngcrush -lpng -lz -lm

 install:

Revision history for this message
Peter Miller (pmiller-opensource) wrote :

Rebuilding libpng using

  apt-get --compile source libpng

buils the same defective .so file.

Changed in pngcrush:
assignee: nobody → motu
Revision history for this message
Daniel Richard G. (skunk) wrote : Need to sync with Debian

png_read_data() is a libpng 1.0.x function; that library was dropped after the Breezy release. Debian has a newer version of pngcrush (1.6.2) that uses libpng 1.2.x, and otherwise works fine on Ubuntu.

Changed in pngcrush:
status: Unconfirmed → Confirmed
Revision history for this message
LaserJock (laserjock) wrote :

pngcrush 1.6.2-1 has been synced into Dapper from Debian unstable. This version fixed this bug for me. Please reopen this bug if 1.6.2-1 still gives the error.

Changed in pngcrush:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.