Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: matt@gushee.net
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] DBM in OCaml 3.07
Date: Wed, 15 Oct 2003 09:40:48 +0900	[thread overview]
Message-ID: <20031015094048N.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20031015001332.GB26799@swordfish>

From: Matt Gushee <matt@gushee.net>

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


  reply	other threads:[~2003-10-15  0:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15  0:13 Matt Gushee
2003-10-15  0:40 ` Jacques Garrigue [this message]
2003-10-15  1:24   ` Matt Gushee
2003-10-15  1:39     ` Jacques Garrigue
2003-10-15  2:24       ` Matt Gushee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031015094048N.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@pauillac.inria.fr \
    --cc=matt@gushee.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox