Bug 9464 - Deprecated libpng function hinders linking with libpng-1.2.12
Summary: Deprecated libpng function hinders linking with libpng-1.2.12
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: png functions (show other bugs)
Version: 1.3.10
Hardware: x86 (IA32) All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-27 13:02 UTC by Peter Weilbacher
Modified: 2007-04-23 14:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Use right function depending on libpng version (872 bytes, patch)
2006-12-27 13:04 UTC, Peter Weilbacher
Details | Splinter Review

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.