<?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/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"
  prev="2003/10/8e55c6007107054513fa168f345a31c9"
  next="2003/10/d650e3c8c4f973d97c442f69e2c19f1b"
  prev-in-thread="2003/10/0c272dd5bfb35ce29fe72630db24b26f"
  next-in-thread="2003/10/ecf8e5d0e17ba0579cf4a863f9a829e9"
  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; I built and installed OCaml 3.07 for the first time yesterday, and
&gt; noticed a couple of issues with the Dbm module. First of all, when I ran 
&gt; 'configure', I got an error message saying that NDBM support was not
&gt; available. Now, strictly speaking that is true: I am running Debian
&gt; GNU/Linux 3.0 with GDBM, not NDBM. But I had DBM working under OCaml
&gt; 3.06, and as far as I can remember no special measures were required to
&gt; build it.
[...]
&gt; The second issue I encountered is that the databases produced by the
&gt; 3.07 version of Dbm are incompatible with those created under 3.06. E.g.
&gt; 
&gt;   $ file /var/lib/fontdb/ttf.db  # old file, created under 3.06
&gt;   /var/lib/fontdb/ttf.db: Berkeley DB 1.85 \
&gt;     (Hash, version 2, native byte-order)
&gt; 
&gt;   $ file /var/tmp/spam.dir       # new files, created under 3.07
&gt;   /var/tmp/spam.dir: GNU dbm 1.x or ndbm database, little endian
&gt;   $ file /var/tmp/spam.pag 
&gt;   /var/tmp/spam.pag: GNU dbm 1.x or ndbm database, little endian

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

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.

Jacques Garrigue

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

