Hello World! I've been following the discussions about git on LFS dev so I thought I'd have a go myself, however, when I came to run git svn fetch it went like this:
andy:~/lfs$ git svn fetch Can't load '/usr/lib/perl5/site_perl/5.14.1/x86_64-linux/auto/SVN/_Core/_Core.so' for module SVN::_Core: /usr/lib/perl5/site_perl/5.14.1/x86_64-linux/auto/SVN/_Core/_Core.so: undefined symbol: svn_swig_pl_thunk_username_prompt at /usr/lib/perl5/5.14.1/x86_64-linux/DynaLoader.pm line 190. at /usr/lib/perl5/site_perl/5.14.1/x86_64-linux/SVN/Base.pm line 59 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.14.1/x86_64-linux/SVN/Core.pm line 5. Compilation failed in require at /usr/libexec/git-core/git-svn line 40. andy:~/lfs$ greping for svn_swig_pl_thunk_username_prompt in /usr/lib led me to /usr/lib/libsvn_swig_perl-1.so Looking at the build log for subversion I saw some lines like this: Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile for SVN::_Core Writing MYMETA.yml Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile.client for SVN::_Client Writing MYMETA.yml Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile.delta for SVN::_Delta Writing MYMETA.yml Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile.fs for SVN::_Fs Writing MYMETA.yml Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile.ra for SVN::_Ra Writing MYMETA.yml In file included from subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:34:0: /tmp/subversion-1.6.17/subversion/svn_private_config.h:196:0: warning: "_" redefined [enabled by default] /usr/lib/perl5/5.14.1/x86_64-linux/CORE/config.h:3043:0: note: this is the location of the previous definition Note (probably harmless): No library found for -lsvn_swig_perl-1 Writing Makefile.repos for SVN::_Repos Writing MYMETA.yml Note (probably harmless): No library found for -lsvn_swig_perl-1 Googling on this issue led me to the conclusion that the problem was a race in the Makefile that was triggered by me using make -j4, ie, it was compiling _Core etc before it had compiled libsvn_swig_perl-1.so. One simple solution was to simply reinstall subversion, that way it could link to the libsvn_swig_perl-1.so already installed in /usr/lib. But I wasn't happy with that, I'd rather fix the makefile so that the perl bindings depend upon compiling libsvn_swig_perl-1.so first. This simple sed does the trick for me: sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in It works on Makefile.in so do it before you run configure. Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
