One of our guys here accidentally deleted an install of Berkeley DB on a solaris server, and are now having trouble with a script using DB_File ( no surprises there then :) )
The errors in the logs look similar to those on the make test so I’m going to switch to read_more, as it’s going to be a long post...
Still with me? Excellent.
The error coming out in the log file is, after trying to run the previously working scripts is...
ld.so.1: perl: fatal: relocation error: file /cma/cma_proj/perl_lib/li
+b/5.6.1/sun4-solaris/auto/DB_File/DB_File.so: symbol perl_get_sv: ref
+erenced symbol not found
I’ve no idea what it means but it does look suspiciously like the error output on the make test
make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/li
+b/perl5/5.
6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw
+(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
Can't load '/usr/local/lib/perl5/5.6.1/sun4-solaris/auto/IO/IO.so' for
+ module IO
: ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/5.
+6.1/sun4-s
olaris/auto/IO/IO.so: symbol perl_get_sv: referenced symbol not found
+at /usr/lo
cal/lib/perl5/5.6.1/sun4-solaris/XSLoader.pm line 75.
at /usr/local/lib/perl5/5.6.1/sun4-solaris/IO.pm line 9
Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar
+is/IO/Hand
le.pm line 256.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s
+olaris/IO/
Handle.pm line 256.
Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar
+is/IO/Seek
able.pm line 101.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s
+olaris/IO/
Seekable.pm line 101.
Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar
+is/IO/File
.pm line 112.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s
+olaris/IO/
File.pm line 112.
Compilation failed in require at /usr/local/lib/perl5/5.6.1/FileHandle
+.pm line 9
.
Compilation failed in require at /usr/local/lib/perl5/5.6.1/Test/Harne
+ss.pm line
7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/Test/H
+arness.pm
line 7.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
*** Error code 255
make: Fatal error: Command failed for target `test_dynamic'
I am assured that the re-install of Berkeley DB went well. It’s probably with mentioning that the make install seems to go okay which look like this...
make install
Installing /env04/sas/cma/cma_proj/perl_lib/lib/5.6.1/sun4-solaris/aut
+o/DB_File/
DB_File.so
Files found in blib/arch: installing files in blib/lib into architectu
+re depende
nt library tree
Installing /env04/sas/cma/cma_proj/perl_lib/man/man3/DB_File.3
Writing /env04/sas/cma/cma_proj/perl_lib/lib/5.6.1/sun4-solaris/auto/D
+B_File/.pa
cklist
Appending installation info to /env04/sas/cma/cma_proj/perl_lib/lib/5.
+6.1/sun4-s
olaris/perllocal.pod
I’m really not sure where to start here. I don’t know much about what they’re doing. The guy who wrote this is long gone, and they nolonger have any perl expertise in their team, hence me being a mediator here.
As always, any help greatly appreciated. I’m getting access to these servers, so will be able to provide anymore detail as required
Thanks, Rob
PS: I realise that there is a glaring omission in this post, namely that actual line causing the problem. I’d like to take this opportunity to assure the reader that I’m working on it. :)
---
my name's not Keith, and I'm not reasonable.