Subject: | libtool linking in /root/.cpan -- annoying having to run as root to load /root/.cpan/.../.libs |
I'm having a problem with the subversion build process. I have no idea
what to pass to configure, but it's clear I need some other argument. I
expect this is all due to my irrationally new everything under Archlinux.
libtool 2.4.2-2
Maybe it's something else. I'm not really sure what to check.
Basically, I get this:
perl -MSVN::Core -e 0
Can't load '/usr/local/jperl/5.12.3/arch/auto/SVN/_Core/_Core.so' for
module SVN::_Core: libsvn_client-1.so.0: cannot open shared object file:
No such file or directory at /usr/local/jperl/5.12.3/arch/DynaLoader.pm
line 200.
at /usr/local/jperl/5.12.3/arch/SVN/Base.pm line 59
BEGIN failed--compilation aborted at
/usr/local/jperl/5.12.3/arch/SVN/Core.pm line 5.
Compilation failed in require.
BEGIN failed--compilation aborted.
It took me a while to figure out that this works fine:
sudo perl -MSVN::Core -e 0
I finally ran strace to find the real problem...
stat("/usr/local/jperl/5.12.3/arch/auto/SVN/_Core",
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/jperl/5.12.3/arch/auto/SVN/_Core/_Core.so",
{st_mode=S_IFREG|0644, st_size=2070777, ...}) = 0
stat("/usr/local/jperl/5.12.3/arch/auto/SVN/_Core/_Core.bs",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/usr/local/jperl/5.12.3/arch/auto/SVN/_Core/_Core.so", O_RDONLY) = 5
read(5,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\260\1\0\0\0\0\0"...,
832) = 832
fstat(5, {st_mode=S_IFREG|0644, st_size=2070777, ...}) = 0
mmap(NULL, 2778728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5,
0) = 0x7f857ccce000
mprotect(0x7f857cd6d000, 2097152, PROT_NONE) = 0
mmap(0x7f857cf6d000, 32768, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x9f000) = 0x7f857cf6d000
close(5) = 0
open("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/tls/x86_64/libsvn_client-1.so.0",
O_RDONLY) = -1 ENOENT (No su
stat("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/tls/x86_64",
0x7fffac5e14c0) = -1 ENOENT (No such file or dire
open("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/tls/libsvn_client-1.so.0",
O_RDONLY) = -1 ENOENT (No such file
stat("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/tls",
0x7fffac5e14c0) = -1 ENOENT (No such file or directory)
open("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/x86_64/libsvn_client-1.so.0",
O_RDONLY) = -1 ENOENT (No such f
stat("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/x86_64",
0x7fffac5e14c0) = -1 ENOENT (No such file or director
open("/root/.cpan/build/Alien-SVN-v1.6.12.1-gM_lzt/src/subversion/subversion/libsvn_client/.libs/libsvn_client-1.so.0",
O_RDONLY) = 5
Those .libs/ files should be temporary build files. I've seen this
before, and I've fixed it before, but at the moment, I can't figure it out.
Any idea what to add to the build process so it links those in properly
instead of linking against those temporary files during install?
--
If riding in an airplane is flying, then riding in a boat is swimming.
116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.