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 RAA05568; Fri, 17 Jan 2003 17:00:19 +0100 (MET) 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 RAA05826 for ; Fri, 17 Jan 2003 17:00:18 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0HG0Hr11484 for ; Fri, 17 Jan 2003 17:00:18 +0100 (MET) Received: from kiefer.ai.univie.ac.at (markus@kiefer.ai.univie.ac.at [131.130.174.157]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) with ESMTP id h0HG0C6K007471; Fri, 17 Jan 2003 17:00:12 +0100 Received: (from markus@localhost) by kiefer.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) id h0HG0Bcl017076; Fri, 17 Jan 2003 17:00:11 +0100 Date: Fri, 17 Jan 2003 17:00:11 +0100 From: Markus Mottl To: "Yaron M. Minsky" Cc: Caml List Subject: Re: [Caml-list] lacaml and redhat 8.0 Message-ID: <20030117160011.GA16472@kiefer.ai.univie.ac.at> Mail-Followup-To: "Yaron M. Minsky" , Caml List References: <54152.141.155.88.179.1042814543.squirrel@minsky-primus.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54152.141.155.88.179.1042814543.squirrel@minsky-primus.homeip.net> User-Agent: Mutt/1.4i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 17 Jan 2003, Yaron M. Minsky wrote: > Has anyone had any luck installing lacaml on RH 8.0? I've been trying to > install using the stock LAPACK, BLAS and F2C, and have been running into > trouble. First of all, RH 8.0 doesn't include libf2c.a --- it only > include libg2c, and then only the .so version, not the .a version. I > tried linking against the libg2c.a supplied in the g77-compat library, and > it seemed to work. But then when I tried actually using lacaml, I hit > this: [snip] > # #require "lacaml";; > Loading /usr/lib/ocaml/bigarray.cma > Loading /usr/lib/ocaml/site-lib/lacaml/lacaml.cma > The external function `lacaml_Sssqr_diff_wrapper_bc' is not available That's easily explained: Lacaml requires static linking of the C-libraries, because it has to fiddle around with objects contained in them, which isn't possible with shared libraries. Thus, you will have to build a custom toplevel that is (implicitly) linked against the modified static libraries: ocamlfind ocamlmktop -o mytop -package lacaml bigarray.cma lacaml.cma Executing this custom toplevel (it's _huge_!) and typing in your code should work without problems... Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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