modcaml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Modcaml] ld error when compiling


From: Robert Fischer
Subject: [Modcaml] ld error when compiling
Date: Wed, 23 Apr 2008 11:40:37 -0500

I'm trying an install on a bare bones Ubuntu VPS. It's an install against Apache 1.3, and this is what I'm getting when I type in "make".

ocamlc -linkall -custom -g -w s -I /usr/local/godi/lib/ocaml/pkg-lib/ pcre dynlink.cma str.cma pcre.cma unix.cma mod_caml_c.o apache_c.o wrappers.o apache.cmo mod_caml_config.cmo mod_caml.cmo cgi_escape.cmo template.cmo cgi.cmo -o mod_caml.so \ -cclib "-I/usr/local/apache/include -I/usr/local/godi/lib/ocaml/std- lib -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX - DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -shared -lcamlrun -ltermcap -lunix -lstr" /usr/bin/ld: /usr/local/godi/lib/ocaml/std-lib/libcamlrun.a(misc.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/godi/lib/ocaml/std-lib/libcamlrun.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Error while building custom runtime system
make: *** [mod_caml.so] Error 2

I haven't found any place where adding "-fPIC" seems to solve the problem.

Am I missing something?

~~ Robert.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]