develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010729.019] Building DB_File without -ldb linked to Perl fails

Thread Next
Randy J Ray
July 29, 2001 22:45
[ID 20010729.019] Building DB_File without -ldb linked to Perl fails
Message ID:
This is against bleedperl 11467.

On Red Hat-based systems, we've long configured Perl to not natively link in
any of the DBM-ish libraries directly, instead opting to build those
extensions as purely-dynamic.

With the current bleadperl, I get the following when building DB_File:

cc -c  -D_REENTRANT -Wall -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.77\" -DXS_VERSION=\"1.77\" -fpic -I../..  DB_File.c
DB_File.xs:129: parse error
make[1]: *** [DB_File.o] Error 1
make[1]: Leaving directory `/home/users/rjray/perl/ext/DB_File'
make: *** [lib/auto/DB_File/] Error 2

Line 129 reads:


It seems that DB_VERSION_MAJOR_CFG is set in config.h, from the line in

     #define DB_VERSION_MAJOR_CFG        $db_version_major       /**/

It looks like the configuration process is trying to derive this from tests
run on the, which isn't available in this build case. I *can*,
however, build DB_File from CPAN, so this should only be a minor stumble. I'm
just not certain how to address this (whether in Configure, DB_File.xs or the
Makefile.PL for DB_File).


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About