<?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/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?"
  prev="2009/10/8939feb09e8be2d999ffabde22d472c3"
  next="2009/10/45ad60cbdf9abd552694dc86edc7c0e4"
  prev-in-thread="2009/10/8939feb09e8be2d999ffabde22d472c3"
  next-in-thread="2009/10/45ad60cbdf9abd552694dc86edc7c0e4"
  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.


I tried, and it works fine until the require of "json-static". It breaks
when loading "pcre.cma".

Now we can say that pcre package has some problem, but dynlink is loaded
successfully.

Test1

$ ocaml
        Objective Caml version 3.11.1

# #load "dynlink.cma";;
# let x = Dynlink.is_native;;
val x : bool = false

Test 2

$ocaml

#use "topfind";;
 #load "dynlink.cma";;
 #require "json-static";;
/home/conglun/godi/lib/ocaml/std-lib/dynlink.cma: loaded
/home/conglun/godi/lib/ocaml/std-lib/camlp4: added to search path
/home/conglun/godi/lib/ocaml/pkg-lib/pcre: added to search path
/home/conglun/godi/lib/ocaml/pkg-lib/pcre/pcre.cma: loaded
  47721 [main] ocaml 2136 _cygtls::handle_exceptions: Error while dumping
state (probably corrupted stack)
Segmentation fault (core dumped)

Test 3

ocamlfind ocamlmktop -package dynlink -o dtop -custom -linkall

$./dtop

#use "topfind";;
#require "dynlink";;
/home/conglun/godi/lib/ocaml/std-lib/dynlink.cma: loaded
# let x = Dynlink.is_native;;
val x : bool = false


On Sun, Oct 4, 2009 at 10:14 PM, David Allsopp &lt;dra-news@metastack.com&gt;wrote:

&gt; &gt; Ah but wait, your META file has that patch incorporated already!
&gt; &gt;
&gt; &gt; I don't know -- the cygwin distribution of OCaml is broken somehow.
&gt;
&gt; What happens if you run ocaml and then enter #load "dynlink.cma";;     ??
&gt;
&gt;
&gt; David
&gt;
&gt;

</contents>

</message>

