libpng3 symlink points to the wrong directory

Bug #284325 reported by David D Short
50
This bug affects 9 people
Affects Status Importance Assigned to Milestone
libpng (Debian)
Fix Released
Unknown
libpng (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: libpng12-0

I've just installed the drivers for my Canon Pixma MP160 printer-scanner from the Canon website. The drivers are in .rpm format, which I converted to .deb with Alien.

When I ran the scanner program, it failed, citing a missing library. I fixed the problem by creating a symlink from /usr/lib/libpng.so.3 to /usr/lib/libpng12.so.0.27.0. The program now works perfectly.

The libpng12-2 package already installs a symlink from /usr/lib/libpng12.so.0 to /usr/lib/libpng12.so.0.27.0. It would be good if the symlink that I created could be in that package by default too. Then other Canon users won't have the same problem.

Unless this would create a conflict with some other program, I think it should be implemented in Intrepid before the end of the month. I'm pretty sure that I used these same drivers on Hardy without tweaking, so I suppose that the symlink must have been removed from the Intrepid version. (I haven't checked.)

Revision history for this message
Uqbar (uqbar) wrote :

As of Lucid amd64, the bug is still here.
The package libpng3 should install /usr/lib/libpng.so.3 as a compatibility symlink to /lib/libpng12.so.0.42.0 but it doesn't.

Revision history for this message
Uqbar (uqbar) wrote :

This is the actual package affected by the bug

affects: libpng (Ubuntu) → libpng3 (Ubuntu)
Revision history for this message
Jan Nekvasil (jan-nekvasil) wrote :

Maverick amd64 Beta; libpng3 1.2.44-1 creates a symlink libpng.so.3 -> libpng12.so.0 in /usr/lib, expecting it to find there. That link is now broken because of missing target, resulting in 3rd party apps as Phun complaining about missing libpng.so.3 (which is not phun at all).

The question is which package is broken, whether libpng3 or libpng.

Revision history for this message
José Lou Chang (obake) wrote :

I created a symlink from /usr/lib/libpng.so.3 to /lib/libpng12.so.0.44.0
But, I got the following error:

smw: error while loading shared libraries: libpng.so.3: wrong ELF class: ELFCLASS64

____

I'm trying to run Super Mario Wars
See Bug#674404

Revision history for this message
Lukas Vacek (lukas-vacek) wrote :

I can confirm the bug.

The fix is simply a matter of editing debian/libpng3.links file in the package and changing the first line to /lib/libpng12.so.0 /usr/lib/libpng.so.3

Steve Langasek (vorlon)
affects: libpng3 (Ubuntu) → libpng (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

The original bug report was inaccurate; if you want the compatibility symlink of libpng.so.3, you should install the libpng3 package.

But as the last comments show, the move of libpng from /usr/lib to /lib has broken the symlink in the libpng3 compatibility package, so this needs to be fixed.

Changed in libpng (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
summary: - libpng12-0 could do with an extra symlink for compatibility
+ libpng3 symlink points to the wrong directory
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libpng - 1.2.44-1ubuntu1

---------------
libpng (1.2.44-1ubuntu1) natty; urgency=low

  * debian/libpng3.links: fix up the compat symlink to point to /lib.
    Closes: #579074, LP: #284325.
 -- Steve Langasek <email address hidden> Sat, 22 Jan 2011 13:21:17 -0800

Changed in libpng (Ubuntu):
status: Triaged → Fix Released
Changed in libpng (Debian):
status: Unknown → New
Revision history for this message
José Lou Chang (obake) wrote :

Did this get resolved for Natty? I still have the same problem in Ubuntu 10.10

Revision history for this message
José Lou Chang (obake) wrote :

When libpng12, but not libpng.so.3:

Obake@Kubuntu:~$ smw
smw: error while loading shared libraries: libpng.so.3: wrong ELF class: ELFCLASS64

When I have both libpng12.so and libpng.so.3 installed:

Obake@kubuntu:~$ smw
smw: error while loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory

***
I am currently running Kubuntu Maverick with all the updates installed.

Changed in libpng (Debian):
status: New → Fix Released
Revision history for this message
davec (david-covell-plus) wrote :

The last update to libpng3 in Lucid release on 28/7/2011 to version 1.2.42 appears to have caused this same problem. According to the package install log, the install completed successfully and the libpng3 package status is reported as installed OK.

The result in this case was to break my Canon MP600 printer driver, and produce completely misleading syslog entries which made it a real $%* to find.

Why was 1.2.42-lubuntu2.2 installed when this was fixed in 1.2.44 months ago?

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Because lucid never got this fix.

Someone needs to create a debdiff for lucid, and it can be fixed as a SRU.

Gary M (garym)
tags: added: lucid maverick
tags: added: regression-update
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.