Bug 9464

Summary: Deprecated libpng function hinders linking with libpng-1.2.12
Product: cairo Reporter: Peter Weilbacher <mozilla>
Component: png functionsAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.3.10   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Use right function depending on libpng version

Description Peter Weilbacher 2006-12-27 13:02:11 UTC
I sent this to the cairo list some weeks ago but never got a response. So I
thought I could file this as a bug, so that it doesn't get forgotten completely...

When I tried to link cairo against libpng 1.2.12 on OS/2 I had problems 
because this libpng version no longer exports the
    png_set_gray_1_2_4_to_8()
function as it is deprecated. Will attach a patch that works for me with both
new and old libpng versions.
Comment 1 Peter Weilbacher 2006-12-27 13:04:38 UTC
Created attachment 8230 [details] [review]
Use right function depending on libpng version

In newer libpng versions, the function was renamed to
png_set_expand_gray_1_2_4_to_8() so we should use that for versions starting
with libpng 1.2.9.
Comment 2 Peter Weilbacher 2007-04-23 14:59:03 UTC
I have pushed the fix into the git repository, so it should appear in cairo 1.4.6.

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.