<?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="2009/01/95edc08cfde6a09340c5e2f438aca25e"
  from="Erick Matsen &lt;matsen@b...&gt;"
  author="Erick Matsen"
  date="2009-01-28T06:49:03"
  subject="problem with LACAML and static linking"
  prev="2009/01/1753e428b7e5e27bce761f4376dcfc36"
  next="2009/01/629bad2163d83f85195ba2ca7450d001"
  next-in-thread="2009/01/629bad2163d83f85195ba2ca7450d001"
  prev-thread="2009/01/b8fa82634e54fd25d86aeafd55576128"
  next-thread="2009/01/ec5abc48403b5e7647c7a58e6fcf15a5"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="problem with LACAML and static linking">
<msg 
  url="2009/01/95edc08cfde6a09340c5e2f438aca25e"
  from="Erick Matsen &lt;matsen@b...&gt;"
  author="Erick Matsen"
  date="2009-01-28T06:49:03"
  subject="problem with LACAML and static linking">
<msg 
  url="2009/01/629bad2163d83f85195ba2ca7450d001"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-01-28T07:20:12"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/89d408b4f65d61f9f259798dd86cc8d5"
  from="Erick Matsen &lt;matsen@b...&gt;"
  author="Erick Matsen"
  date="2009-01-28T17:17:58"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/21c5dae0340317f4d8d323daab9ab10d"
  from="Mauricio Fernandez &lt;mfp@a...&gt;"
  author="Mauricio Fernandez"
  date="2009-01-28T17:33:08"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/731676cde43a1a70d1d54d29d64a611b"
  from="Erick Matsen &lt;matsen@b...&gt;"
  author="Erick Matsen"
  date="2009-01-28T17:56:45"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/ef7464a63d1602015e62b2b986211645"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-01-28T18:48:24"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/23eff6dc2f708df8e37f8b10ecd02bea"
  from="Erick Matsen &lt;matsen@b...&gt;"
  author="Erick Matsen"
  date="2009-01-28T18:50:30"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/f30610f04f7b4db807127d0a6d946705"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-01-28T19:04:51"
  subject="Re: [Caml-list] problem with LACAML and static linking">
<msg 
  url="2009/01/5e0126ed6559a49ca434e3c15b0b63c1"
  from="Markus Mottl &lt;markus.mottl@g...&gt;"
  author="Markus Mottl"
  date="2009-01-28T19:24:45"
  subject="Re: [Caml-list] problem with LACAML and static linking">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Hello everyone---


I apologize for posting what is certainly a naive question, but I have
not been able to find an answer on the web.

I am having trouble with static compilation and LACAML. I have used
ocamlopt with -ccopt -static a number of times sucessfully (with PCRE
and I think GSL), but when I added modules using LACAML I get a series
of errors like

/usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_':
(.text+0x3ad): undefined reference to `_gfortran_concat_string'
/usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_':
(.text+0x94f): undefined reference to `_gfortran_concat_string'
...

It appears that I need somehow to make sure that lapack can find
gfortgran, but libgfortran is sitting happily in /usr/lib.

I'm running ocaml 3.10.2, lacaml 3.0.19, and lapack 3.

Any help would be much appreciated.


Thanks,

Erick

</contents>

</message>

