Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 8007
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: alan [...] batie.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.26
Fixed in: (no value)



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"
From: "Paul Marquess" <Paul.Marquess [...] ntlworld.com>
To: <bug-BerkeleyDB [...] rt.cpan.org>
Subject: RE: [cpan #8007] Can't build .26
Date: Wed, 13 Oct 2004 21:13:50 +0100
RT-Send-Cc:
This is the root of the problem BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 Have you looked at the troubleshooting section of the README file that covers this problem? Paul Show quoted text
> -----Original Message----- > From: Guest via RT [mailto:bug-BerkeleyDB@rt.cpan.org] > Sent: 13 October 2004 20:22 > To: undisclosed-recipients: > Subject: [cpan #8007] Can't build .26 > > > This message about BerkeleyDB was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=8007 > > > 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"
Sorry, I missed that line of the error messages; I might suggest having some pre-compile dependency checking on things you have to have the latest and greatest of though...
On Tue Jun 13 01:01:08 2006, guest wrote: Show quoted text
> Sorry, I missed that line of the error messages; I might suggest
having Show quoted text
> some pre-compile dependency checking on things you have to have the > latest and greatest of though...
Yep, that has been on my list for quite a while. Paul