Git Product home page Git Product logo

berkeleydb's People

Contributors

clayne avatar pghmcfc avatar pmqs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

berkeleydb's Issues

BerkeleyDB fails to build on MacOS 14.4.1 (Sonoma) with perl v5.38.2 and berkeley-db@5 (5.3.28_1)

make fails with this error:

BerkeleyDB.xs:82:2: error: db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
#error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
(see below for full make output)

However, I have BerkleyDB v5.3.28_1 installed via homebrew. (see below for brew info)

It seems that this version of BerkeleyDB is too new for the module.

brew suggests setting LDFLAGS and CPPFLAGS like this:

export LDFLAGS="-L/opt/homebrew/opt/berkeley-db@5/lib"
export CPPFLAGS="-I/opt/homebrew/opt/berkeley-db@5/include"

Setting these do not change the error message.

Additionally, brew suggests changing $PATH to put the berkeley-db bin first as:

export PATH="/opt/homebrew/opt/berkeley-db@5/bin:$PATH"

This also had no effect on the make.

make output:

Skip blib/lib/BerkeleyDB/Hash.pm (unchanged)
Skip blib/lib/BerkeleyDB/Btree.pm (unchanged)
Skip blib/lib/mkconsts.pl (unchanged)
Skip blib/lib/scan.pl (unchanged)
Skip blib/lib/BerkeleyDB.pm (unchanged)
Skip blib/lib/BerkeleyDB.pod (unchanged)
Running Mkbootstrap for BerkeleyDB ()
chmod 644 "BerkeleyDB.bs"
"/opt/homebrew/Cellar/perl/5.38.2_1/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs 644
cc -c  -I/usr/local/BerkeleyDB/include -fno-common -DPERL_DARWIN -mmacosx-version-min=14.2 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -Wno-error=implicit-function-declaration -O3   -DVERSION=\"0.65\" -DXS_VERSION=\"0.65\"  "-I/opt/homebrew/opt/perl/lib/perl5/5.38/darwin-thread-multi-2level/CORE"   BerkeleyDB.c
BerkeleyDB.xs:82:2: error: db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
#error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
 ^
BerkeleyDB.xs:270:2: error: unknown type name 'DB_ENV'
        DB_ENV *        Env ;
        ^
BerkeleyDB.xs:305:9: error: unknown type name 'DB_INFO'
        DB_INFO *       info ;
        ^
BerkeleyDB.xs:306:9: error: unknown type name 'DBC'
        DBC *           cursor ;
        ^
BerkeleyDB.xs:307:2: error: type name requires a specifier or qualifier
        DB_TXN *        txn ;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:307:2: error: expected member name or ';' after declaration specifiers
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:306:26: error: expected ';' at end of declaration list
        DBC *           cursor ;
                                ^
                                ;
BerkeleyDB.xs:348:9: error: unknown type name 'DB_INFO'
        DB_INFO *       info ;
        ^
BerkeleyDB.xs:349:9: error: unknown type name 'DBC'
        DBC *           cursor ;
        ^
BerkeleyDB.xs:350:2: error: type name requires a specifier or qualifier
        DB_TXN *        txn ;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:350:2: error: expected member name or ';' after declaration specifiers
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:349:26: error: expected ';' at end of declaration list
        DBC *           cursor ;
                                ^
                                ;
BerkeleyDB.xs:394:2: error: type name requires a specifier or qualifier
        DB_TXN *        txn ;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:394:2: error: expected member name or ';' after declaration specifiers
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:93:17: note: expanded from macro 'DB_TXN'
#define DB_TXN          0x80000000      /* Do transactions. */
                        ^
BerkeleyDB.xs:393:15: error: expected ';' at end of declaration list
        int             Status ;
                                ^
                                ;
BerkeleyDB.xs:733:5: error: unknown type name 'db_recno_t'; did you mean 'recno_t'?
    db_recno_t  x_Value;
    ^~~~~~~~~~
    recno_t
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:54:19: note: 'recno_t' declared here
typedef u_int32_t       recno_t;
                        ^
BerkeleyDB.xs:734:5: error: unknown type name 'db_recno_t'; did you mean 'recno_t'?
    db_recno_t  x_zero;
    ^~~~~~~~~~
    recno_t
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/db.h:54:19: note: 'recno_t' declared here
typedef u_int32_t       recno_t;
                        ^
BerkeleyDB.xs:877:10: warning: call to undeclared function 'txn_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                txn_abort(tid->txn);
                ^
BerkeleyDB.xs:877:25: error: no member named 'txn' in 'struct (unnamed at BerkeleyDB.xs:392:9)'
                txn_abort(tid->txn);
                          ~~~  ^
BerkeleyDB.xs:949:36: error: too many arguments to function call, expected 1, have 2
                (db->dbp->close)(db->dbp, 0) ;
                ~~~~~~~~~~~~~~~~          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [BerkeleyDB.o] Error 1

brew info berkeley-db@5:

==> berkeley-db@5: stable 5.3.28 (bottled) [keg-only]
High performance key/value database
https://www.oracle.com/database/technologies/related/berkeleydb.html
Installed
/opt/homebrew/Cellar/berkeley-db@5/5.3.28_1 (5,271 files, 86.4MB)
  Poured from bottle using the formulae.brew.sh API on 2023-12-31 at 11:39:34
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/b/[email protected]
License: Sleepycat
==> Caveats
berkeley-db@5 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have berkeley-db@5 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/berkeley-db@5/bin:$PATH"' >> /Users/martini/.bash_profile

For compilers to find berkeley-db@5 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/berkeley-db@5/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/berkeley-db@5/include"

perl -V:

Summary of my perl5 (revision 5 version 38 subversion 2) configuration:

  Platform:
    osname=darwin
    osvers=23.2.0
    archname=darwin-thread-multi-2level
    uname='darwin sonoma-arm64.local 23.2.0 darwin kernel version 23.2.0: wed nov 15 21:54:25 pst 2023; root:xnu-10002.61.3~2release_arm64_vmapple arm64 '
    config_args='-des -Dinstallstyle=lib/perl5 -Dinstallprefix=/opt/homebrew/Cellar/perl/5.38.2_1 -Dprefix=/opt/homebrew/opt/perl -Dprivlib=/opt/homebrew/opt/perl/lib/perl5/5.38 -Dsitelib=/opt/homebrew/opt/perl/lib/perl5/site_perl/5.38 -Dotherlibdirs=/opt/homebrew/lib/perl5/site_perl/5.38 -Dperlpath=/opt/homebrew/opt/perl/bin/perl -Dstartperl=#!/opt/homebrew/opt/perl/bin/perl -Dman1dir=/opt/homebrew/opt/perl/share/man/man1 -Dman3dir=/opt/homebrew/opt/perl/share/man/man3 -Duseshrplib -Duselargefiles -Dusethreads'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=14.2 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong'
    optimize='-O3'
    cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=14.2 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='Apple LLVM 15.0.0 (clang-1500.1.0.2.5)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=8
    longdblkind=0
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -mmacosx-version-min=14.2 -fstack-protector-strong'
    libpth=/opt/homebrew/Cellar/berkeley-db@5/5.3.28_1/lib /opt/homebrew/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
    libs=-lgdbm -ldb
    perllibs=
    libc=
    so=dylib
    useshrplib=true
    libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=bundle
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags=' -mmacosx-version-min=14.2 -bundle -undefined dynamic_lookup -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_LONG_DOUBLE
    HAS_STRTOLD
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_SIPHASH13
    PERL_HASH_USE_SBOX32
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under darwin
  Compiled at Nov 28 2023 14:04:47
  %ENV:
    PERL5LIB="/usr/local/lib/site_perl:/opt/homebrew/opt/perl/lib/perl5/site_perl"
  @INC:
    /usr/local/lib/site_perl
    /opt/homebrew/opt/perl/lib/perl5/site_perl
    /opt/homebrew/opt/perl/lib/perl5/site_perl/5.38/darwin-thread-multi-2level
    /opt/homebrew/opt/perl/lib/perl5/site_perl/5.38
    /opt/homebrew/opt/perl/lib/perl5/5.38/darwin-thread-multi-2level
    /opt/homebrew/opt/perl/lib/perl5/5.38
    /opt/homebrew/lib/perl5/site_perl/5.38

uname -a:

Darwin mycomputer 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64

clang compilation warning

BerkeleyDB.xs:6149:74: warning: operator '<<' has lower precedence than '+'; '+'
      will be evaluated first [-Wshift-op-parentheses]
  ...= seq->seq->initial_value(seq->seq, (db_seq_t)(high << 32 + low));
                                                         ~~ ~~~^~~~~
BerkeleyDB.xs:6149:74: note: place parentheses around the '+' expression to
      silence this warning
  ...= seq->seq->initial_value(seq->seq, (db_seq_t)(high << 32 + low));
                                                               ^
                                                            (       )
1 warning generated.
$ clang --version
clang version 8.0.0-3 (tags/RELEASE_800/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

LICENSE BerkeleyDB under AGPL-3.0 to match Oracle's berkeleydb license?

Your work making berkeleydb available from perl scripts for decades (!) is remarkable. Thank you for doing this important work.

Will you consider revising the LICENSE for Perl-BerkeleyDB to match the AGPL-3.0 license supported by Oracle for berkeleydb?

See Oracle's AGPL-3.0, here: https://www.oracle.com/downloads/licenses/berkeleydb-oslicense.html

Also, this repository should conform to GitHub's recommendation; clearly identifying the LICENSE applicable to this source code.

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository

As you know, the only file in this repository that currently addresses the question of licensing is your BerkeleyDB.pod which is somewhat confusing to read presently, and you have quoted an old FAQ published by Oracle that contained a logical error. There was never a requirement for "software that uses Berkeley DB" (the free berkeleydb database software from Oracle) to be freely redistributable, nor must such software apply the same license (AGPL) as Berkeley DB. That logical error must have been written into the FAQ long ago by somebody who was new to GNU copyleft, free software, and open source at the time the bad thinking occurred.

Oracle's current FAQ contains this:

Does the move to the AGPL open source license affect customers who purchased a commercial license?
No. If you own a commercial license, you can continue to download and use new releases of Berkeley DB
under the terms of your commercial license. Berkeley DB continues to be dual license, open source or
commercial. The open source license has changed from the (proprietary) Sleepycat license to the
(industry standard) AGPL.

See: https://www.oracle.com/database/technologies/berkeleydb-db-faq.html#DoesthemovetotheAGPLopensourcelicenseaffectcustomerswhopurchasedacommerciallicense

Any software that is derived from Oracle's Berkeley DB must be licensed under the AGPL, but merely using Berkeley DB as the database in your application does not create a derivative work. Redistributing the source code of Berkeley DB along with your own software which creates a Berkeley DB database likewise does not cause you to be obligated to release your source code under the AGPL. Naturally, we want everyone to use the AGPL at all times for all new software development but not everybody does nor can they in every case even if they wanted to do so.

Developers who build software that merely uses your perl BerkeleyDB aren't obligated to apply a license to their source code at all, as you know, not even if they distribute a copy of your source code along with their own to be "open" source (open as in "closed source" but we get to look at the copyright-protected unlicensable-but-transparent work of a closed-source proprietary software vendor) without applying any open source or free software license to the published-under-copyright source code.

Applying the standard straight-forward GNU Affero license to BerkeleyDB instead of inventing your own "free software" license, as you did historically, would clear up this entire question, forever. As the only person who has ever owned the copyright to BerkeleyDB you are able to make this change of license and apply it retroactively if you wish. (please do)

Quoting below from: https://github.com/pmqs/BerkeleyDB/blob/master/BerkeleyDB.pod

COPYRIGHT

Copyright (c) 1997-2020 Paul Marquess. All rights reserved. This program
is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.

Although BerkeleyDB is covered by the Perl license, the library it
makes use of, namely Berkeley DB, is not. Berkeley DB has its own
copyright and its own license. Please take the time to read it.

Here are few words taken from the Berkeley DB FAQ at
http://www.oracle.com/technology/products/berkeley-db/db/index.html regarding the license:

    Do I have to license DB to use it in Perl scripts?

    No. The Berkeley DB license requires that software that uses
    Berkeley DB be freely redistributable. In the case of Perl, that
    software is Perl, and not your scripts. Any Perl scripts that you
    write are your property, including scripts that make use of Berkeley
    DB. Neither the Perl license nor the Berkeley DB license
    place any restriction on what you may do with them.

If you are in any doubt about the license situation, contact either the
Berkeley DB authors or the author of BerkeleyDB.

BerkeleyDB fails to build against perl-5.31.0 on FreeBSD-12

As part of CPAN-River-3000 testing, I recently attempted to install BerkeleyDB on FreeBSD-12 against perl-5.31.0 using cpanm as the installer. Build-time failure. Excerpt from cpanm build.log below.

[analysis] $ dumpjson PMQS.BerkeleyDB-0.61.log.json 
{
  author => "PMQS",
  dist => "BerkeleyDB",
  distname => "BerkeleyDB-0.61",
  distversion => 0.61,
  grade => "FAIL",
  prereqs => undef,
  test_output => [
    "Building and testing BerkeleyDB-0.61",
    "cp BerkeleyDB/Btree.pm blib/lib/BerkeleyDB/Btree.pm",
    "cp mkconsts.pl blib/lib/mkconsts.pl",
    "cp BerkeleyDB.pod blib/lib/BerkeleyDB.pod",
    "cp scan.pl blib/lib/scan.pl",
    "cp BerkeleyDB.pm blib/lib/BerkeleyDB.pm",
    "cp BerkeleyDB/Hash.pm blib/lib/BerkeleyDB/Hash.pm",
    "Running Mkbootstrap for BerkeleyDB ()",
    "chmod 644 \"BerkeleyDB.bs\"",
    "\"/usr/home/jkeenan/var/tad/testing/perl-5.31.0/bin/perl\" -MExtUtils::Command::MM -e 'cp_nonempty' -- BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs 644",
    "\"/usr/home/jkeenan/var/tad/testing/perl-5.31.0/bin/perl\" \"/home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/ExtUtils/xsubpp\" -noprototypes -typemap '/home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/ExtUtils/typemap' -typemap '/usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/BerkeleyDB-0.61/typemap'  BerkeleyDB.xs > BerkeleyDB.xsc",
    "Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5934",
    "Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5962",
    "mv BerkeleyDB.xsc BerkeleyDB.c",
    "cc -c  -Ilibraries/6.1.10/include  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\\\"0.61\\\"  -DXS_VERSION=\\\"0.61\\\" -DPIC -fPIC \"-I/home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi/CORE\"   BerkeleyDB.c",
    "BerkeleyDB.xs:82:2: error: db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4",
    "#error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4",
    " ^",
    "BerkeleyDB.xs:270:2: error: unknown type name 'DB_ENV'",
    "        DB_ENV *        Env ;",
    "        ^",
    "BerkeleyDB.xs:305:9: error: unknown type name 'DB_INFO'",
    "        DB_INFO *       info ;",
    "        ^",
    "BerkeleyDB.xs:306:9: error: unknown type name 'DBC'",
    "        DBC *           cursor ;",
    "        ^",
    "BerkeleyDB.xs:307:2: error: type name requires a specifier or qualifier",
    "        DB_TXN *        txn ;",
    "        ^",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:307:2: error: expected member name or ';' after declaration specifiers",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:306:26: error: expected ';' at end of declaration list",
    "        DBC *           cursor ;",
    "                                ^",
    "                                ;",
    "BerkeleyDB.xs:348:9: error: unknown type name 'DB_INFO'",
    "        DB_INFO *       info ;",
    "        ^",
    "BerkeleyDB.xs:349:9: error: unknown type name 'DBC'",
    "        DBC *           cursor ;",
    "        ^",
    "BerkeleyDB.xs:350:2: error: type name requires a specifier or qualifier",
    "        DB_TXN *        txn ;",
    "        ^",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:350:2: error: expected member name or ';' after declaration specifiers",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:349:26: error: expected ';' at end of declaration list",
    "        DBC *           cursor ;",
    "                                ^",
    "                                ;",
    "BerkeleyDB.xs:394:2: error: type name requires a specifier or qualifier",
    "        DB_TXN *        txn ;",
    "        ^",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:394:2: error: expected member name or ';' after declaration specifiers",
    "/usr/include/db.h:91:17: note: expanded from macro 'DB_TXN'",
    "#define DB_TXN          0x80000000      /* Do transactions. */",
    "                        ^",
    "BerkeleyDB.xs:393:15: error: expected ';' at end of declaration list",
    "        int             Status ;",
    "                                ^",
    "                                ;",
    "BerkeleyDB.xs:736:5: error: unknown type name 'db_recno_t'; did you mean 'recno_t'?",
    "    db_recno_t  x_Value; ",
    "    ^~~~~~~~~~",
    "    recno_t",
    "/usr/include/db.h:52:18: note: 'recno_t' declared here",
    "typedef uint32_t        recno_t;",
    "                        ^",
    "BerkeleyDB.xs:737:5: error: unknown type name 'db_recno_t'; did you mean 'recno_t'?",
    "    db_recno_t  x_zero;",
    "    ^~~~~~~~~~",
    "    recno_t",
    "/usr/include/db.h:52:18: note: 'recno_t' declared here",
    "typedef uint32_t        recno_t;",
    "                        ^",
    "BerkeleyDB.xs:877:10: warning: implicit declaration of function 'txn_abort' is invalid in C99 [-Wimplicit-function-declaration]",
    "                txn_abort(tid->txn);",
    "                ^",
    "BerkeleyDB.xs:877:25: error: no member named 'txn' in 'struct (anonymous at BerkeleyDB.xs:392:9)'",
    "                txn_abort(tid->txn);",
    "                          ~~~  ^",
    "BerkeleyDB.xs:949:36: error: too many arguments to function call, expected 1, have 2",
    "                (db->dbp->close)(db->dbp, 0) ;",
    "                ~~~~~~~~~~~~~~~~          ^",
    "fatal error: too many errors emitted, stopping now [-ferror-limit=]",
    "1 warning and 20 errors generated.",
    "*** Error code 1",
    "",
    "Stop.",
    "make: stopped in /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/BerkeleyDB-0.61",
    "-> FAIL Installing BerkeleyDB failed. See /home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/build.log for details. Retry with --force to force install it.",
  ],
  via => "App::cpanminus::reporter 0.17 (1.7044)",
}
$ thisperl -V
Summary of my perl5 (revision 5 version 31 subversion 0) configuration:
   
  Platform:
    osname=freebsd
    osvers=12.0-release
    archname=amd64-freebsd-thread-multi
    uname='freebsd perl-reporter-07 12.0-release freebsd 12.0-release r341666 generic amd64 '
    config_args='-des -Dusedevel -Uversiononly -Dman1dir=none -Dman3dir=none -Duseithreads -Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing -Dprefix=/home/jkeenan/var/tad/testing/perl-5.31.0'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2'
    optimize='-O2 -pipe -fstack-protector -fno-strict-aliasing'
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags ='-pthread -Wl,-E  -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib /usr/lib/clang/6.0.1/lib /usr/lib
    libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil
    perllibs=-lpthread -ldl -lm -lcrypt -lutil
    libc=
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags='-DPIC -fPIC'
    lddlflags='-shared  -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_DEVEL
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
    USE_THREAD_SAFE_LOCALE
  Built under freebsd
  Compiled at Jul 10 2019 10:35:51
  %ENV:
    PERL2DIR="/home/jkeenan/gitwork/perl2"
    PERL_WORKDIR="/home/jkeenan/gitwork/perl"
  @INC:
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/amd64-freebsd-thread-multi
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi
    /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0

Can you investigate?

Thank you very much.
Jim Keenan

make failed

hello,when I make BerkeleyDB, I met some errors as follow.
I don't know why.
$make cp BerkeleyDB.pod blib/lib/BerkeleyDB.pod cp BerkeleyDB.pm blib/lib/BerkeleyDB.pm cp BerkeleyDB/Hash.pm blib/lib/BerkeleyDB/Hash.pm cp BerkeleyDB/Btree.pm blib/lib/BerkeleyDB/Btree.pm cp mkconsts.pl blib/lib/mkconsts.pl cp scan.pl blib/lib/scan.pl Running Mkbootstrap for BerkeleyDB () chmod 644 "BerkeleyDB.bs" "/Bio/home/Yanglab/Yuzhenpeng/miniconda2/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs 644 "/Bio/home/Yanglab/Yuzhenpeng/miniconda2/bin/perl" "/Bio/home/Yanglab/Yuzhenpeng/miniconda2/lib/5.26.2/ExtUtils/xsubpp" -noprototypes -typemap '/Bio/home/Yanglab/Yuzhenpeng/miniconda2/lib/5.26.2/ExtUtils/typemap' -typemap '/Bio/home/Yanglab/Yuzhenpeng/opt/softwares/BerkeleyDB-0.64/typemap' BerkeleyDB.xs > BerkeleyDB.xsc Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5936 Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5964 mv BerkeleyDB.xsc BerkeleyDB.c /Bio/home/Yanglab/Yuzhenpeng/miniconda2/envs/Forward/bin/..//bin/x86_64-conda_cos6-linux-gnu-gcc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE --sysroot=/Bio/home/Yanglab/Yuzhenpeng/miniconda2/envs/Forward/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC --sysroot=/Bio/home/Yanglab/Yuzhenpeng/miniconda2/envs/Forward/bin/..//x86_64-conda_cos6-linux-gnu/sysroot "-I/Bio/home/Yanglab/Yuzhenpeng/miniconda2/lib/5.26.2/x86_64-linux-thread-multi/CORE" BerkeleyDB.c BerkeleyDB.xs:76:10: fatal error: db.h: No such file or directory #include <db.h> ^~~~~~ compilation terminated. make: *** [Makefile:346: BerkeleyDB.o] Error 1
could you give me some suggestion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.