[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cannot test SWIG Perl binding

From: Martin J. Evans <martin.evans_at_easysoft.com>
Date: 2004-05-11 14:14:09 CEST


I'm tearing my hair out with this one. I've installed swig 1.3.21 with
"./configure --prefix=/usr/local --with-perl5=/usr/local/bin/perl" and run

make && make runtime && make install && make install-runtime

I've been following the instructions in subversion/bindings/swig/INSTALL for
subversion 1.0.2. I configured subversion with:

./configure --with-berkeley-db=/usr/berkeleydb/ --with-apxs=/usr/apache/bin/apxs
 --prefix=/usr/subversion --enable-nls=no --enable-swig-bindings=perl

The configure fails with "swig bindings version 1.3.19 or newer needed for swig
support" on the fourth occurrance of this test in configure. This seems due to
$SWIG=/usr/local/bin/swig/bin/swig (I eventually found) and can be avoided by
omitting --with-swig=/usr/local/bin/swig and letting configure find swig - I am
afraid I don't know what is wrong with the configure but this is repeatable for

I've checked:

           - /usr/local/lib/swig1.3/*.i
           - /usr/local/lib/libswig*.so
           - /usr/local/bin/swig

exists and then I did:

make swig-pl-lib (OK)
env APR_CONFIG=/usr/subversion/bin/apr-config perl Makefile.PL (OK)
make all test

This last stage fails initially with:

bash-2.05# make all test
/usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/0use.......# Failed test (t/0use.t at line 5)
# Tried to use 'SVN::Core'.
# Error: BEGIN not safe after errors--compilation aborted at
re.pm line 100.
# Compilation failed in require at (eval 1) line 2.
t/0use.......ok 4/7# Failed test (t/0use.t at line 9)
# Tried to use 'SVN::Ra'.
# Error: Bareword "init_ra_libs" not allowed while "strict subs" in use at
.pm line 64.

Any ideas what I've done wrong and do next?


Martin J. Evans
Easysoft Ltd, UK
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 11 14:15:18 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.