Bug 19435

Summary: libcairo has problem loading libpng12
Product: cairo Reporter: Paul Steckler <steck>
Component: png functionsAssignee: Carl Worth <cworth>
Status: RESOLVED NOTOURBUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.8.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Paul Steckler 2009-01-07 02:58:50 UTC
On my Fedora 10 box, with Cairo 1.8.0 installed, when I start python, as 
follows:

  python -c 'import gtk.glade'

I get:

 ImportError: /usr/lib/libcairo.so.2: symbol png_set_expand_gray_1_2_4_to_8,   version PNG12_0 not defined in file libpng12.so.0 with link time reference

I've seen a couple of references to this problem on the Web by Googling, but 
no real resolution.  My Cairo and PNG libraries are all the latest in the 
Fedora repositories.
Comment 1 Chris Wilson 2009-01-24 10:34:21 UTC
It may seem a bit harsh, but really this is an issue with your installation of Python - it seems the libraries are incompatible. In particular I would hazard a guess that Python is dragging in a much older or trimmed down version of libpng.

An examination of "/proc/$pid/maps" (or using pmap) will tell you precisely which libraries are mapped into the process.
Comment 2 Paul Steckler 2009-04-26 02:31:10 UTC
In fact, python was trying to load libraries associated with a Mono 
Project installation, not the libraries in /usr/lib/.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.