Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 8654
Status: open
Priority: 0/
Queue: BerkeleyDB

People
Owner: pmqs [...] cpan.org
Requestors: scottv [...] rbh.com
Cc:
AdminCc:

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



Subject: subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6
I'm having trouble installing BerkeleyDB-0.26 via CPAN on OpenBSD 3.6. I have installed Berkeley DB from the OpenBSD package: "db-4.2.52p1" I have also setup symlinks to point to the lib and include directories referenced in the default CPAN config.in file: mkdir /usr/local/BerkeleyDB ln -s /usr/local/lib/db4 /usr/local/BerkeleyDB/lib ln -s /usr/local/include/db4 /usr/local/BerkeleyDB/include The make seems to run correctly and without errors. However, the make test fails on the subdb section. Here's the output: Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/btree........ok t/cds..........ok t/db-3.0.......ok t/db-3.1.......ok t/db-3.2.......ok t/db-3.3.......ok t/destroy......ok t/encrypt......ok t/env..........ok t/examples.....ok t/examples3....ok t/filter.......ok t/hash.........ok t/join.........ok t/mldbm........ok t/pod..........ok t/queue........ok t/recno........ok t/strict.......ok t/subdb........FAILED tests 33, 39 Failed 2/43 tests, 95.35% okay t/txn..........ok t/unknown......ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/subdb.t 43 2 4.65% 33 39 Failed 1/22 test scripts, 95.45% okay. 2/1446 subtests failed, 99.86% okay. *** Error code 2 Stop in /root/.cpan/build/BerkeleyDB-0.26 (line 849 of Makefile). /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Here's my perl -V: --------------------- # perl -V Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=openbsd, osvers=3.6, archname=i386-openbsd uname='openbsd' config_args='-dsE -Dopenbsd_distribution=defined' 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', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='2.95.3 20010125 (prerelease, propolice)', gccosandvers='openbsd3.6' 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 ='-Wl,-E ' libpth=/usr/lib libs=-lm -lutil -lc perllibs=-lm -lutil -lc libc=/usr/lib/libc.so.34.1, so=so, useshrplib=true, libperl=libperl.so.10.0 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-R/usr/libdata/perl5/i386-openbsd/5.8.5/CORE' cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC ' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under openbsd Compiled at Sep 10 2004 14:47:32 @INC: /usr/libdata/perl5/i386-openbsd/5.8.5 /usr/local/libdata/perl5/i386-openbsd/5.8.5 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl /usr/local/lib/perl5/site_perl Just to test, I downloaded the source for BerkeleyDB-0.25 and ran into the same testing problem. BTW, this is all on local drives, and I have had several others who had built systems from scratch with the same problem. Any suggestions would be appreciated. BTW, this is for my anti-spam directions here: http://flakshack.com/anti-spam With BerkeleyDB directions here: http://flakshack.com/anti-spam/wiki/index.php?page=Installing+BerkeleyDB
From: "Paul Marquess" <Paul.Marquess [...] ntlworld.com>
To: <bug-BerkeleyDB [...] rt.cpan.org>, <"undisclosed-recipients:" [...] pallas.eruditorum.org>
Subject: RE: [cpan #8654] subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6
Date: Wed, 1 Dec 2004 21:36:23 -0000
RT-Send-Cc:
Hi, Is there any chance you could try using the latest version of Berkeley DB to see if the problem is still present with it? I don't know if there is a pre-compiled version available for OpenBSD, but the source is available from http://www.sleepycat.com cheers Paul Show quoted text
> -----Original Message----- > From: Guest via RT [mailto:bug-BerkeleyDB@rt.cpan.org] > Sent: 29 November 2004 21:31 > To: undisclosed-recipients: > Subject: [cpan #8654] subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6 > > > 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=8654 > > > I'm having trouble installing BerkeleyDB-0.26 via CPAN on OpenBSD 3.6. I > have installed Berkeley DB from the OpenBSD package: "db-4.2.52p1" I have > also setup symlinks to point to the lib and include directories referenced > in the default CPAN config.in file: > > mkdir /usr/local/BerkeleyDB > ln -s /usr/local/lib/db4 /usr/local/BerkeleyDB/lib ln -s > /usr/local/include/db4 /usr/local/BerkeleyDB/include > > The make seems to run correctly and without errors. However, the make > test fails on the subdb section. Here's the output: > > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/btree........ok > t/cds..........ok t/db-3.0.......ok t/db-3.1.......ok t/db-3.2.......ok > t/db-3.3.......ok t/destroy......ok t/encrypt......ok t/env..........ok > t/examples.....ok t/examples3....ok t/filter.......ok t/hash.........ok > t/join.........ok t/mldbm........ok t/pod..........ok t/queue........ok > t/recno........ok t/strict.......ok t/subdb........FAILED tests 33, 39 > Failed 2/43 tests, 95.35% okay > t/txn..........ok > t/unknown......ok > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------------------- > ----- > t/subdb.t 43 2 4.65% 33 39 > Failed 1/22 test scripts, 95.45% okay. 2/1446 subtests failed, 99.86% > okay. > *** Error code 2 > > Stop in /root/.cpan/build/BerkeleyDB-0.26 (line 849 of Makefile). > /usr/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force > > > > > > Here's my perl -V: > --------------------- > > # perl -V > Summary of my perl5 (revision 5 version 8 subversion 5) configuration: > Platform: > osname=openbsd, osvers=3.6, archname=i386-openbsd > uname='openbsd' > config_args='-dsE -Dopenbsd_distribution=defined' > 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', > optimize='-O2', > cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' > ccversion='', gccversion='2.95.3 20010125 (prerelease, propolice)', > gccosandvers='openbsd3.6' > 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 ='-Wl,-E ' > libpth=/usr/lib > libs=-lm -lutil -lc > perllibs=-lm -lutil -lc > libc=/usr/lib/libc.so.34.1, so=so, useshrplib=true, > libperl=libperl.so.10.0 > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,- > R/usr/libdata/perl5/i386-openbsd/5.8.5/CORE' > cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC ' > > > Characteristics of this binary (from libperl): > Compile-time options: USE_LARGE_FILES > Built under openbsd > Compiled at Sep 10 2004 14:47:32 > @INC: > /usr/libdata/perl5/i386-openbsd/5.8.5 > /usr/local/libdata/perl5/i386-openbsd/5.8.5 > /usr/libdata/perl5 > /usr/local/libdata/perl5 > /usr/local/libdata/perl5/site_perl/i386-openbsd > /usr/libdata/perl5/site_perl/i386-openbsd > /usr/local/libdata/perl5/site_perl > /usr/libdata/perl5/site_perl > /usr/local/lib/perl5/site_perl > > > > Just to test, I downloaded the source for BerkeleyDB-0.25 and ran into the > same testing problem. BTW, this is all on local drives, and I have had > several others who had built systems from scratch with the same problem. > Any suggestions would be appreciated. > > BTW, this is for my anti-spam directions here: > http://flakshack.com/anti-spam > With BerkeleyDB directions here: > http://flakshack.com/anti-spam/wiki/index.php?page=Installing+BerkeleyDB
I installed a fresh copy of OpenBSD 3.6. I downloaded the source code (db-4.3.21.NC.tar.gz) for the latest version. Compiled and installed build_unix without problem. Changed to the perl/BerkeleyDB directory, edited the config.in file, did perl Makefile.PL, followed by make. All worked fine. Then when I did make test, I got the same error in subdb: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/btree........ok t/cds..........ok t/db-3.0.......ok t/db-3.1.......ok t/db-3.2.......ok t/db-3.3.......ok t/destroy......ok t/encrypt......skipped all skipped: encryption support not present t/env..........ok t/examples.....ok t/examples3....ok t/filter.......ok t/hash.........ok t/join.........ok 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........ok t/recno........ok t/strict.......ok t/subdb........FAILED tests 33, 39 Failed 2/43 tests, 95.35% okay t/txn..........ok t/unknown......ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/subdb.t 43 2 4.65% 33 39 3 tests skipped. Failed 1/22 test scripts, 95.45% okay. 2/1350 subtests failed, 99.85% okay. *** Error code 2 Stop in /root/db-4.3.21.NC/perl/BerkeleyDB (line 849 of Makefile). perl -V output is the same as previous.
From: "Paul Marquess" <paul.marquess [...] ntlworld.com>
To: <bug-BerkeleyDB [...] rt.cpan.org>, <"undisclosed-recipients:" [...] pallas.eruditorum.org>
Subject: RE: [cpan #8654] subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6
Date: Thu, 9 Dec 2004 14:03:18 -0000
RT-Send-Cc:
I've enclosed a cut-down version of the test harness (both in-line and as an attachment). Can you run it and send me the output please? Paul use blib; use BerkeleyDB ; use strict ; use warnings; sub addData { my $db = shift ; my @data = @_ ; die "addData odd data\n" if @data % 2 != 0 ; my ($k, $v) ; my $ret = 0 ; while (@data) { $k = shift @data ; $v = shift @data ; $ret += $db->db_put($k, $v) ; } return ($ret == 0) ; } sub ok { my $no = shift ; my $result = shift ; print "not " unless $result ; print "ok $no\n" ; return $result ; } print <<EOM; BerkeleyDB Version $BerkeleyDB::db_ver EOM { my $Dfile = "./trydb.db" ; unlink $Dfile ; ok 20, my $db1 = new BerkeleyDB::Hash -Filename => $Dfile, -Subname => "fred" , -Flags => DB_CREATE ; ok 21, my $db2 = new BerkeleyDB::Btree -Filename => $Dfile, -Subname => "joe" , -Flags => DB_CREATE ; # Add a k/v pair my %data = qw( red sky blue sea black heart yellow belley green grass ) ; ok 22, addData($db1, %data) ; ok 23, addData($db2, %data) ; undef $db1 ; undef $db2 ; ok 24, my $db = new BerkeleyDB::Unknown -Filename => $Dfile , -Flags => DB_RDONLY ; #my $type = $db->type() ; print "type $type\n" ; ok 25, my $cursor = $db->db_cursor() ; my ($k, $v) = ("", "") ; my $status ; my @dbnames = () ; while (($status = $cursor->c_get($k, $v, DB_NEXT)) == 0) { push @dbnames, $k ; } ok 26, $status == DB_NOTFOUND ; ok 27, join(",", sort @dbnames) eq "fred,joe" ; undef $db ; ok 28, BerkeleyDB::db_remove(-Filename => $Dfile, -Subname => "harry") != 0; ok 29, BerkeleyDB::db_remove(-Filename => $Dfile, -Subname => "fred") == 0 ; # should only be one sub-database ok 30, $db = new BerkeleyDB::Unknown -Filename => $Dfile , -Flags => DB_RDONLY ; ok 31, $cursor = $db->db_cursor() ; @dbnames = () ; while (($status = $cursor->c_get($k, $v, DB_NEXT)) == 0) { push @dbnames, $k ; } ok 32, $status == DB_NOTFOUND ; ok 33, join(",", sort @dbnames) eq "joe" ; print "Databases [@dbnames]\n" ; undef $db ; # can't delete an already deleted subdatabase ok 34, BerkeleyDB::db_remove(-Filename => $Dfile, -Subname => "fred") != 0; ok 35, BerkeleyDB::db_remove(-Filename => $Dfile, -Subname => "joe") == 0 ; # should only be one subdatabase ok 36, $db = new BerkeleyDB::Unknown -Filename => $Dfile , -Flags => DB_RDONLY ; ok 37, $cursor = $db->db_cursor() ; @dbnames = () ; while (($status = $cursor->c_get($k, $v, DB_NEXT)) == 0) { push @dbnames, $k ; } ok 38, $status == DB_NOTFOUND ; ok 39, @dbnames == 0 ; print "Databases [@dbnames]\n" ; undef $db ; undef $cursor ; ok 40, -e $Dfile ; ok 41, BerkeleyDB::db_remove(-Filename => $Dfile) == 0 ; ok 42, ! -e $Dfile ; ok 43, BerkeleyDB::db_remove(-Filename => $Dfile) != 0 ; } Show quoted text
> -----Original Message----- > From: Guest via RT [mailto:bug-BerkeleyDB@rt.cpan.org] > Sent: 06 December 2004 16:03 > To: undisclosed-recipients: > Subject: [cpan #8654] subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6 > > > 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=8654 > > > I installed a fresh copy of OpenBSD 3.6. I downloaded the source code > (db-4.3.21.NC.tar.gz) for the latest version. Compiled and installed > build_unix without problem. Changed to the perl/BerkeleyDB directory, > edited the config.in file, did perl Makefile.PL, followed by make. All > worked fine. > > Then when I did make test, I got the same error in subdb: > > # make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/btree........ok > t/cds..........ok > t/db-3.0.......ok > t/db-3.1.......ok > t/db-3.2.......ok > t/db-3.3.......ok > t/destroy......ok > t/encrypt......skipped > all skipped: encryption support not present > t/env..........ok > t/examples.....ok > t/examples3....ok > t/filter.......ok > t/hash.........ok > t/join.........ok > 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........ok > t/recno........ok > t/strict.......ok > t/subdb........FAILED tests 33, 39 > Failed 2/43 tests, 95.35% okay > t/txn..........ok > t/unknown......ok > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------------------- > ----- > t/subdb.t 43 2 4.65% 33 39 > 3 tests skipped. > Failed 1/22 test scripts, 95.45% okay. 2/1350 subtests failed, 99.85% > okay. > *** Error code 2 > > Stop in /root/db-4.3.21.NC/perl/BerkeleyDB (line 849 of Makefile). > > > perl -V output is the same as previous.
Download try
application/octet-stream 2.9k

Message body not shown because it is not plain text.

From: "Paul Marquess" <paul.marquess [...] ntlworld.com>
To: "'Vintinner, M. Scott'" <scottv [...] rbh.com>
CC: <bug-BerkeleyDB [...] rt.cpan.org>
Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on BerkeleyDB-0.26 on OpenBSD 3.6
Date: Fri, 17 Dec 2004 16:32:19 -0000
RT-Send-Cc:
I think I have got to the bottom of the problem. If you are interested there is a script on your machine called try1 that does the same thing as the tests that were failing for you - only this version does work with OpenBSD. I made an invalid assumption with the tests that didn't matter on most Unix variants, but does on OpenBSD. The bottom line is that I need to modify my test harness. Whilst I do that, you can get my module to install by deleting the file t/subdb.t. Then a make install should then work. Drop me a line if you have any more problems and many thanks for the use of your OpenBSD box. Paul Show quoted text
> -----Original Message----- > From: Paul Marquess [mailto:Paul.Marquess@openwave.com] > Sent: 15 December 2004 22:48 > To: 'Vintinner, M. Scott' > Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on BerkeleyDB- > 0.26 on OpenBSD 3.6 > > I've just been onto you machine to run a couple of tests. The main thing > I've found is that when I try to do the equivalent of the Perl tests with > a C program, I get exactly the same results. > > I now need to run this finding past the folk at Sleepycat (the authors of > Berkeley DB) to see if this is the expected behaviour. They are usually > quite quick at getting back to me, so I'll send you an update in a couple > of days. > > Paul >
> > -----Original Message----- > > From: Vintinner, M. Scott [mailto:scottv@rbh.com] > > Sent: 13 December 2004 15:01 > > To: paul.marquess@ntlworld.com > > Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on BerkeleyDB- > > 0.26 on OpenBSD 3.6 > > > > Ok, here's the info: > > > > Ip: 65.192.26.15 > > Root password: berkeleydb > > > > BerkeleyDB source code in > > > > /root/db-4.3.21/perl/BerkeleyDB > > > > Your test script is > > > > /root/db-4.3.21/perl/BerkeleyDB/test.pl > > > > > > I compiled the build_unix of the main BerkeleyDB and installed it to: > > > > /usr/local/BerkeleyDB.4.3 > > > > I've already edited the /root/db-4.3.21/perl/BerkeleyDB/config.in file > > to indicate this. > > > > If you have any questions or need me to do anything, just give me a > > call: > > > > M. Scott Vintinner > > Senior Systems Engineer > > Robinson Bradshaw & Hinson, P.A. > > 101 N. Tryon St., Suite 1900 > > Charlotte, NC 28246 > > (704) 377-8189 > > mailto:scottv@rbh.com > > > > > > > > -----Original Message----- > > From: Paul Marquess [mailto:paul.marquess@ntlworld.com] > > Sent: Monday, December 13, 2004 6:02 AM > > To: Vintinner, M. Scott > > Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on > > BerkeleyDB-0.26 on OpenBSD 3.6 > > > > Yes please. SSH access would certainly speed the process up. > > > > Paul > > > > Ps didn't see the output on the Web site, but if I can get access to the > > machine myself it doesn't matter. > >
> > > -----Original Message----- > > > From: Vintinner, M. Scott [mailto:scottv@rbh.com] > > > Sent: 11 December 2004 23:35 > > > To: Paul.Marquess@ntlworld.com > > > Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on > > > BerkeleyDB- > > > 0.26 on OpenBSD 3.6 > > > > > > Hi Paul. I replied with the output to the website. Since I have > > > setup a test computer for this problem, I could easily give you SSH > > > access to it if you think that would help you solve the problem. I'm > > > going to reformat the computer when were done anyway. Just let me > > > know and I'll send you the info on it. > > > > > > M. Scott Vintinner > > > Senior Systems Engineer > > > Robinson Bradshaw & Hinson, P.A. > > > 101 N. Tryon St., Suite 1900 > > > Charlotte, NC 28246 > > > (704) 377-8189 > > > mailto:scottv@rbh.com > > > > > > > > > -----Original Message----- > > > From: Paul Marquess [mailto:Paul.Marquess@ntlworld.com] > > > Sent: Thursday, December 09, 2004 6:06 PM > > > To: comment-BerkeleyDB@rt.cpan.org; Vintinner, M. Scott > > > Subject: RE: [Comment] RE: [cpan #8654] subdb test fails on > > > BerkeleyDB-0.26 on OpenBSD 3.6 > > > > > > I wonder if the script got corrupted on its way to you. Did the > > > attachment make it to you ok? > > > > > > I've enclosed the script again, and this time sent it directly to you. > > > Hopefully that will get to you in one piece. > > > > > > Paul > > >
> > > > -----Original Message----- > > > > From: scottv@rbh.com via RT [mailto:comment-BerkeleyDB@rt.cpan.org] > > > > Sent: 09 December 2004 19:10 > > > > To: undisclosed-recipients: > > > > Subject: [Comment] RE: [cpan #8654] subdb test fails on > > > > BerkeleyDB-0.26 on OpenBSD 3.6 > > > > > > > > This message about BerkeleyDB was sent to you by scottv@rbh.com via > > > > rt.cpan.org > > > > > > > > Full context and any attached attachments can be found at: > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=8654 > > > > > > > > > This is a comment. It is not sent to the Requestor(s): > > > > > > > > Running the script you provided I get the following output: > > > > > > > > Can't locate object method "e" via package "blib" (perhaps you > > > > forgot to load "blib"?) at test.pl line 1. > > > > > > > > I guess I'm doing something wrong?
> > > >