<?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/01/14918cad86f4e26f76e40ff09c04ab19"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-01-17T16:00:19"
  subject="Re: [Caml-list] lacaml and redhat 8.0"
  prev="2003/01/f1a04e78552497105c80ef36247bf1d1"
  next="2003/01/5826a692c94d64d6a3a75f199aeb2599"
  prev-in-thread="2003/01/f1a04e78552497105c80ef36247bf1d1"
  prev-thread="2003/01/f6c97f5cf0184a5e307bea200d59c628"
  next-thread="2003/01/d22695654983f308cfe3accefb4feb63"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] lacaml and redhat 8.0">
<msg 
  url="2003/01/f1a04e78552497105c80ef36247bf1d1"
  from="Yaron M. Minsky &lt;yminsky@C...&gt;"
  author="Yaron M. Minsky"
  date="2003-01-17T14:42:27"
  subject="[Caml-list] lacaml and redhat 8.0">
<msg 
  url="2003/01/14918cad86f4e26f76e40ff09c04ab19"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-01-17T16:00:19"
  subject="Re: [Caml-list] lacaml and redhat 8.0">
</msg>
</msg>
</thread>

<contents>
On Fri, 17 Jan 2003, Yaron M. Minsky wrote:
&gt; Has anyone had any luck installing lacaml on RH 8.0?   I've been trying to
&gt; install using the stock LAPACK, BLAS and F2C, and have been running into
&gt; trouble.  First of all, RH 8.0 doesn't include libf2c.a --- it only
&gt; include libg2c, and then only the .so version, not the .a version.  I
&gt; tried linking against the libg2c.a supplied in the g77-compat library, and
&gt; it seemed to work.  But then when I tried actually using lacaml, I hit
&gt; this:
[snip]
&gt; # #require "lacaml";;
&gt; Loading /usr/lib/ocaml/bigarray.cma
&gt; Loading /usr/lib/ocaml/site-lib/lacaml/lacaml.cma
&gt; 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

</contents>

</message>

