From: Alex Rubinsteyn <alex.rubinsteyn@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: [Caml-list] Problem with 64-bit shared libraries?
Date: Wed, 30 Nov 2011 16:37:55 -0500 [thread overview]
Message-ID: <CAMB58pELe0i_kJZwyQsaiwh_-5KPfewdphvBacJiP0vGnYNFfQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
Hi,
I'd like to package up some OCaml code (along with C bindings) as a shared
library. However, I'm encountering the following linker error:
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
/usr/lib/ocaml/libasmrun.a: could not read symbols: Bad value
Do I have to recompile OCaml with -fPIC to put the runtime inside a shared
library?
[-- Attachment #2: Type: text/html, Size: 833 bytes --]
next reply other threads:[~2011-11-30 21:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 21:37 Alex Rubinsteyn [this message]
2011-12-01 1:00 ` Jeff Meister
2011-12-01 18:59 ` Alex Rubinsteyn
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=CAMB58pELe0i_kJZwyQsaiwh_-5KPfewdphvBacJiP0vGnYNFfQ@mail.gmail.com \
--to=alex.rubinsteyn@gmail.com \
--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