Subject: | Can't build .26 |
I can't get this to build on any system I have: FreeBSD 4.7/x86, Solaris 2.9, FreeBSD 5.2.1/sparc.
cpan -i BerkeleyDB
Excerpt from FreeBSD 4.7/x86:
/usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap BerkeleyDB.xs > BerkeleyDB.xsc && mv BerkeleyDB.xsc BerkeleyDB.c
cc -c -I/usr/local/BerkeleyDB/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.5/mach/CORE" BerkeleyDB.c
BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
BerkeleyDB.xs:207: syntax error before `DB_ENV'
BerkeleyDB.xs:236: syntax error before `DB_INFO'
BerkeleyDB.xs:272: syntax error before `DB_INFO'
BerkeleyDB.xs:300: syntax error before `0x80000000'
BerkeleyDB.xs:491: syntax error before `Value'
BerkeleyDB.xs:491: warning: data definition has no type or storage class
BerkeleyDB.xs:492: syntax error before `zero'
BerkeleyDB.xs:492: warning: data definition has no type or storage class
BerkeleyDB.xs: In function `close_everything':
BerkeleyDB.xs:607: structure has no member named `txn'
BerkeleyDB.xs:631: structure has no member named `cursor'
Excerpt from Solaris 2.9/sparc:
Running Mkbootstrap for BerkeleyDB ()
chmod 644 BerkeleyDB.bs
rm -f blib/arch/auto/BerkeleyDB/BerkeleyDB.so
LD_RUN_PATH="" gcc -G -L/usr/local/lib -L/opt/local/lib -L/opt/gnu/lib BerkeleyDB.o -o blib/arch/auto/BerkeleyDB/BerkeleyDB.so -L/usr/local/BerkeleyDB/lib -ldb
chmod 755 blib/arch/auto/BerkeleyDB/BerkeleyDB.so
cp BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
chmod 644 blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
Manifying blib/man3/BerkeleyDB.3
/usr/local/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/btree........Can't load '/home/alan/.cpan/build/BerkeleyDB-0.26/blib/arch/auto/BerkeleyDB/BerkeleyDB.so' for module BerkeleyDB: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file /home/alan/.cpan/build/BerkeleyDB-0.26/blib/arch/auto/BerkeleyDB/BerkeleyDB.so: symbol txn_abort: referenced symbol not found at /usr/local/lib/perl5/5.8.5/sun4-solaris-thread-multi/DynaLoader.pm line 230.
at t/btree.t line 14
Compilation failed in require at t/btree.t line 14.
BEGIN failed--compilation aborted at t/btree.t line 14.
Undefined subroutine &BerkeleyDB::Term::close_everything called at /home/alan/.cpan/build/BerkeleyDB-0.26/blib/lib/BerkeleyDB.pm line 1649.
END failed--call queue aborted at t/btree.t line 14.
t/btree........dubious
Test returned status 255 (wstat 65280, 0xff00)
Excerpt from FreeBSD 5.2.1/Sparc:
cc -c -I/usr/local/BerkeleyDB/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-strict-aliasing -I/usr/local/include -O -pipe -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -DPIC -fPIC -I/usr/local/lib/perl5/5.6.1/mach/CORE BerkeleyDB.c
BerkeleyDB.xs:74:2: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
BerkeleyDB.xs:207: error: syntax error before "DB_ENV"
BerkeleyDB.xs:236: error: syntax error before "DB_INFO"
BerkeleyDB.xs:272: error: syntax error before "DB_INFO"
BerkeleyDB.xs:300: error: syntax error before numeric constant
BerkeleyDB.xs:491: error: syntax error before "Value"
BerkeleyDB.xs:491: warning: data definition has no type or storage class
BerkeleyDB.xs:492: error: syntax error before "zero"