<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/c1e606f4564d162e20c4d31b0f5e19f4"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-10-15T01:39:38"
  subject="Re: [Caml-list] DBM in OCaml 3.07"
  prev="2003/10/ecf8e5d0e17ba0579cf4a863f9a829e9"
  next="2003/10/08d0b380cf61c19556ca308cbd7a58ed"
  prev-in-thread="2003/10/ecf8e5d0e17ba0579cf4a863f9a829e9"
  next-in-thread="2003/10/87502508980ae99e5b009c2f972ffd44"
  prev-thread="2003/10/3557909eb406de5c9c556ee445b3095e"
  next-thread="2003/10/8e55c6007107054513fa168f345a31c9"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] DBM in OCaml 3.07">
<msg 
  url="2003/10/0c272dd5bfb35ce29fe72630db24b26f"
  from="Matt Gushee &lt;matt@g...&gt;"
  author="Matt Gushee"
  date="2003-10-15T00:13:54"
  subject="[Caml-list] DBM in OCaml 3.07">
<msg 
  url="2003/10/ceabf63470c7c1df4caae131f238f078"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-10-15T00:41:49"
  subject="Re: [Caml-list] DBM in OCaml 3.07">
<msg 
  url="2003/10/ecf8e5d0e17ba0579cf4a863f9a829e9"
  from="Matt Gushee &lt;matt@g...&gt;"
  author="Matt Gushee"
  date="2003-10-15T01:24:43"
  subject="Re: [Caml-list] DBM in OCaml 3.07">
<msg 
  url="2003/10/c1e606f4564d162e20c4d31b0f5e19f4"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-10-15T01:39:38"
  subject="Re: [Caml-list] DBM in OCaml 3.07">
<msg 
  url="2003/10/87502508980ae99e5b009c2f972ffd44"
  from="Matt Gushee &lt;matt@g...&gt;"
  author="Matt Gushee"
  date="2003-10-15T02:24:48"
  subject="Re: [Caml-list] DBM in OCaml 3.07">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
From: Matt Gushee &lt;matt@gushee.net&gt;

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

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

Probably a good idea indeed.

         Jacques

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

