<?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/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"
  prev="2003/10/d650e3c8c4f973d97c442f69e2c19f1b"
  next="2003/10/c1e606f4564d162e20c4d31b0f5e19f4"
  prev-in-thread="2003/10/ceabf63470c7c1df4caae131f238f078"
  next-in-thread="2003/10/c1e606f4564d162e20c4d31b0f5e19f4"
  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>
On Wed, Oct 15, 2003 at 09:40:48AM +0900, Jacques Garrigue wrote:
&gt; From: Matt Gushee &lt;matt@gushee.net&gt;
&gt; 
&gt; &gt; I built and installed OCaml 3.07 for the first time yesterday, and
&gt; &gt; noticed a couple of issues with the Dbm module. First of all, when I ran 
&gt; &gt; 'configure', I got an error message saying that NDBM support was not
&gt; &gt; available. Now, strictly speaking that is true: I am running Debian

&gt; This is strange enough: apparently under ocaml 3.06 you were using
&gt; Berkeley DB rather than gdbm. This is coherent with the configure
&gt; script, which tries Berkeley DB (db1) before gdbm.
&gt; Now, for some reason Berkeley DB seems not to work on your system now
&gt; (you could try to configure ocaml 3.06 again to see that).
&gt; So I think the change is in your system not in ocaml itself.
&gt; Did you remove some library?

Well, I tinker with my system a lot, so it's possible, but I have no
memory of adding or removing anything relating to DBM, nor can I imagine
why I would have. But I think the problem may be with the configure
script anyway--see below.

&gt; There seems to be another problem with gdbm-ndbm.h being ignored if
&gt; there is no gdbm_compat library, which might have to be fixed, but I'm
&gt; no gdbm exert. gdbm-ndbm.h was not checked on ocaml 3.06, but it has
&gt; 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

Since I have both GDBM and NDBM (I hadn't looked hard enough before:
Debian provides NDBM with the libc6 package), the above results in
attempting to use GDBM (as I'm sure you can tell). Perhaps that should
be

  for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do
    if test -f $dir/ndbm.h; then
      ....
    elif test -f $dir/gdbm-ndbm.h; then
      ....
    fi
  done

?

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.

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

-------------------
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>

