Summary: | dev-vcs/subversion-1.7.1[dso]: perl module gets underlinked | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabian Büttner <fabian-buettner> |
Component: | [OLD] Development | Assignee: | Thomas Sachau <tommy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | azamat.hackimov, galtgendo, leho, sebastien.wilmet |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
LD_PRELOAD=/usr/lib/libperl.so ldd -r /usr/lib/perl5/vendor_perl/5.12.4/x86_64-linux/auto/SVN/_Core/_Core.so
subversion-1.6.17-swig-perl-depend.patch |
Description
Fabian Büttner
2011-10-26 19:17:13 UTC
Which versions of swig do you have installed ? What does amd64 equivalent of "LD_PRELOAD=/usr/lib/libperl.so ldd -r /usr/lib/perl5/vendor_perl/5.12.4/i686-linux-thread-multi/auto/SVN/_Core/_Core.so" output ? Created attachment 290931 [details]
LD_PRELOAD=/usr/lib/libperl.so ldd -r /usr/lib/perl5/vendor_perl/5.12.4/x86_64-linux/auto/SVN/_Core/_Core.so
(In reply to comment #1) > Which versions of swig do you have installed ? > > What does amd64 equivalent of "LD_PRELOAD=/usr/lib/libperl.so ldd -r > /usr/lib/perl5/vendor_perl/5.12.4/i686-linux-thread-multi/auto/SVN/_Core/_Core.so" > output ? Thanks for the fast reply, I don't have any versions of swig installed, it didn't get pulled in during the emerge. But, I just checked back with emerging dev-lang/swig-2.0.4 and the problem still persists, unfortunately i get the same error. regards, fabian Interesting. Those symbols come from libsvn_swig_perl-1.so.0 - that perl module should link to the lib directly...and in subversion 1.7.0 it did - I need to check if that changed in 1.7.1. (In reply to comment #4) > Interesting. > Those symbols come from libsvn_swig_perl-1.so.0 - that perl module should link > to the lib directly...and in subversion 1.7.0 it did - I need to check if that > changed in 1.7.1. Are you sure? I get the same error when i downgrade to subversion 1.7.0. With google i found this: https://bugs.gentoo.org/show_bug.cgi?id=128624#c12, if i get it correctly, it should work without having swig installed. On the other hand i don't know if he's right :) I just fixed it with setting the -dso useflag. regards, fabian TBH, it was working for me in in subversion 1.7.1 too, but I've had '-dso' right from the start. (In reply to comment #6) > TBH, it was working for me in in subversion 1.7.1 too, but I've had '-dso' > right from the start. I think portage had set the "-dso perl" use-flags automatically, but when i downgraded svn because i thought there might be an bug as i couldn't get git svn to work, i changed the package.use entry from ">=dev-vcs/subversion=1.7.1 -dso perl" to "dev-vcs/subversion perl". Sorry for the confusion ... regards, fabian I am having apparently the same issue, with subversion-1.6.17-r7[-dso,perl]. My ldd output is the same as Fabian's. Output: $ git svn clone http://foo Initialized empty Git repository in /home/user/foo/.git Can't load '/usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/auto/SVN/_Core/_Core.so' for module SVN::_Core: /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/auto/SVN/_Core/_Core.so: undefined symbol: svn_swig_pl_thunk_config_enumerator at /usr/lib64/perl5/5.12.4/x86_64-linux/DynaLoader.pm line 200. at /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/SVN/Base.pm line 59 BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/SVN/Core.pm line 5. Compilation failed in require at /usr/libexec/git-core/git-svn line 42. Created attachment 292797 [details, diff] subversion-1.6.17-swig-perl-depend.patch Hello everyone. It seems Makefile fails on race condition during creation of perl module. It thinks that libsvn_swig_perl already compiled, but with MAKEOPTS="-jN" this can be wrong. According this message http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg16348.html I created patch, that force build Makefile.PL (and perl module) after libsvn_swig_perl. Please test it. *** Bug 392465 has been marked as a duplicate of this bug. *** Has somebody already tried reporting this problem upstream ? (In reply to comment #9) > Created attachment 292797 [details, diff] [details, diff] > subversion-1.6.17-swig-perl-depend.patch > > Hello everyone. > > It seems Makefile fails on race condition during creation of perl module. It > thinks that libsvn_swig_perl already compiled, but with MAKEOPTS="-jN" this can > be wrong. > > According this message > http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg16348.html I > created patch, that force build Makefile.PL (and perl module) after > libsvn_swig_perl. Please test it. This patch restored "git svn" functionality for me. (In reply to comment #9) > Created attachment 292797 [details, diff] [details, diff] > subversion-1.6.17-swig-perl-depend.patch > > Hello everyone. > > It seems Makefile fails on race condition during creation of perl module. It > thinks that libsvn_swig_perl already compiled, but with MAKEOPTS="-jN" this can > be wrong. > > According this message > http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg16348.html I > created patch, that force build Makefile.PL (and perl module) after > libsvn_swig_perl. Please test it. Thanks Azamat. I had exactly the same issue, and this patch works for me. Resolved with 1.7.4, should be on your local rsync mirror in a few hours. |