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.
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.
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.