GNOME Bugzilla – Bug 323361
cairosimple example breaks jhbuild
Last modified: 2005-12-31 14:34:02 UTC
When building Cairo from jhbuild, it fails on cairosimple.c because cairo_surface_write_to_png() is not defined. The example needs a check for CAIRO_HAS_PNG_FUNCTIONS before calling the function.
Created attachment 55678 [details] [review] Patch to check for PNG functions before calling them.
While the patch fixes your problem, it probably opens this other bug that "cairosimple doesn't produce anything"... In the past Owen has said that it's your resposibility to make sure your cairo has PNG functions. And you really better have them. Anyway, I may go one and apply a modified version of your patch...
Can you attach a patch that doesn't build cairosimple if png functions are not available?
Created attachment 56588 [details] [review] Patch to only build cairosimple if Cairo is built with PNG functions
I dislike this. Propagating checks for a weirdly built cairo all over the stack doesn't benefit anyone. https://bugs.freedesktop.org/show_bug.cgi?id=5062 The only patch that might make sense would be a patch to add an AC_MSG_ERROR() in that case until Cairo is fixed to not sllently misbuild. *** This bug has been marked as a duplicate of 319632 ***