<?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/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?"
  prev="2009/10/b17f6698a1065583152c8df77e08869f"
  next="2009/10/07206cca673749abcd552bfb09a50053"
  prev-in-thread="2009/10/b17f6698a1065583152c8df77e08869f"
  next-in-thread="2009/10/07206cca673749abcd552bfb09a50053"
  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>
Thanks for all of your help.

Unfortunately, it still does not work. It is really nightmare to use camp4
in a windows machine.  I try to reinstall plain OCaml without using GODI, if
the same error happens, I have to go back to Ubuntu.

Thanks.

Conglun

On Mon, Oct 5, 2009 at 2:35 PM, Gerd Stolpmann &lt;gerd@gerd-stolpmann.de&gt;wrote:

&gt;
&gt;
&gt;
&gt; While cygwin cannot load shared libraries from bytecode, it still can
&gt; load pure bytecode dynamically. It is reasonable that there is a
&gt; dynlink.cma for this case, and that camlp4lib.cma depends on it.
&gt;
&gt; findlib has a special mode for platforms that cannot load shared
&gt; libraries dynamically. This mode seems to be broken  - it calls a script
&gt; safe_camlp4 instead of camlp4, and safe_camlp4 produces ad hoc a new
&gt; camlp4-type executable that includes the required C libraries - without
&gt; that trick you couldn't use json-static at all on these platforms:
&gt;
&gt; https://godirepo.camlcity.org/svn/lib-findlib/trunk/tools/safe_camlp4
&gt;
&gt; The question is now whether the error is in this script (does it have to
&gt; add dynlink.cma anyway?) or whether mkcamlp4 is broken.
&gt;
&gt; Can you try to change safe_camlp4 so the line
&gt;
&gt; mkcamlp4 -o $tmp_camlp4 $cp4_mods || exit
&gt;
&gt; reads
&gt;
&gt; mkcamlp4 -o $tmp_camlp4 dynlink.cma $cp4_mods || exit
&gt;
&gt; ? (I don't have a cygwin ocaml at hand.) safe_camlp4 should be in the
&gt; bin/ directory.
&gt;
&gt; Gerd
&gt; --
&gt; ------------------------------------------------------------
&gt; Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany
&gt; gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
&gt; Phone: +49-6151-153855                  Fax: +49-6151-997714
&gt; ------------------------------------------------------------
&gt;
&gt;

</contents>

</message>

