Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: jkeenan [...] cpan.org
Cc:
AdminCc:

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

Attachments


Subject: Build failure with perl-5.27.11 on FreeBSD-11.1
cpanm build.log (gzipped) attached. Thank you very much. Jim Keenan
Subject: BerkeleyDB-0.55.build.log.gz

Message body not shown because it is not plain text.

On Sat May 19 13:36:40 2018, JKEENAN wrote: Show quoted text
> cpanm build.log (gzipped) attached. > > Thank you very much. > Jim Keenan
This error from your log file tells me you don't meet the prerequisites for the module #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 README says this * Berkeley DB Version 2.6.4 or greater
On Sun May 20 14:30:27 2018, PMQS wrote: Show quoted text
> On Sat May 19 13:36:40 2018, JKEENAN wrote:
> > cpanm build.log (gzipped) attached. > > > > Thank you very much. > > Jim Keenan
> > This error from your log file tells me you don't meet the > prerequisites for the module > > #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 > > README says this > > * Berkeley DB Version 2.6.4 or greater
Paul, thanks for your rapid response. This is truly puzzling. This VM is managed by vagrant, so when I initially enter the VM I do as as the 'vagrant' user, and it is that user who has 'sudo' permissions to run both 'pkg' and 'cpan' and install "system" libraries, i.e., libraries under /usr/local/. When, as the 'vagrant' user, I try to install BerkeleyDB through *either* pk5 or cpan, I'm told that it is already installed. ##### $ sudo pkg install p5-BerkeleyDB Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The most recent version of packages are already installed $ sudo cpan BerkeleyDB CPAN: Storable loaded ok (v2.62) Reading '/root/.cpan/Metadata' Database was generated on Sun, 20 May 2018 16:17:02 GMT CPAN: Module::CoreList loaded ok (v5.20180414_26) BerkeleyDB is up to date (0.55). ##### And 'man BerkeleyDB' returns this POD (trimmed for space): ##### BerkeleyDB(3) User Contributed Perl Documentation BerkeleyDB(3) NAME BerkeleyDB - Perl extension for Berkeley DB version 2, 3, 4 or 5 SYNOPSIS use BerkeleyDB; ##### And, with a little digging, I find: ##### $ find /usr/local/lib/ -name '*libdb-5*' | xargs ls -l -rw-r--r-- 1 root wheel 2637970 May 10 01:12 /usr/local/lib/db5/libdb-5.3.a -rwxr-xr-x 1 root wheel 1648544 May 10 01:12 /usr/local/lib/db5/libdb-5.3.so.0.0.0 ##### But then, suppose I login to user 'jkeenan' and, underneath my homedir, install perl-5.27.11, install cpanm against that perl, and then use .cpanm to install *thousands* of modules -- mostly problem-free. Suppose that I then try to install BerkeleyDB against *that* perl using *that* cpanm -- *that's* where I'm getting these build failures. But in all cases I'm using your BerkeleyDB-0.55 as the underlying code! I certainly am puzzled. Thank you very much. Jim Keenan
On Sun May 20 21:53:24 2018, JKEENAN wrote: Show quoted text
> On Sun May 20 14:30:27 2018, PMQS wrote:
> > On Sat May 19 13:36:40 2018, JKEENAN wrote:
> > > cpanm build.log (gzipped) attached. > > > > > > Thank you very much. > > > Jim Keenan
> > > > This error from your log file tells me you don't meet the > > prerequisites for the module > > > > #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 > > > > README says this > > > > * Berkeley DB Version 2.6.4 or greater
> > Paul, thanks for your rapid response. > > This is truly puzzling. This VM is managed by vagrant, so when I > initially enter the VM I do as as the 'vagrant' user, and it is that > user who has 'sudo' permissions to run both 'pkg' and 'cpan' and > install "system" libraries, i.e., libraries under /usr/local/. > > When, as the 'vagrant' user, I try to install BerkeleyDB through > *either* pk5 or cpan, I'm told that it is already installed. > > ##### > $ sudo pkg install p5-BerkeleyDB > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > Checking integrity... done (0 conflicting) > The most recent version of packages are already installed > > $ sudo cpan BerkeleyDB > CPAN: Storable loaded ok (v2.62) > Reading '/root/.cpan/Metadata' > Database was generated on Sun, 20 May 2018 16:17:02 GMT > CPAN: Module::CoreList loaded ok (v5.20180414_26) > BerkeleyDB is up to date (0.55). > ##### > > And 'man BerkeleyDB' returns this POD (trimmed for space): > > ##### > BerkeleyDB(3) User Contributed Perl Documentation > BerkeleyDB(3) > NAME > BerkeleyDB - Perl extension for Berkeley DB version 2, 3, 4 or > 5 > SYNOPSIS > use BerkeleyDB; > ##### > > And, with a little digging, I find: > > ##### > $ find /usr/local/lib/ -name '*libdb-5*' | xargs ls -l > -rw-r--r-- 1 root wheel 2637970 May 10 01:12 > /usr/local/lib/db5/libdb-5.3.a > -rwxr-xr-x 1 root wheel 1648544 May 10 01:12 > /usr/local/lib/db5/libdb-5.3.so.0.0.0 > ##### > > But then, suppose I login to user 'jkeenan' and, underneath my > homedir, install perl-5.27.11, install cpanm against that perl, and > then use .cpanm to install *thousands* of modules -- mostly problem- > free. > > Suppose that I then try to install BerkeleyDB against *that* perl > using *that* cpanm -- *that's* where I'm getting these build failures. > But in all cases I'm using your BerkeleyDB-0.55 as the underlying > code! > > I certainly am puzzled. > > Thank you very much. > Jim Keenan
Could this information (prompted by reading your README) be relevant? ##### $ find /usr/local/include -name 'db.h' | xargs ls -l -r--r--r-- 1 root wheel 123102 May 10 01:08 /usr/local/include/db5/db.h -rw-r--r-- 1 root wheel 38489 May 10 06:16 /usr/local/include/wx-2.8/wx/db.h ##### Thank you very much. Jim Keenan
On Sun May 20 22:07:43 2018, JKEENAN wrote: Show quoted text
> On Sun May 20 21:53:24 2018, JKEENAN wrote:
> > On Sun May 20 14:30:27 2018, PMQS wrote:
> > > On Sat May 19 13:36:40 2018, JKEENAN wrote:
> > > > cpanm build.log (gzipped) attached. > > > > > > > > Thank you very much. > > > > Jim Keenan
> > > > > > This error from your log file tells me you don't meet the > > > prerequisites for the module > > > > > > #error db.h is from Berkeley DB 1.x - need at least Berkeley DB > > > 2.6.4 > > > > > > README says this > > > > > > * Berkeley DB Version 2.6.4 or greater
> > > > Paul, thanks for your rapid response. > > > > This is truly puzzling. This VM is managed by vagrant, so when I > > initially enter the VM I do as as the 'vagrant' user, and it is that > > user who has 'sudo' permissions to run both 'pkg' and 'cpan' and > > install "system" libraries, i.e., libraries under /usr/local/. > > > > When, as the 'vagrant' user, I try to install BerkeleyDB through > > *either* pk5 or cpan, I'm told that it is already installed. > > > > ##### > > $ sudo pkg install p5-BerkeleyDB > > Updating FreeBSD repository catalogue... > > FreeBSD repository is up to date. > > All repositories are up to date. > > Checking integrity... done (0 conflicting) > > The most recent version of packages are already installed > > > > $ sudo cpan BerkeleyDB > > CPAN: Storable loaded ok (v2.62) > > Reading '/root/.cpan/Metadata' > > Database was generated on Sun, 20 May 2018 16:17:02 GMT > > CPAN: Module::CoreList loaded ok (v5.20180414_26) > > BerkeleyDB is up to date (0.55). > > ##### > > > > And 'man BerkeleyDB' returns this POD (trimmed for space): > > > > ##### > > BerkeleyDB(3) User Contributed Perl Documentation > > BerkeleyDB(3) > > NAME > > BerkeleyDB - Perl extension for Berkeley DB version 2, 3, 4 or > > 5 > > SYNOPSIS
... Show quoted text
> > Could this information (prompted by reading your README) be relevant? > > ##### > $ find /usr/local/include -name 'db.h' | xargs ls -l > -r--r--r-- 1 root wheel 123102 May 10 01:08 > /usr/local/include/db5/db.h > -rw-r--r-- 1 root wheel 38489 May 10 06:16 /usr/local/include/wx- > 2.8/wx/db.h
Possibly could be the issue. My code will look for db.h in /usr/local/BerkeleyDB/include (or whatever the INCLUDE variable has been set in config.in), followed by the include search path on your system. Neither of the paths on your setup look like "standard places" for gcc to look by default. If you think that the "db5" directory is the correct one, try either editing config.in and building. Alternatively, try just setting this environment variable before running cpan (I assume it doesn't trash the environment) export BERKELEYDB_INCLUDE=/usr/local/include/db5 Similarly you can set BERKELEYDB_LIB environemnt variable to point to the directory for the matching library. Finally if the library isn't called libdb, set the environemt variable BERKELEYDB_NAME
On 2018-05-20 22:07:43, JKEENAN wrote: Show quoted text
> On Sun May 20 21:53:24 2018, JKEENAN wrote:
> > On Sun May 20 14:30:27 2018, PMQS wrote:
> > > On Sat May 19 13:36:40 2018, JKEENAN wrote:
> > > > cpanm build.log (gzipped) attached. > > > > > > > > Thank you very much. > > > > Jim Keenan
> > > > > > This error from your log file tells me you don't meet the > > > prerequisites for the module > > > > > > #error db.h is from Berkeley DB 1.x - need at least Berkeley DB > > > 2.6.4 > > > > > > README says this > > > > > > * Berkeley DB Version 2.6.4 or greater
> > > > Paul, thanks for your rapid response. > > > > This is truly puzzling. This VM is managed by vagrant, so when I > > initially enter the VM I do as as the 'vagrant' user, and it is that > > user who has 'sudo' permissions to run both 'pkg' and 'cpan' and > > install "system" libraries, i.e., libraries under /usr/local/. > > > > When, as the 'vagrant' user, I try to install BerkeleyDB through > > *either* pk5 or cpan, I'm told that it is already installed. > > > > ##### > > $ sudo pkg install p5-BerkeleyDB > > Updating FreeBSD repository catalogue... > > FreeBSD repository is up to date. > > All repositories are up to date. > > Checking integrity... done (0 conflicting) > > The most recent version of packages are already installed > > > > $ sudo cpan BerkeleyDB > > CPAN: Storable loaded ok (v2.62) > > Reading '/root/.cpan/Metadata' > > Database was generated on Sun, 20 May 2018 16:17:02 GMT > > CPAN: Module::CoreList loaded ok (v5.20180414_26) > > BerkeleyDB is up to date (0.55). > > ##### > > > > And 'man BerkeleyDB' returns this POD (trimmed for space): > > > > ##### > > BerkeleyDB(3) User Contributed Perl Documentation > > BerkeleyDB(3) > > NAME > > BerkeleyDB - Perl extension for Berkeley DB version 2, 3, 4 or > > 5 > > SYNOPSIS > > use BerkeleyDB; > > ##### > > > > And, with a little digging, I find: > > > > ##### > > $ find /usr/local/lib/ -name '*libdb-5*' | xargs ls -l > > -rw-r--r-- 1 root wheel 2637970 May 10 01:12 > > /usr/local/lib/db5/libdb-5.3.a > > -rwxr-xr-x 1 root wheel 1648544 May 10 01:12 > > /usr/local/lib/db5/libdb-5.3.so.0.0.0 > > ##### > > > > But then, suppose I login to user 'jkeenan' and, underneath my > > homedir, install perl-5.27.11, install cpanm against that perl, and > > then use .cpanm to install *thousands* of modules -- mostly problem- > > free. > > > > Suppose that I then try to install BerkeleyDB against *that* perl > > using *that* cpanm -- *that's* where I'm getting these build > > failures. > > But in all cases I'm using your BerkeleyDB-0.55 as the underlying > > code! > > > > I certainly am puzzled. > > > > Thank you very much. > > Jim Keenan
> > Could this information (prompted by reading your README) be relevant? > > ##### > $ find /usr/local/include -name 'db.h' | xargs ls -l > -r--r--r-- 1 root wheel 123102 May 10 01:08 > /usr/local/include/db5/db.h > -rw-r--r-- 1 root wheel 38489 May 10 06:16 /usr/local/include/wx- > 2.8/wx/db.h > ##### > > Thank you very much. > Jim Keenan
Please take a look at CPAN::Plugin::Sysdeps and my distroprefs collection. This will give you the hints how to build BerkeleyDB on a FreeBSD system.