Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] DBM in OCaml 3.07
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] DBM in OCaml 3.07
From: Matt Gushee <>

> > There seems to be another problem with gdbm-ndbm.h being ignored if
> > there is no gdbm_compat library, which might have to be fixed, but I'm
> > no gdbm exert. gdbm-ndbm.h was not checked on ocaml 3.06, but it has
> > lower priority than ndbm.h anyway.
> Ah, but it effectively has a *higher* priority in the configure script:
>   for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do
>     if test -f $dir/ndbm.h; then
>       ....
>     fi
>     if test -f $dir/gdbm-ndbm.h; then
>       ....
>     fi
>   done

The break is supposed to get out of the loop, so if ndbm.h is in the
same directory, or a previous directory, it has priority.
This is a bit confusing, as if ndbm.h is in /usr/include/db1 and
gdbm-ndbm.h is in /usr/include, then gdbm-ndbm.h will be selected.
Is it your case?

> And maybe it would be useful to add a -dbm-includes option to the
> configure script, to help people work around this sort of situation. I
> suspect I'm not the only person with more than one DBM library.

Probably a good idea indeed.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: