[GRASS5] ./configure --with-dbm on Debain/Testing
Hamish
hamish_nospam at yahoo.com
Sat Aug 23 06:38:38 EDT 2003
Hi,
Debian has recently changed around their GNU DBM packages a bit; the
libgdbm-dev package now provides dmb.h.
'./configure --with-dbm' gives the following error:
checking whether to use DBM... yes
checking for location of DBM includes...
checking for dbm.h... yes
checking for location of DBM library...
checking for dbminit in -ldbm... no
checking for dbminit in -lgdbm... no
checking for dbminit in -lndbm... no
configure: error: *** Unable to locate DBM library.
includes:
$ locate dbm.h
/usr/include/gdbm-ndbm.h
/usr/include/gdbm.h
/usr/include/dbm.h
libraries:
$ locate libgdbm.a
/usr/lib/libgdbm.a
$ locate libgdbm.so
/usr/lib/libgdbm.so.1.7.3
/usr/lib/libgdbm.so.1
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.so.3.0.0
/usr/lib/libgdbm.so.3
/usr/lib/libgdbm.so
http://bugs.debian.org/libgdbm-dev reports a ndbm compatability bug, if
that might have anything to do with it.
any ideas?
thanks,
Hamish
config.log output:
configure:4866: checking for location of DBM includes
configure:4892: checking for dbm.h
configure:4900: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4934: checking for location of DBM library
configure:4959: checking for dbminit in -ldbm
configure:4976: gcc -o conftest -O3 -march=i686 -Wall -s conftest.c
-ldbm 1>&5/usr/bin/ld: cannot find -ldbm
collect2: ld returned 1 exit status
configure: failed program was:
#line 4965 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dbminit();
int main() {
dbminit()
; return 0; }
configure:5001: checking for dbminit in -lgdbm
configure:5018: gcc -o conftest -O3 -march=i686 -Wall -s conftest.c
-lgdbm 1>&5/tmp/ccqKhdfm.o(.text+0xa): In function `main':
: undefined reference to `dbminit'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5007 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dbminit();
int main() {
dbminit()
; return 0; }
configure:5043: checking for dbminit in -lndbm
configure:5060: gcc -o conftest -O3 -march=i686 -Wall -s conftest.c
-lndbm 1>&5/usr/bin/ld: cannot find -lndbm
collect2: ld returned 1 exit status
configure: failed program was:
#line 5049 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dbminit();
int main() {
dbminit()
; return 0; }
More information about the grass-dev
mailing list