Richard W.M. Jones
2017-Nov-14 16:38 UTC
[Libguestfs] [PATCH] daemon: Link daemon to -lasmrun_pic.
Not totally sure about this. Perhaps we should make ./configure look for the right asmrun library? Or make it user-configurable? Rich.
Richard W.M. Jones
2017-Nov-14 16:38 UTC
[Libguestfs] [PATCH] daemon: Link daemon to -lasmrun_pic.
This is the OCaml runtime linked with -fPIC. Without this you will see hundreds of link time errors like this: /usr/bin/ld: /usr/lib64/ocaml/libasmrun.a(startup_aux.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib64/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32S against symbol `caml_data_segments' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib64/ocaml/libasmrun.a(fail.o): relocation R_X86_64_32 against symbol `caml_exn_Failure' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib64/ocaml/libasmrun.a(roots.o): relocation R_X86_64_32 against symbol `caml_frametable' can not be used when making a shared object; recompile with -fPIC --- daemon/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index af3184d3e..9d9e633c7 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -331,7 +331,7 @@ OBJECTS = $(BOBJECTS) CAMLRUN = camlrun else OBJECTS = $(XOBJECTS) -CAMLRUN = asmrun +CAMLRUN = asmrun_pic endif OCAML_LIBS = \ -lmlpcre \ -- 2.13.1
Maybe Matching Threads
- [PATCH v2] daemon: Use a configure-time test to find the best OCaml
- [PATCH v2] daemon: Use a configure-time test to find the best OCaml runtime.
- [PATCH v2 00/23] Reimplement many daemon APIs in OCaml.
- Re: [PATCH v2 00/23] Reimplement many daemon APIs in OCaml.
- [PATCH 02/27] daemon: Allow parts of the daemon and APIs to be written in OCaml.