On Sun, 2006-11-19 at 00:37 +0100, Mario Fischer wrote: > Creating library blib\arch\auto\Gtk2\Gtk2.lib and object > blib\arch\auto\Gtk2\ > Gtk2.exp > GdkCairo.obj : error LNK2019: unresolved external symbol > _cairo_object_from_sv r > eferenced in function _XS_Gtk2__Gdk__Cairo__Context_set_source_color > PangoCairo.obj : error LNK2001: unresolved external symbol > _cairo_object_from_sv > > PangoCairo.obj : error LNK2019: unresolved external symbol > _cairo_struct_from_sv > referenced in function _XS_Gtk2__Pango__Cairo__Context_set_font_options > PangoCairo.obj : error LNK2019: unresolved external symbol > _cairo_struct_to_sv r > eferenced in function _XS_Gtk2__Pango__Cairo__Context_get_font_options > blib\arch\auto\Gtk2\Gtk2.dll : fatal error LNK1120: 3 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop.
These errors occur because the win32 linker wants all symbols resolved at link time, but doesn't find Cairo.lib. On 2006-09-13, I committed the necessary changes to Gtk2's Makefile.PL. These changes haven't made it into any release yet. I've attached a patch against 1.140 that should get you going. -- Bye, -Torsten
--- rcs/gtk2-perl-xs/Gtk2/Makefile.PL 2006-09-13 16:57:40.000000000 +0200 +++ Gtk2-1.140/Makefile.PL 2006-09-04 20:37:04.000000000 +0200 @@ -15,7 +15,7 @@ # along with this library; if not, write to the Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. # -# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/Makefile.PL,v 1.125 2006/09/13 14:57:40 kaffeetisch Exp $ +# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/Makefile.PL,v 1.124 2006/09/04 18:37:04 kaffeetisch Exp $ # use 5.008; @@ -341,8 +341,6 @@ # and find the actual Glib.dll and Glib.lib installed by perl when # the Glib module was built, and add it to the list of lib files. # - # when we depend on Cairo, the same applies to Cairo.lib. - # # say it with me: "i hate win32." my $retstring = ""; @@ -351,10 +349,6 @@ find (sub { $retstring .= " ".$File::Find::name if /Glib.lib/i; - if ($have_cairo) { - $retstring .= " ".$File::Find::name - if /Cairo.lib/i; - } }, @INC); return $retstring;
_______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list