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