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

perl bindings test failures [was Re: 1.5.0-alpha1 tarballs up for testing/signing]

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Mon, 25 Feb 2008 21:03:13 -0600

Eric Gillespie wrote:
> Eric Gillespie <epg_at_pretzelnet.org> writes:
>> swig-rb fails, just as it does on trunk. I'm on Ubuntu Dapper i386.
> swig-pl builds, but check-swig-pl won't pass because of this
> error for all the modules. The main build and tests all pass,
> over local, dav, and svn.
> ../../../../../subversion/bindings/swig/perl/native/t/8lock............Can't load '/home/epg/work/svn/subversion-1.5.0-alpha1/subversion/bindings/swig/perl/native/blib/arch/auto/SVN/_Core/_Core.so' for module SVN::_Core: /home/epg/work/svn/subversion-1.5.0-alpha1/subversion/bindings/swig/perl/native/blib/arch/auto/SVN/_Core/_Core.so: undefined symbol: svn_swig_pl_thunk_config_enumerator at /opt/pkg/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 230.
> at /home/epg/work/svn/subversion-1.5.0-alpha1/subversion/bindings/swig/perl/native/blib/lib/SVN/Base.pm line 59
> BEGIN failed--compilation aborted at /home/epg/work/svn/subversion-1.5.0-alpha1/subversion/bindings/swig/perl/native/blib/lib/SVN/Core.pm line 5.
> Compilation failed in require at ../../../../../subversion/bindings/swig/perl/native/t/8lock.t line 6.

I see these same failures, and after spending most of the day digging
around in various recesses of swig, this is what I've come up with:

Various perl modules in subversion/bindings/swig/perl/native/ aren't
being linked against libsvn_swig_perl, which contains various wrapper
functions. The makefiles in the above directory don't contain
-lsvn_swig_perl-1 in the LIB variable, so it doesn't get linked. If I
manually add it, the failures go away.

The other weirdness that I see is when I remove just the
subversion/bindings/swig/perl/native/ directory, and not the
subversion/bindings/swig/perl/libsvn_swig_perl/ directory (e.g.,
libsvn_swig_perl stays intact). In this scenario, the tests work,
without any manual editing of makefiles. I *think* that the build
system is building the bindings components in the wrong order, but I
don't know where to fix this.

Hopefully this analysis helps somebody to fix the perl bindings' build


Received on 2008-02-26 04:03:33 CET

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

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