GNOME Bugzilla – Bug 328027
Cairo won't build
Last modified: 2006-01-22 03:37:46 UTC
/opt/gnome2/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so -Wl,--rpath -Wl,/opt/gnome2/lib cairosimple.o: In function `main': /home/tim/cvs/gnome2/pango/examples/cairosimple.c:82: undefined reference to `cairo_surface_write_to_png' collect2: ld returned 1 exit status make[2]: *** [cairosimple] Error 1 make[2]: Leaving directory `/home/tim/cvs/gnome2/pango/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/tim/cvs/gnome2/pango' make: *** [all] Error 2 Workaround is to remove the examples directory from the SUBDIRS variable in both the Makefile and Makefile.am
Make sure you have the libpng headers installed on your system and rebuild Cairo. Many people consider the fact that Cairo builds without png support without warning to be a bug: https://bugs.freedesktop.org/show_bug.cgi?id=5062 http://bugzilla.gnome.org/show_bug.cgi?id=319632 *** This bug has been marked as a duplicate of 319632 ***