subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: Problem with subversion-perl RPMs from WanDisco?
Date Fri, 12 Sep 2014 18:16:12 GMT
Alexey Neyman <stilor@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*

Mime
View raw message