On Thu, Feb 26, 2004 at 02:56:03PM -0500, John Peacock wrote:
> Cristiano Paris wrote:
>
> >swig 1.3.19 from the Gentoo ebuild.
> >perl v5.8.2
> >
> >How can I tell if swig has Perl bindings?
>
> Try this (showing my answers):
>
> $ swig -swiglib
> /usr/local/lib/swig1.3
>
> $ ls /usr/local/lib/swig1.3
> Makefile.pl perlmain.i std_common.i std_string.i
> noembed.h perlrun.swg std_map.i std_vector.i
> perl5.swg precommon.swg std_pair.i typemaps.i
Here are mine:
sackville perl # ls `swig -swiglib`
_std_deque.i chicken constraints.i cstring.i java
ocaml pike ruby swig.swg carrays.i
cmalloc.i cpointer.i exception.i math.i perl5
pointer.i std_deque.i tcl cdata.i common.swg
csharp guile mzscheme php4 python
stl.i
Yours seems different.
> If you don't have those files, there may be another package you need to
> load. You should also see if there is a 5.8.3 update; there are some
> important fixes that went in after 5.8.2.
Upgrading right now...
> As far as the _Client.so file is concerned, you need to do a 'make clean'
> followed by a rerunning of the Makefile.PL, then 'make' in order to see all
> of the "interesting" messages:
>
> $ env APR_CONFIG=/usr/local/apache2/bin/apr-config perl Makefile.PL
> Writing Makefile for SVN::_Core
> Writing Makefile.client for SVN::_Client
> Writing Makefile.delta for SVN::_Delta
> Writing Makefile.fs for SVN::_Fs
> Writing Makefile.ra for SVN::_Ra
> Writing Makefile.repos for SVN::_Repos
> Writing Makefile.wc for SVN::_Wc
>
> $ make
> ...snip...
> swig -c -nopm -perl -I.. -I../../../include -I/usr/local/apache2/include
> -module SVN::_Client -o svn_client.c ../svn_client.i
> ...snip...
> gcc -c -I/usr/local/apache2/include -D_REENTRANT -D_GNU_SOURCE
> -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
> -I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -I..
> -I../../../include -g -g -fomit-frame-pointer -pipe -march=i586
> -mcpu=pentiumpro -DVERSION=\"\" -DXS_VERSION=\"\" -fpic
> "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE" svn_client.c
> Running Mkbootstrap for SVN::_Client ()
>
> etc. I suspect you are missing the SWIG support for Perl and you should
> see multiple warnings/errors in the log file.
Here's the complete log (sorry, I forgot to run make clean):
cp Fs.pm blib/lib/SVN/Fs.pm
cp Delta.pm blib/lib/SVN/Delta.pm
cp Ra.pm blib/lib/SVN/Ra.pm
cp Repos.pm blib/lib/SVN/Repos.pm
cp Wc.pm blib/lib/SVN/Wc.pm
cp Core.pm blib/lib/SVN/Core.pm
cp Client.pm blib/lib/SVN/Client.pm
cp Base.pm blib/lib/SVN/Base.pm
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Core -o core.c ../core.i
gcc -c -I/usr/include/apr-0 -I/usr/include/apr-0 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.2/i686-linux/CORE -I.. -I../../../include -g -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.2/i686-linux/CORE" core.c
Running Mkbootstrap for SVN::_Core ()
chmod 644 _Core.bs
rm -f blib/arch/auto/SVN/_Core/_Core.so
LD_RUN_PATH="/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_client/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_delta/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_fs/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_ra/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_repos/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_wc/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_diff/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_subr/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/.libs:/usr/lib" gcc -shared -L/usr/local/lib core.o -o blib/arch/auto/SVN/_Core/_Core.so -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_client/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_delta/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_fs/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_ra/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_repos/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_wc/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_diff/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_subr/.libs -lsvn_client-1 -lsvn_delta-1 -lsvn_fs-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_diff-1 -lsvn_subr-1 -lsvn_swig_perl-1 -L/usr/lib -lswigpl
chmod 755 blib/arch/auto/SVN/_Core/_Core.so
cp _Core.bs blib/arch/auto/SVN/_Core/_Core.bs
chmod 644 blib/arch/auto/SVN/_Core/_Core.bs
Manifying blib/man3/SVN::Delta.3pm
Manifying blib/man3/SVN::Repos.3pm
Manifying blib/man3/SVN::Ra.3pm
Manifying blib/man3/SVN::Core.3pm
Manifying blib/man3/SVN::Wc.3pm
Manifying blib/man3/SVN::Client.3pm
Manifying blib/man3/SVN::Base.3pm
/usr/bin/perl h2i.pl ../../../include/svn_ra.h svn_ra_plugin_t > ra_plugin.hi
/usr/bin/perl h2i.pl ../../../include/svn_ra.h svn_ra_reporter_t > ra_reporter.hi
/usr/bin/perl h2i.pl ../../../include/svn_delta.h svn_delta_editor_t > delta_editor.hi
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Client -o svn_client.c ../svn_client.i
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Delta -o svn_delta.c ../svn_delta.i
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Fs -o svn_fs.c ../svn_fs.i
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Ra -o svn_ra.c ../svn_ra.i
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Repos -o svn_repos.c ../svn_repos.i
swig -c -nopm -perl -I.. -I../../../include -I/usr/include/apr-0 -module SVN::_Wc -o svn_wc.c ../svn_wc.i
make -f Makefile.client
make[1]: Entering directory `/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/perl'
gcc -c -I/usr/include/apr-0 -I/usr/include/apr-0 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.2/i686-linux/CORE -I.. -I../../../include -g -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.2/i686-linux/CORE" svn_client.c
Running Mkbootstrap for SVN::_Client ()
chmod 644 _Client.bs
rm -f blib/arch/auto/SVN/_Client/_Client.so
LD_RUN_PATH="/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_client/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_delta/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_fs/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_ra/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_repos/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_wc/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_diff/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_subr/.libs:/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/.libs:/usr/lib" gcc -shared -L/usr/local/lib svn_client.o -o blib/arch/auto/SVN/_Client/_Client.so -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_client/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_delta/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_fs/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_ra/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_repos/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_wc/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_diff/.libs -L/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/libsvn_subr/.libs -lsvn_client-1 -lsvn_delta-1 -lsvn_fs-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_diff-1 -lsvn_subr-1 -lsvn_swig_perl-1 -L/usr/lib -lswigpl
make[1]: Leaving directory `/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/perl'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file blib/arch/auto/SVN/_Client/_Client.so: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/SVN/_Client/_Client.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/subversion-1.0.0/work/subversion-1.0.0/subversion/bindings/swig/perl'
Cristiano
----
Web: http://www.disp.uniroma2.it/users/paris
Public PGP/GnuPG key
pub 1024D/32CA6D54 2004-01-23 Cristiano Paris (RHPK) <c.paris@email.it>
Key fingerprint = 3BFD 9884 230A 1F17 391C 1434 80CB 2C7A 32CA 6D54
----
- application/pgp-signature attachment: stored
Received on Thu Feb 26 21:36:39 2004