From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id DAA02152; Wed, 15 Oct 2003 03:24:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA15715 for ; Wed, 15 Oct 2003 03:24:41 +0200 (MET DST) Received: from mz2.forethought.net (mzpi4.forethought.net [216.241.36.13]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9F1Oe104681 for ; Wed, 15 Oct 2003 03:24:40 +0200 (MET DST) Received: from [216.241.35.41] (helo=swordfish) by mz2.forethought.net with esmtp (Exim 4.14) id 1A9aP0-000514-9g for caml-list@pauillac.inria.fr; Tue, 14 Oct 2003 19:24:38 -0600 Received: from matt by swordfish with local (Exim 3.35 #1 (Debian)) id 1A9aP8-0007Lb-00 for ; Tue, 14 Oct 2003 19:24:46 -0600 Date: Tue, 14 Oct 2003 19:24:46 -0600 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] DBM in OCaml 3.07 Message-ID: <20031015012445.GD26799@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr References: <20031015001332.GB26799@swordfish> <20031015094048N.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031015094048N.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.3.27i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gushee:01 gushee:01 caml-list:01 3.07:01 0900,:01 jacques:01 3.07:01 'configure':01 ndbm:01 3.06:01 3.06:01 3.06,:01 ndbm:01 usr:01 usr:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Oct 15, 2003 at 09:40:48AM +0900, Jacques Garrigue wrote: > From: Matt Gushee > > > 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 > 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? 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. > 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 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