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 QAA13181; Fri, 23 Apr 2004 16:33:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA13178 for ; Fri, 23 Apr 2004 16:33:44 +0200 (MET DST) Received: from braint.aber.ac.uk (braint.aber.ac.uk [144.124.16.42]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3NEXhYM018932 for ; Fri, 23 Apr 2004 16:33:43 +0200 Received: from localhost.localdomain ([127.0.0.1] helo=braint.aber.ac.uk) by braint.aber.ac.uk with esmtp (Exim 4.20) id 1BH1kM-0004WA-5u for caml-list@inria.fr; Fri, 23 Apr 2004 15:33:42 +0100 Received: from pcsbf.dcs.aber.ac.uk ([193.60.10.80] helo=aber.ac.uk) by braint.aber.ac.uk with esmtp (Exim 4.20) id 1BH1jk-0004Ro-40 for caml-list@inria.fr; Fri, 23 Apr 2004 15:33:04 +0100 Message-ID: <40893769.2080903@aber.ac.uk> Date: Fri, 23 Apr 2004 15:34:01 +0000 From: Sebastien Ferre Organization: UWA, Computer Science User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Dbm: linking problem Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Sophos-Scanned: from sbf@aber.ac.uk virus scanned OK X-UWA-Mid: 1BH1jk-0004Ro-40 X-UWA-Originating-IP: 193.60.10.80 X-UWA-Bounce-Filter: IYd66fMRX6w X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; aber:99 ocamlrun:01 ocamlrun:01 linked:01 linked:01 ocaml:01 linking:02 bytes:02 arbitrary:02 library:03 library:03 sebastien:03 data:03 data:03 experiments:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I try to build a cross-platform program that uses the Dbm library. More specifically, I want to use a version of DBM that allows for arbitrary size data (like GDBM, unlike DBM). On my RedHat station, it works fine as 'libndbm.a' is linked to 'libdb2.a'. (One database file is created with extension 'db'.) But on a Solaris station, I got the Dbm_error("dbm_store failed"), and from my experiments it seems that this occurs when the data is over 1024 bytes. I don't know which library is actually used. (2 database files are created with extension 'dir' and 'pag'.) However, I found the library 'libgdbm.a' but I don't know how to force ocamlrun to link this library instead of the default one. My questions are: 1. How do I know which libraries are to be linked at execution time (by ocamlrun) ? 2. Can I specify a different library to be used, and how ? (possibly without recompiling the OCaml library Dbm) Thanks for your help! Sébastien ------------------- 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