Tue 31 Aug 2004 02:00:36 AM UTC, original submission:
I'm having trouble getting mod_caml to load because of a libtermcap link error. I'm running a gentoo linux system, and perhaps mod_caml has not been tested on this before?
First, when I am linking mod_caml, I get the following error:
ocamlc -linkall -custom -g -w s -I /home/godi/root/lib/ocaml/pkg-lib/pcre -I /usr/include/apache2 dynlink.cma str.cma pcre.cma unix.cma mod_caml_c.o mod_caml.cmo apache_c.o wrappers.o apache.cmo mod_caml_config.cmo cgi_escape.cmo template.cmo cgi.cmo -o mod_caml.so \
-cclib "-fPIC -shared -lcamlrun -ltermcap -lunix -lstr "
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
So I installed the gentoo package "libtermcap-compat", which is described as a "Compatibility package for old termcap-based programs," and which installs the following files:
/lib/libtermcap.so.2.0.8
/lib/libtermcap.so -> libtermcap.so.2.0.8
/etc/termcap
/usr/lib/libtermcap.a
/usr/lib/libtermcap.so
After installing this package, mod_caml links and installs OK. However, when I try to load the module into apache, I get:
Apache2 has detected a syntax error in your configuration files:
Syntax error on line 2 of /usr/lib/apache2/conf/modules.d/90_mod_caml.conf:
Cannot load /usr/lib/apache2-extramodules/mod_caml.so into server: libtermcap.so.2: cannot open shared object file: No such file or directory
So once again mod_caml can't find libtermcap--and at this stage I'm not sure how to point it to the right place.
Maybe you can help :).
(Also, I know nothing about this, but.. if the gentoo package description speaks truth, why is mod_caml using something that's considered the "old" way to do things?)
|