[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

Hi,

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
--with-swig=/usr/local/bin/swig

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
me.

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
PERL_DL_NONLAZY=1
LD_LIBRARY_PATH=/share/subversion/subversion-1.0.2/subversion/bindings/swig/.lib
s:/share/subversion/subversion-1.0.2/subversion/libsvn_client/.libs:/share/subve
rsion/subversion-1.0.2/subversion/libsvn_delta/.libs:/share/subversion/subversio
n-1.0.2/subversion/libsvn_fs/.libs:/share/subversion/subversion-1.0.2/subversion
/libsvn_ra/.libs:/share/subversion/subversion-1.0.2/subversion/libsvn_repos/.lib
s:/share/subversion/subversion-1.0.2/subversion/libsvn_wc/.libs:/share/subversio
n/subversion-1.0.2/subversion/libsvn_diff/.libs:/share/subversion/subversion-1.0
.2/subversion/libsvn_subr/.libs:/share/subversion/subversion-1.0.2/subversion/li
bsvn_ra_local/.libs:/share/subversion/subversion-1.0.2/subversion/libsvn_ra_svn/
.libs:/share/subversion/subversion-1.0.2/subversion/libsvn_ra_dav/.libs
/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
/share/subversion/subversion-1.0.2/subversion/bindings/swig/perl/blib/lib/SVN/Co
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
/share/subversion/subversion-1.0.2/subversion/bindings/swig/perl/blib/lib/SVN/Ra
.pm line 64.

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

Martin

--
Martin J. Evans
Easysoft Ltd, UK
Development
---------------------------------------------------------------------
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.