Subject: | Can't make test on BerkeleyDB-0.26 on Red Hat 2.4.21-20.EL |
Attempting to build BerkeleyDB-0.26 on Red Hat Linux and I am having problems. I have applied all fixes in the README that I could find, but am still having problems with the test. I get the error
/work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
for each of the tests.
Here is the complete test output, after which I will include the perl -V output:
[srdroppers@linuxtest BerkeleyDB-0.26]$ cat test.log
PERL_DL_NONLAZY=1 /work/var/perl-5.8.5/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/btree......../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 28-244
Failed 217/244 tests, 11.07% okay
t/cds........../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 2-12
Failed 11/12 tests, 8.33% okay
t/db-3.0......./work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 2-14
Failed 13/14 tests, 7.14% okay
t/db-3.1.......ok
t/db-3.2......./work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 3-6
Failed 4/6 tests, 33.33% okay
t/db-3.3.......ok
t/destroy....../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 2-15
Failed 14/15 tests, 6.67% okay
t/encrypt....../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 7-80
Failed 74/80 tests, 7.50% okay
t/env........../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 12-53
Failed 42/53 tests, 20.75% okay
t/examples.....ok
t/examples3....ok
t/filter.......ok
t/hash........./work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 29-212
Failed 184/212 tests, 13.21% okay
t/join........./work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 9-42
Failed 34/42 tests, 19.05% okay
t/mldbm........skipped
all skipped: MLDBM is not installed on this system.
t/pod..........skipped
all skipped: Test::Pod 1.00 required for testing POD
t/queue......../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 31-200
Failed 170/200 tests, 15.00% okay
t/recno......../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 28-226
Failed 199/226 tests, 11.95% okay
t/strict......./work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 2-44
Failed 43/44 tests, 2.27% okay
t/subdb........ok
t/txn........../work/var/perl-5.8.5/bin/perl: relocation error: /work/var/BerkeleyDB/lib/libdb-4.so: undefined symbol: pthread_mutexattr_init
dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 2-58
Failed 57/58 tests, 1.72% okay
t/unknown......ok
Failed 13/22 test scripts, 40.91% okay. 1062/1430 subtests failed, 25.73% okay.
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/btree.t 127 32512 244 434 177.87% 28-244
t/cds.t 127 32512 12 22 183.33% 2-12
t/db-3.0.t 127 32512 14 26 185.71% 2-14
t/db-3.2.t 127 32512 6 8 133.33% 3-6
t/destroy.t 127 32512 15 28 186.67% 2-15
t/encrypt.t 127 32512 80 148 185.00% 7-80
t/env.t 127 32512 53 84 158.49% 12-53
t/hash.t 127 32512 212 368 173.58% 29-212
t/join.t 127 32512 42 68 161.90% 9-42
t/queue.t 127 32512 200 340 170.00% 31-200
t/recno.t 127 32512 226 398 176.11% 28-226
t/strict.t 127 32512 44 86 195.45% 2-44
t/txn.t 127 32512 58 114 196.55% 2-58
2 tests skipped.
make: *** [test_dynamic] Error 255
[srdroppers@linuxtest BerkeleyDB-0.26]$
======================================================
Perl -V output
======================================================
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=linux, osvers=2.4.21-20.el, archname=i686-linux
uname='linux linuxtest.hq.corp.pbstest.org 2.4.21-20.el #1 wed aug 18 20:58:25 edt 2004 i686 i686 i386 gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-42)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/work/var/BerkeleyDB/lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Nov 16 2004 12:42:45
@INC:
/work/var/perl-5.8.5/lib/5.8.5/i686-linux
/work/var/perl-5.8.5/lib/5.8.5
/work/var/perl-5.8.5/lib/site_perl/5.8.5/i686-linux
/work/var/perl-5.8.5/lib/site_perl/5.8.5
/work/var/perl-5.8.5/lib/site_perl
.
[srdroppers@linuxtest BerkeleyDB-0.26]$