bugmod_caml - Bugs: bug #10222, libtermcap incompatibilities


bug #10222: libtermcap incompatibilities

Submitter:  None
Submitted:  Tue 31 Aug 2004 02:00:36 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

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 -> libtermcap.so.2.0.8

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



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.


Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-31 ogunden Carbon-Copy- Added ogunden --AT-- phauna --DOT-- org

Back to the top

Powered by Savane 3.13-c373.
Corresponding source code