From: Conglun Yao <yaoconglun@gmail.com>
To: David Allsopp <dra-news@metastack.com>,
Richard Jones <rich@annexia.org>,
caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?
Date: Sun, 4 Oct 2009 22:40:23 +0100 [thread overview]
Message-ID: <f7b50d2a0910041440i15ba2915s3f0a6fc311c47036@mail.gmail.com> (raw)
In-Reply-To: <007f01ca4537$a65fbb50$f31f31f0$@metastack.com>
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
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 <dra-news@metastack.com>wrote:
> > Ah but wait, your META file has that patch incorporated already!
> >
> > I don't know -- the cygwin distribution of OCaml is broken somehow.
>
> What happens if you run ocaml and then enter #load "dynlink.cma";; ??
>
>
> David
>
>
[-- Attachment #2: Type: text/html, Size: 1945 bytes --]
next prev parent reply other threads:[~2009-10-04 21:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-04 14:22 Conglun Yao
2009-10-04 14:24 ` Conglun Yao
2009-10-04 19:05 ` [Caml-list] " Richard Jones
2009-10-04 19:32 ` Conglun Yao
2009-10-04 19:37 ` Richard Jones
2009-10-04 19:53 ` Conglun Yao
2009-10-04 20:06 ` Conglun Yao
2009-10-04 20:33 ` Richard Jones
2009-10-04 20:35 ` Richard Jones
2009-10-04 21:14 ` David Allsopp
2009-10-04 21:40 ` Conglun Yao [this message]
2009-10-05 7:39 ` David Allsopp
2009-10-05 10:14 ` Conglun Yao
2009-10-05 13:35 ` Gerd Stolpmann
2009-10-05 15:17 ` Conglun Yao
2009-10-05 17:28 ` David Allsopp
2009-10-05 17:55 ` Alain Frisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7b50d2a0910041440i15ba2915s3f0a6fc311c47036@mail.gmail.com \
--to=yaoconglun@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=dra-news@metastack.com \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox