<?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/10/1068408dbbed97f0f313fb0b03b356e6"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-04T20:33:56"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?"
  prev="2009/10/d6011f2cd32be36374ae3dd8e2847475"
  next="2009/10/3a73459545c73949bb5dabe2b09c927f"
  prev-in-thread="2009/10/d6011f2cd32be36374ae3dd8e2847475"
  next-in-thread="2009/10/3a73459545c73949bb5dabe2b09c927f"
  prev-thread="2009/10/98c73da54fa7fa1cc5fa152dcf4284e9"
  next-thread="2009/10/d364f92bdb97360d8449f027692a7ae1"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/1d7452042a610a8dbce7b15598651158"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T14:22:37"
  subject="Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/a9d8d6655d6b4fe94cebe2d9aab8536a"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T14:24:40"
  subject="Re: Dynlink and ocamlfind for camlp4 3.11?">
</msg>
<msg 
  url="2009/10/e59e8adec6f0b13ab089ab77b939cacc"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-04T19:05:10"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/479b675e4d40c2e5af62011270a377bb"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T19:32:19"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/c18ef99f06abc806a9b9be3ac334ccb2"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-04T19:37:41"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/be97a7871638519c3df979133b97c302"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T19:53:52"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/d6011f2cd32be36374ae3dd8e2847475"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T20:06:54"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
</msg>
<msg 
  url="2009/10/1068408dbbed97f0f313fb0b03b356e6"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-04T20:33:56"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/3a73459545c73949bb5dabe2b09c927f"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-04T20:35:16"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/8939feb09e8be2d999ffabde22d472c3"
  from="David Allsopp &lt;dra-news@m...&gt;"
  author="David Allsopp"
  date="2009-10-04T21:14:28"
  subject="RE: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/ce3135771c96e5c5f0a9ed6a2dc9ff76"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-04T21:40:25"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/45ad60cbdf9abd552694dc86edc7c0e4"
  from="David Allsopp &lt;dra-news@m...&gt;"
  author="David Allsopp"
  date="2009-10-05T07:39:18"
  subject="RE: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/7264c1a9ef92dcb9fff3b85d63ea89ae"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-05T10:14:14"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2009/10/b17f6698a1065583152c8df77e08869f"
  from="Gerd Stolpmann &lt;gerd@g...&gt;"
  author="Gerd Stolpmann"
  date="2009-10-05T13:31:15"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/2d882be12f0a746d25d4be923e96784b"
  from="Conglun Yao &lt;yaoconglun@g...&gt;"
  author="Conglun Yao"
  date="2009-10-05T15:17:38"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
<msg 
  url="2009/10/07206cca673749abcd552bfb09a50053"
  from="David Allsopp &lt;dra-news@m...&gt;"
  author="David Allsopp"
  date="2009-10-05T17:28:31"
  subject="RE: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
</msg>
</msg>
<msg 
  url="2009/10/97f091be5cebf8a11a847b071d10db47"
  from="Alain Frisch &lt;alain.frisch@l...&gt;"
  author="Alain Frisch"
  date="2009-10-05T17:55:42"
  subject="Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Sun, Oct 04, 2009 at 08:53:50PM +0100, Conglun Yao wrote:
&gt; $ ocamlfind ocamlc dynlink.cma -package json-static -syntax camlp4o -c
&gt; test.ml
&gt; 
&gt; $ ocamlfind ocamlc -I /home/conglun/godi/lib/ocaml/pkg-lib/camlp4
&gt; dynlink.cma -package json-static -syntax camlp4o -c t.ml
&gt; 
&gt; 
&gt; Error: Error while linking
&gt; /home/conglun/godi/lib/ocaml/std-lib/camlp4/camlp4lib.cma(Camlp4):
&gt; Reference to undefined global `Dynlink'

OK, I remember what this one is now.  camlp4 in 3.11.0 introduced an
extra dependency on Dynlink, and in the other distributions of OCaml
this meant that certain META files (distributed with findlib) had to
change.

This was the patch that we added for Fedora to fix the relevant META
file:

http://cvs.fedoraproject.org/viewvc/devel/ocaml-findlib/ocaml-findlib-1.2.3-camlp4-META.patch?revision=1.1&amp;view=markup

(Although more recent versions of findlib include the necessary
correction).

So you could try the patch above, or try a later version of findlib.

Rich.

-- 
Richard Jones
Red Hat

</contents>

</message>

