You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Peacock <jp...@rowman.com> on 2005/10/12 20:47:01 UTC

1.3.x Perl bindings

SHORT STORY - When using the Perl bindings I am getting this error:

> Can't load '/usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi/auto/SVN/_Core/_Core.so' for module SVN::_Core: /home/jpeacock/tmp/subversion/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0: undefined symbol: crc32 at /usr/lib/perl5/5.8.7/i586-linux-thread-multi/DynaLoader.pm line 230.
>  at /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi/SVN/Base.pm line 59
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi/SVN/Core.pm line 5.

What is supposed to be providing the crc32 function?  Why is the _Core.so file
linking against libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0 instead of the
installed library (hint LD_RUN_PATH isn't set correctly)?

LONGER STORY - I upgraded my system from SUSE 9.2 to 10.0 and forgot that I had
originally installed the SUSE Subversion and Perl distros, so the upgrader
helpfully installed the newer (1.2.3 and 5.8.7 respectively) versions.  Sadly,
the subversion-perl RPM doesn't seem to work and the Perl RPM was built with the
kitchen sink (but without explicit dependencies to things like gdbm).  I have
already uninstalled the system provided Subversion and rebuilt from the 1.3.x
branch and installed it to no avail.

TIA

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: 1.3.x Perl bindings

Posted by John Peacock <jp...@rowman.com>.
Max Bowsher wrote:
> Argh. I'm so used to libtool just DTRT on installation, it didn't even
> occur to me that the Perl bindings *don't use libtool*! Ugh.
> 
> I guess that means that the change needs to be reverted, since the
> situation before is the lesser of two bugs.

Normally in Perl you set LD_LIBRARY_PATH to point to your new libraries instead
of the installed ones, rather than linking directly to them.  After you revert
the change, I'll take a look at it.  My ExtUtils::MakeMaker-foo is not that
great (I prefer Module::Build these days), but I can always rope Schwern into
helping if I need to...

TIA

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: 1.3.x Perl bindings

Posted by David James <ja...@gmail.com>.
On 10/13/05, Max Bowsher <ma...@ukf.net> wrote:
> John Peacock wrote:
> > John Peacock wrote:
> >> What is supposed to be providing the crc32 function?
> >
> > This I can explain.  It is Neon and apparently the version supplied by
> > SUSE
> > doesn't include it. :-(
> >
> >> Why is the _Core.so file
> >> linking against libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0 instead of the
> >> installed library (hint LD_RUN_PATH isn't set correctly)?
> >
> > Looking at the log entries, Max did on purpose, presumably to make sure
> > the
> > bindings were testing the new libraries rather than the old.  I don't
> > think
> > that is correct for installed code, however, since I rather like the
> > ability to blow away my build directory after installation.  ;-)
>
>
> Argh. I'm so used to libtool just DTRT on installation, it didn't even occur
> to me that the Perl bindings *don't use libtool*! Ugh.
>
> I guess that means that the change needs to be reverted, since the situation
> before is the lesser of two bugs.
>
> Max.
Should we revert r16486, then, and propose it for backport to the 1.3.x branch?

Cheers,

David


--
David James -- http://www.cs.toronto.edu/~james

Re: 1.3.x Perl bindings

Posted by Max Bowsher <ma...@ukf.net>.
John Peacock wrote:
> John Peacock wrote:
>> What is supposed to be providing the crc32 function?
>
> This I can explain.  It is Neon and apparently the version supplied by 
> SUSE
> doesn't include it. :-(
>
>> Why is the _Core.so file
>> linking against libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0 instead of the
>> installed library (hint LD_RUN_PATH isn't set correctly)?
>
> Looking at the log entries, Max did on purpose, presumably to make sure 
> the
> bindings were testing the new libraries rather than the old.  I don't 
> think
> that is correct for installed code, however, since I rather like the
> ability to blow away my build directory after installation.  ;-)


Argh. I'm so used to libtool just DTRT on installation, it didn't even occur 
to me that the Perl bindings *don't use libtool*! Ugh.

I guess that means that the change needs to be reverted, since the situation 
before is the lesser of two bugs.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: 1.3.x Perl bindings

Posted by John Peacock <jp...@rowman.com>.
John Peacock wrote:
> What is supposed to be providing the crc32 function?  

This I can explain.  It is Neon and apparently the version supplied by SUSE
doesn't include it. :-(

> Why is the _Core.so file
> linking against libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0 instead of the
> installed library (hint LD_RUN_PATH isn't set correctly)?

Looking at the log entries, Max did on purpose, presumably to make sure the
bindings were testing the new libraries rather than the old.  I don't think that
is correct for installed code, however, since I rather like the ability to blow
away my build directory after installation.  ;-)

I'd like to provide the actual log entry, but now I am getting an error:

> subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
> svn: PROPFIND request failed on '/repos/svn/branches/1.3.x/subversion/bindings/swig/perl'
> subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
> svn: PROPFIND of '/repos/svn/branches/1.3.x/subversion/bindings/swig/perl': 207 Multi-Status (http://svn.collab.net)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org