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

Re: Problem with subversion-perl RPMs from WanDisco?

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 12 Sep 2014 19:16:12 +0100

Alexey Neyman <stilor_at_att.net> writes:

> Rather, I think, it is that the libsvn_swig_perl-1.so.0 does not list the
> _Core.so as a dependency:

I don't think that's the way it works. When Perl uses a module such as
SVN::Repos then Perl itself knows to uses SVN::Core as a dependency.
That causes the shared objects _Repos.so and _Core.so to be loaded. You
should see that _Core.so has libsvn_swig_perl-1.so as a dependency.

> If I pre-load the library, though, it fails differently:
>
> $ LD_PRELOAD=/usr/local/lib64/perl5/auto/SVN/_Core/_Core.so /tmp/1.pl /repo
> Can't locate object method "new_default" via package "SVN::Pool" (perhaps you
> forgot to load "SVN::Pool"?) at /tmp/1.pl line 6.

I'm not sure LD_PRELOAD is the right way to do it as that might bypass
the full Perl module load mechanism. I think you should try setting
@INC, perhaps via

  use lib '/usr/local/lib64/perl5';

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-09-12 20:16:46 CEST

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.