symbol lookup error: undefined symbol: png_create_read_struct

Bug #902494 reported by Christoph Neuhauser
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
silly (Debian)
Fix Released
Unknown
silly (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Fix Released
Undecided
Unassigned

Bug Description

the library libsilly is not linked against libpng which it uses directly.
[Impact]
This causes all programs linking against libsilly but not against libpng to fail with an undefined symbol message.

[Fix]
This was fixed is precise with 0.1.0-2ubuntu1 by simply adding pkg-config as a build dependency which allows it to link against libpng

[Testcase]
ldd -r /usr/lib/libSILLY.so.1

shows several undefined references to libpng functions like:
undefined symbol: png_create_read_struct (/usr/lib/libSILLY.so.1)

expected: no undefined reference

[Regression potential]:
none, adding build dependency only adds a link to libpng

original report:
When executing the sample programs from CEGUI-0.7.5 compiled with the libsilly version of Ubuntu 11.10 (tested platform: 32-bit), I get the error: "symbol lookup error: /usr/lib/libSILLY.so.1: undefined symbol: png_create_read_struct", which prevents the samples from running.
I got the advice to report this from a CEGUI team member ( http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=5914&p=28037 ). He guessed: "Most likely the libSILLY package maintainer missed a mass rebuild for libpng ABI bump."

lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

apt-cache policy libsilly
libsilly:
  Installiert: 0.1.0-2
  Kandidat: 0.1.0-2
  Versionstabelle:
 *** 0.1.0-2 0
        500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Julian Taylor (jtaylor) wrote :

the package is missing a build dependency on pkg-config so it fails to pick up the png library during build.

Changed in silly (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → Medium
Changed in silly (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package silly - 0.1.0-2ubuntu1

---------------
silly (0.1.0-2ubuntu1) precise; urgency=low

  * add pkg-config to build dependencies to link against libpng (LP: #902494)
 -- Julian Taylor <email address hidden> Fri, 16 Dec 2011 23:14:42 +0100

Changed in silly (Ubuntu):
status: Triaged → Fix Released
Julian Taylor (jtaylor)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Christoph, or anyone else affected,

Accepted silly into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in silly (Ubuntu Oneiric):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Christoph Neuhauser (christoph-neuhauser) wrote :

Hello,
I tested the old libsilly version on a live cd -> still "undefined symbol: png_create_read_struct (/usr/lib/libSILLY.so.1)"
Then I installed the proposed version (I didn't enable -proposed, I've just downloaded the libsilly proposed packages from launchpad and installed them with gdebi - I hope this is ok) and then the CEGUI samples launched without showing this error.
So the proposed packages seem to solve the problem.
Thank you very much for solving this problem!

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package silly - 0.1.0-2ubuntu0.1

---------------
silly (0.1.0-2ubuntu0.1) oneiric-proposed; urgency=low

  * add pkg-config to build dependencies to link against libpng (LP: #902494)
 -- Julian Taylor <email address hidden> Fri, 16 Dec 2011 23:14:42 +0100

Changed in silly (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in silly (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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