Skip Menu |

This queue is for tickets about the DB_File CPAN distribution.

Report information
The Basics
Id: 125585
Status: open
Priority: 0/
Queue: DB_File

People
Owner: pmqs [...] cpan.org
Requestors: davehodg [...] gmail.com
Cc:
AdminCc:

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



Subject: Test Fails
Date: Thu, 14 Jun 2018 10:59:51 +0100
To: bug-DB_File [...] rt.cpan.org
From: Dave Hodgkinson <davehodg [...] gmail.com>
Trying to build on a freshly brewed perl-5.22.4 I get: $ make test "/Users/davidhodgkinson/perl5/perlbrew/perls/perl-5.22.4/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB_File.bs blib/arch/auto/DB_File/DB_File.bs 644 PERL_DL_NONLAZY=1 "/Users/davidhodgkinson/perl5/perlbrew/perls/perl-5.22.4/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/db-btree.t .. ok t/db-hash.t ... Use of uninitialized value $value in string eq at t/db-hash.t line 224. Use of uninitialized value $values[0] in string eq at t/db-hash.t line 224. Use of uninitialized value $value in lc at t/db-hash.t line 224. Use of uninitialized value $h{""} in string eq at t/db-hash.t line 243. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. Use of uninitialized value $foo[18] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[36] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[48] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[58] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[59] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[60] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[62] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[63] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[92] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[114] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[140] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[187] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[188] in join or string at t/db-hash.t line 261. Use of uninitialized value $foo[189] in join or string at t/db-hash.t line 261. t/db-hash.t ... 1/166 Use of uninitialized value $h{"Fred"} in string eq at t/db-hash.t line 572. Use of uninitialized value $v in concatenation (.) or string at t/db-hash.t line 748. t/db-hash.t ... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 76/166 subtests t/db-recno.t .. ok t/pod.t ....... ok Test Summary Report ------------------- t/db-hash.t (Wstat: 6400 Tests: 116 Failed: 26) Failed tests: 23-25, 27-28, 30, 37, 45-46, 68, 70, 72-77 82, 84, 86, 89-90, 98, 101, 106, 112 Non-zero exit status: 25 Parse errors: Bad plan. You planned 166 tests but ran 116. Files=4, Tests=518, 37 wallclock secs ( 0.21 usr 0.05 sys + 3.74 cusr 11.46 csys = 15.46 CPU) Result: FAIL Failed 1/4 test programs. 26/518 subtests failed. make: *** [test_dynamic] Error 255

Message body is not shown because it is too large.

Hey Dave, This appears to be a duplicate of https://rt.cpan.org/Ticket/Display.html?id=125238. That report suggests that the BerkelyDB library in MacOS is in a place that DB_File hasn't been configured to use. In the section "Let's make libdb work" from #125238, it says that the BerkeleyDB library is installed in /opt/local/lib/db48. If that is the case here, edit the config.in file for DB_File and set INCLUDE = /opt/local/include/db48 LIB = /opt/local/lib/db48 the rebuild & test DB_File. Alternatively set the environment variables DB_FILE_INCLUDE to /opt/local/include/db48 and DB_FILE_LIB to /opt/local/lib/db48, the rebuild & test DB_File. If this works, I'll add a note to the Troubleshooting section in the README cheers Paul
On Sat Jun 16 18:51:35 2018, PMQS wrote: Show quoted text
> Hey Dave, > > This appears to be a duplicate of > https://rt.cpan.org/Ticket/Display.html?id=125238. > > That report suggests that the BerkelyDB library in MacOS is in a place > that DB_File hasn't been configured to use. In the section "Let's make > libdb work" from #125238, it says that the BerkeleyDB library is > installed in /opt/local/lib/db48. > > If that is the case here, edit the config.in file for DB_File and set > > INCLUDE = /opt/local/include/db48 > LIB = /opt/local/lib/db48 > > the rebuild & test DB_File. > > Alternatively set the environment variables DB_FILE_INCLUDE to > /opt/local/include/db48 and DB_FILE_LIB to /opt/local/lib/db48, the > rebuild & test DB_File. > > If this works, I'll add a note to the Troubleshooting section in the > README
While installing 5.28.0 with perlbrew I hit this. I checked db48 was installed with macports (port installed db48 | grep active) and after export DB_FILE_INCLUDE=/opt/local/include/db48 and export DB_FILE_LIB=/opt/local/lib/db48, perlbrew install perl-5.28.0 build, test and install all succeeded. This was all on: ProductName: Mac OS X ProductVersion: 10.13.3 BuildVersion: 17D102
... Show quoted text
> > While installing 5.28.0 with perlbrew I hit this. I checked db48 was > installed with macports (port installed db48 | grep active) and after > export DB_FILE_INCLUDE=/opt/local/include/db48 and export > DB_FILE_LIB=/opt/local/lib/db48, perlbrew install perl-5.28.0 build, > test and install all succeeded. > > This was all on: > > ProductName: Mac OS X > ProductVersion: 10.13.3 > BuildVersion: 17D102
Thaks for the feedback.