[GRASS5] ./configure --with-dbm on Debain/Testing

Markus Neteler neteler at itc.it
Mon Sep 22 08:21:31 EDT 2003


On Tue, Sep 23, 2003 at 12:11:22AM +1200, Hamish wrote:
> > > > libgdbm is (unsurprisingly) the GNU version, which includes both
> > > > DBM and NDBM functions, as well as a new set of functions (i.e.
> > > > the GDBM interface). At least it did, until Debian decided that
> > > > they were going to be different to every other Unix system from
> > > > the last couple of decades. But that's Debian's problem, not ours.
> > > 
> > > Again, I think this is a change in the GNU version, which Debian is
> > > just shadowing.
> > > 
> > > libgdbm_compat exists in the latest versions here, for example:
> > > http://www.ibiblio.org/pub/gnu/gdbm/
> > 
> > Oh dear.
> > 
> > Fortunately, it doesn't appear that anything actually uses dbm.h. The
> > checks were originally added because David D Gray implied back in Jan
> > 2002 that he wanted to use them for v.in.shape/v.in.mif, but I can't
> > find any trace of DBM/NDBM/GDBM actually being used.
> > 
> > The easiest solution would seem to be to simply remove the checks, and
> > set aside the issue of whether to accomodate this particular piece of
> > GNU idiocy until it actually has to be addressed.
> 
> 
> 
> FYI, this patch was posted to the Debian bug system re. the above bug:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=203834
> 
> diff -ru grass-4.99+5.0.0pre4.debian/configure.in grass-4.99+5.0.0pre4/configure.in
> --- grass-4.99+5.0.0pre4.debian/configure.in	2003-09-02 18:33:48.000000000 +0200
> +++ grass-4.99+5.0.0pre4/configure.in	2003-09-02 18:35:59.000000000 +0200
> @@ -501,9 +501,11 @@
>  
>  LOC_CHECK_LIBS(dbm, dbminit,DBM,$DBMLIBPATH,DBMLIB,,,[
>  LOC_CHECK_LIBS(gdbm,dbminit,DBM,$DBMLIBPATH,DBMLIB,,,[
> +LOC_CHECK_LIBS(gdbm_compat,dbminit,DBM,$DBMLIBPATH,DBMLIB,,,[
>  LOC_CHECK_LIBS(ndbm,dbminit,DBM,$DBMLIBPATH,DBMLIB,,,)
>  ])
>  ])
> +])
>  
>  fi # $USE_DBM
>  

Note, there was this answer from Glynn

http://grass.itc.it/pipermail/grass5/2003-August/012466.html

Markus




More information about the grass-dev mailing list