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

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

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
July 30, 2001 07:07
Subject:
Re: [ID 20010729.019] Building DB_File without -ldb linked to Perl fails
Message ID:
20010730090724.A23349@chaos.wustl.edu
On Sun, Jul 29, 2001 at 10:38:55PM -0700, Randy J Ray wrote:
> 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/DB_File.so] Error 2
> 
> Line 129 reads:
> 
>      #if DB_VERSION_MAJOR_CFG < 2
> 
> It seems that DB_VERSION_MAJOR_CFG is set in config.h, from the line in
> config_h.SH:
> 
>      #define DB_VERSION_MAJOR_CFG        $db_version_major       /**/
> 
> It looks like the configuration process is trying to derive this from tests
> run on the libdb.so, which isn't available in this build case. I *can*,

You could just try wrapping the #if DB_VERSION_MAJOR_CFG ... #endif inside
#ifdef DB_VERSION_MAJOR_CFG ... #endif.

> 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).
> 
> Randy

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About