Actually, that's getting me closer, but no cigar -- it's not seeming
to pick up my /usr/lib/libcamlrun.so, even though I've added it to /
usr/lib. Pulling out "-lcamlrun" (which then necessitates pulling
out "-ltermcap") from OCAMLLIBS doesn't do anything to help me out.
I'm assuming there's a magic chant somewhere I'm missing: anyone
have one?
dev ~/src/mod_caml-1.3.6: ls -al /usr/lib/libcamlrun.so
-rwxr-xr-x 1 root root 216903 Apr 23 17:38 /usr/lib/libcamlrun.so
dev ~/src/mod_caml-1.3.6: 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/lib -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
~~ Robert.
On Apr 23, 2008, at 12:33 PM, Robert Fischer wrote:
Thanks.
The patch on the wiki didn't quite work out directly on 3.10.1, but
the updated patch described in the ticket did with some kicking.
~~ Robert.
On Apr 23, 2008, at 11:57 AM, Richard Jones wrote:
On Wed, Apr 23, 2008 at 11:40:37AM -0500, Robert Fischer wrote:
/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
The solution is described here:
http://merjis.com/developers/mod_caml/amd64
http://caml.inria.fr/mantis/view.php?id=3866
This pain should all go away once ocaml 3.11 is released.
Rich.
--
Richard Jones
Red Hat
_______________________________________________
Modcaml mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/modcaml
_______________________________________________
Modcaml mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/modcaml
_______________________________________________
Modcaml mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/modcaml