develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [perl #50180] NDBM_File fails to build

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
May 6, 2008 11:52
Subject:
Re: [perl #50180] NDBM_File fails to build
Message ID:
Pine.LNX.4.64.0805061441080.7649@fractal.phys.lafayette.edu
On Wed, 23 Jan 2008, via RT wrote:

> building perl 5.10.0 failed to build/install NDBM_File. i'm runninng Sidux
> (Debian Sid/Unstable). located /usr/include/gdbm-ndbm.h and had to symlink it
> to /usr/include/ndbm.h to allow NDBM_File to make properly. 

Thank you for your report.  I'm sorry it's taken so long to get back to 
you on this.

There appear to be two changes in Debian regarding the ndbm compatibility 
library that Configure needs to track.  First, as you point out, the 
include file has been moved to <gdbm-ndbm.h>.  Second, Configure needs to 
look in -lgdbm-compat to find the dbm_open() function.  (This wasn't an 
issue for you because the NDBM_File extension does this automatically when 
not built as part of the perl core.)

I'm working on a patch to fix both of these issues, but thought I'd better 
post for feedback first:

We now have three places to look for the "ndbm.h" include file:

	<ndbm.h>      /* traditional */
	<gdbm/ndbm.h>  /* RedHat 7.1, according to the Configure comments */
	<gdbm-ndbm.h>  /* Debian 4.0 */

Also, we have at least three different libraries to consider:  
       -lndbm
       -lgdbm
       -lgdbm-compat

While I'm trying to generalize things, are there any other names or
locations Configure should check? (Or any corrections to the comments
about who keeps what where?)

Thanks,

-- 
    Andy Dougherty		doughera@lafayette.edu

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