caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] state of native dynlink on os x
@ 2012-02-15 11:17 Alan Schmitt
  2012-02-15 12:34 ` Daniel Bünzli
  2012-02-17  6:47 ` Alan Schmitt
  0 siblings, 2 replies; 21+ messages in thread
From: Alan Schmitt @ 2012-02-15 11:17 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-03-08 16:32 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 11:17 [Caml-list] state of native dynlink on os x Alan Schmitt
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).