GNOME Bugzilla – Bug 665265
undefined reference to 'cairo_content_from_sv'
Last modified: 2012-01-05 17:39:11 UTC
This bug report also filed at https://rt.cpan.org/Ticket/Display.html?id=72832 (by mistake). Hi, Building Gtk2-1.241 on Win32, perl-5.12.0. My compiler is the mingw.org port of gcc-4.5.2 and I'm using the 'gtk+-bundle_2.24.8-20111122_win32.zip' GTK+ binaries. There were no problems with Gtk2-1.224, but with version 1.241 I get clobbered with the following: [ LD blib\arch\auto\Gtk2\Gtk2.dll ] xs/GdkCairo.o:GdkCairo.c:(.text+0x1af): undefined reference to `cairo_content_from_sv' collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Gtk2\Gtk2.dll' I assume that the symbol is intended to be resolved by my site/lib/auto/Cairo/Cairo.a, but that import library contains no such symbol. (I have installed Cairo-1.081, btw.) Cheers, Rob
Ah, the dreaded win32 linking issue. The export list for Cairo needed updating: <http://git.gnome.org/browse/perl-Cairo/commit/?id=2e9e0b2d561269>. Can you try building Cairo from git (or with this patch applied)? After that, building Gtk2 should work again.
Yep - enables the build to succeed. (I used the patch you provided.) The Gtk2-1.241 test suite fails 3 tests - I'll take a look at that when I get a chance (and submit another bug report, if there's not one already done). Thanks again Torsten. Cheers, Rob