From: "Alan Schmitt" <alan.schmitt@polytechnique.org>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] state of native dynlink on os x
Date: Wed, 15 Feb 2012 12:17:05 +0100 [thread overview]
Message-ID: <CDBD76E7-EB50-493E-A886-4908CC93C251@polytechnique.org> (raw)
Hello,
As I'm using more and more programs that use native dynlink, I'm trying
to understand what is the state of things on os x. According to this
message http://alan.petitepomme.net/cwn/2008.10.21.html natdynlink does
not work on 10.5 and above. However, if I read correctly this patch
http://caml.inria.fr/mantis/view.php?id=4863 it is enabled for 64 bits
architectures. As the patch is in godi, I built a version of ocaml with
it, and I'm having mixed results.
For some very simple files, things seem to work fine. But if I compile
why3 with it (current git version), I get some errors when running
why3config:
== Found /usr/local/lib/why3/plugins/genequlin.cmxs ==
The plugin /usr/local/lib/why3/plugins/genequlin.cmxs dynlink failed :
Dynlink error : error loading shared library:
dlopen(/usr/local/lib/why3/plugins/genequlin.cmxs, 134): Symbol not
found: _camlRandom
Referenced from: /usr/local/lib/why3/plugins/genequlin.cmxs
Expected in: flat namespace
in /usr/local/lib/why3/plugins/genequlin.cmxs
== Found /usr/local/lib/why3/plugins/tptp.cmxs ==
The plugin /usr/local/lib/why3/plugins/tptp.cmxs dynlink failed :
Dynlink error : error loading shared library:
dlopen(/usr/local/lib/why3/plugins/tptp.cmxs, 134): Symbol not found:
_camlParsing
Referenced from: /usr/local/lib/why3/plugins/tptp.cmxs
Expected in: flat namespace
in /usr/local/lib/why3/plugins/tptp.cmxs
== Found /usr/local/lib/why3/plugins/tptpfof.cmxs ==
The plugin /usr/local/lib/why3/plugins/tptpfof.cmxs dynlink failed :
Dynlink error : error loading shared library:
dlopen(/usr/local/lib/why3/plugins/tptpfof.cmxs, 134): Symbol not found:
_camlString
Referenced from: /usr/local/lib/why3/plugins/tptpfof.cmxs
Expected in: flat namespace
in /usr/local/lib/why3/plugins/tptpfof.cmxs
Note that there was a warning when compiling why3:
ld: warning: -read_only_relocs cannot be used with x86_64
So I'm a bit confused as to the current state of things. My questions
are:
- is native dynlink on os x 64 bits architecture supported in ocaml
3.13dev?
- if so, why do I get the ld warning and why does linking fails
sometimes?
- if not, is there hope it will be supported in the future?
Thanks a lot,
Alan
next reply other threads:[~2012-02-15 11:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 11:17 Alan Schmitt [this message]
2012-02-15 12:34 ` Daniel Bünzli
2012-02-15 14:16 ` Alan Schmitt
2012-02-17 6:47 ` Alan Schmitt
2012-02-27 15:43 ` Damien Doligez
2012-02-27 17:49 ` Pierre-Alexandre Voye
2012-02-28 10:15 ` David MENTRE
2012-02-28 10:32 ` Pierre-Alexandre Voye
2012-02-28 15:34 ` Alan Schmitt
2012-02-29 8:33 ` Alan Schmitt
2012-03-07 10:55 ` Damien Doligez
2012-03-07 15:14 ` Alan Schmitt
2012-03-08 11:13 ` Alan Schmitt
2012-03-08 14:16 ` Alan Schmitt
2012-03-08 14:23 ` Pierre-Alexandre Voye
2012-03-08 14:35 ` Alan Schmitt
2012-03-08 15:50 ` Pierre-Alexandre Voye
2012-03-08 16:19 ` Jérémie Dimino
2012-03-08 16:16 ` Gabriel Scherer
2012-03-08 16:25 ` Jérémie Dimino
2012-03-08 16:31 ` Alan Schmitt
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=CDBD76E7-EB50-493E-A886-4908CC93C251@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=caml-list@inria.fr \
/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