caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] static linking
@ 2014-06-06 15:43 Andreea Costea
  2014-06-06 16:14 ` Török Edwin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andreea Costea @ 2014-06-06 15:43 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

Hi,

I'm trying to build a rather big system written in Ocaml, using ocamlbuild.
I managed to set all the needed flags nicely, so that the resulted binaries
can run on any Unix machine, independent on their Ocaml distribution.
However, on certain machines I have problems with the compatibility between
the C libraries. Hence, I tried using "-ccopt -static"  for the -lflags and
-cflags, respectively, in order to produce the desired statically linked
binaries while building the project. Unfortunately, this attempt leads to
the following error:

"/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `cos' with pointer equality in
`/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libm.a(s_sin.o)'
can not be used when making an executable; recompile with -fPIE and relink
with -pie"

Does this mean I need to recompile the gcc libraries using -pie? Or does it
mean I am using the wrong method to build the standalone executable? Any
recommendation to modify the building process (i would prefer to use
ocambuild)?

Your answer is much appreciated,
Andreea

[-- Attachment #2: Type: text/html, Size: 1303 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Static linking
@ 2005-11-09 17:14 Maurizio Colucci
  2005-11-09 17:28 ` [Caml-list] " Basile STARYNKEVITCH
  0 siblings, 1 reply; 6+ messages in thread
From: Maurizio Colucci @ 2005-11-09 17:14 UTC (permalink / raw)
  To: caml-list

Hello.

I gave an executable, compiled with ocamlopt, to a friend of mine, and
his system complained about a missing library (libgtkgl-2.0.so.1).
This library is not available for his linux distribution. How can I
compile the program by embedding the library in the executable? I was
expecting to find an option in the manual, but I didn't. Thanks for
any info.

Maurizio


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

end of thread, other threads:[~2014-06-07  9:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 15:43 [Caml-list] static linking Andreea Costea
2014-06-06 16:14 ` Török Edwin
2014-06-06 17:33 ` Mark Shinwell
2014-06-06 20:24 ` Gerd Stolpmann
2014-06-07  9:55   ` Andreea Costea
  -- strict thread matches above, loose matches on Subject: below --
2005-11-09 17:14 Static linking Maurizio Colucci
2005-11-09 17:28 ` [Caml-list] " Basile STARYNKEVITCH

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).