From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Alain Frisch <alain@frisch.fr>
Cc: caml-list List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Re: Dynlinking plugins defining the same unit name but with different implementations.
Date: Fri, 2 Jul 2010 19:48:11 +0200 [thread overview]
Message-ID: <AANLkTiknR2bwbhUnTRS7ywYqwvyhEdgwAuY0dDQTmF43@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinSSmVyFZ-GMi5lBliPjcccpejEI7tU_qwsYDvV@mail.gmail.com>
Now on Linux 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC
2010 i686 GNU/Linux
with exactly the same code that know works on osx and ocaml 3.12 from
svn. I get the following problem when running my test program.
error loading shared library:
/home/dbuenzli/sync/dynlinkt/_build/a/a.cmxs: undefined symbol:
camlPervasives__$5e_1112
error loading shared library:
/home/dbuenzli/sync/dynlinkt/_build/b/b.cmxs: undefined symbol:
camlPervasives__$5e_1112
I tried to add /usr/local/lib/ocaml to LD_LIBRARY_PATH but without
success. Any hint ? Is that a bug or am I missing something ?
Thanks for your help,
Daniel
P.S. Here's how these things are compiled by ocamlbuild
ocamlbuild -classic-display a.cmxs b.cmxs test.native
/usr/local/bin/ocamldep.opt -modules a/a.ml > a/a.ml.depends
/usr/local/bin/ocamldep.opt -modules a/m.ml > a/m.ml.depends
/usr/local/bin/ocamldep.opt -modules plugin.ml > plugin.ml.depends
/usr/local/bin/ocamlc.opt -c -I a -I c -I b -o a/m.cmo a/m.ml
/usr/local/bin/ocamlc.opt -c -I c -I a -I b -o plugin.cmo plugin.ml
/usr/local/bin/ocamlc.opt -c -I a -I c -I b -o a/a.cmo a/a.ml
/usr/local/bin/ocamlopt.opt -c -I a -I c -I b -o a/m.cmx a/m.ml
/usr/local/bin/ocamlopt.opt -c -I c -I a -I b -o plugin.cmx plugin.ml
/usr/local/bin/ocamlopt.opt -c -I a -I c -I b -o a/a.cmx a/a.ml
/usr/local/bin/ocamlopt.opt -shared a/m.cmx a/a.cmx -o a/a.cmxs
/usr/local/bin/ocamldep.opt -modules b/b.ml > b/b.ml.depends
/usr/local/bin/ocamldep.opt -modules b/m.ml > b/m.ml.depends
/usr/local/bin/ocamlc.opt -c -I b -I c -I a -o b/m.cmo b/m.ml
/usr/local/bin/ocamlc.opt -c -I b -I c -I a -o b/b.cmo b/b.ml
/usr/local/bin/ocamlopt.opt -c -I b -I c -I a -o b/m.cmx b/m.ml
/usr/local/bin/ocamlopt.opt -c -I b -I c -I a -o b/b.cmx b/b.ml
/usr/local/bin/ocamlopt.opt -shared b/m.cmx b/b.cmx -o b/b.cmxs
/usr/local/bin/ocamldep.opt -modules test.ml > test.ml.depends
/usr/local/bin/ocamlc.opt -c -I c -I a -I b -o test.cmo test.ml
/usr/local/bin/ocamlopt.opt -c -I c -I a -I b -o test.cmx test.ml
/usr/local/bin/ocamlopt.opt dynlink.cmxa plugin.cmx test.cmx -o test.native
next prev parent reply other threads:[~2010-07-02 17:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 19:01 Daniel Bünzli
2010-07-01 19:16 ` Daniel Bünzli
2010-07-02 8:07 ` [Caml-list] " Alain Frisch
2010-07-02 8:27 ` Daniel Bünzli
2010-07-02 8:40 ` Alain Frisch
2010-07-02 8:47 ` Alain Frisch
2010-07-02 9:19 ` Daniel Bünzli
2010-07-02 17:48 ` Daniel Bünzli [this message]
2010-07-05 7:27 ` Alain Frisch
2010-07-05 11:15 ` Daniel Bünzli
2010-07-05 11:41 ` 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=AANLkTiknR2bwbhUnTRS7ywYqwvyhEdgwAuY0dDQTmF43@mail.gmail.com \
--to=daniel.buenzli@erratique.ch \
--cc=alain@frisch.fr \
--cc=caml-list@yquem.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