Subject: | Make bombs because of |
gnome2-vfs-0.05 (and 0.10 on sf.net)
Linux (Gentoo)
perl 5.8.0
Actually, I had this problem in the version that is on sf.net, so I tried the one on cpan instead. During a vanilla perl Makfile.PL, make I would get the following:
gcc -c -I/usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Gtk2/Install/ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I./build -I/usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Glib/Install/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=athlon-xp -O3 -pipe -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -o xs/GnomeVFSFileInfo.o -fpic "-I/usr/lib/perl5/5.8.0/i686-linux/CORE" xs/GnomeVFSFileInfo.c
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap /usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Gtk2/Install//gdk.typemap -typemap /usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Gtk2/Install//gtk2perl.typemap -typemap /usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Glib/Install//typemap -typemap /tmp/build/Gnome2-VFS-0.05/build/vfs2perl.typemap -typemap /tmp/build/Gnome2-VFS-0.05/vfs.typemap xs/GnomeVFSXfer.xs > xs/GnomeVFSXfer.xsc && mv xs/GnomeVFSXfer.xsc xs/GnomeVFSXfer.c
Error: 'const GnomeVFSURI *' not in typemap in GnomeVFSXfer.xs, line 128
Error: 'const GnomeVFSURI *' not in typemap in GnomeVFSXfer.xs, line 129
make: *** [xs/GnomeVFSXfer.c] Error 1
I am by no stretch a hardcore coder, but adding the following to vfs.typemap (why does it look for vfs2perl.typemap also? It isn't in the bundle) resulted in a working build.
GnomeVFSURI * T_GPERL_GENERIC_WRAPPER
const GnomeVFSURI * T_GPERL_GENERIC_WRAPPER