On Mon, Oct 27, 2008 at 01:44:01PM +0100, Stéphane Glondu wrote:
> Dave Benjamin a écrit :
> > I installed libapache2-mod-ocamlnet and enabled the module using "a2enmod
> > netcgi_apache". Apache 2 no longer starts, printing this message instead:
> 
> Replacing the last line of /etc/apache2/mods-enabled/netcgi_apache.load
> (the one mentioning netcgi_apache.cma) to:
> 
>   NetcgiLoad netcgi_apache/netcgi_apache.cma

First of all thanks for the bugreport, the risk of overlooking this
serious issue for Lenny was quite high :)

Then, we have two issues here:

1) The wrong path in netcgi_apache.load, pointed out (together with a
   fix) by Stéphane. That's easily fixable, I can upload a fixed
   version of ocamlnet RSN.

2) The fact that camlrun_shared.so is not in a path known by
   ld.so. Which is a hell of a more tricky issue. On one hand one
   might argue that that library should belong to /usr/lib/ (or to
   some other dir known by ld.so).

   I frankly don't think so, because it is a high unstable library,
   introduced only recently upstream, ... and I don't want (yet) to
   take over the burden of version it with SONAMEs/VERSIONs/...
   *If* we decide it should belong /usr/lib/, then the most
   straightforwards solutions are:

   a) symlink /usr/lib/libcamlrun_shared.so -> `ocamlc -where`/...

   b) entry for `ocamlc -where` in /etc/ld.so.conf.d/

   Both will require an upload of OCaml, which will make two uploads
   in total because ocamlnet needs to be fixed anyhow.

   Alternatively, we can try adding an RPATH to
   /usr/lib/apache2/modules/mod_netcgi_apache.so pointing to `ocamlc
   -where`.

   I got a bit rusty on the rpath issue [1,2], but I do think that in
   this case it would be acceptable.

Comments?

Cheers.

[1] http://wiki.debian.org/RpathIssue
[2] http://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html

-- 
Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7
[EMAIL PROTECTED],pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è sempre /oo\ All one has to do is hit the right
uno zaino        -- A.Bergonzoni \__/ keys at the right time -- J.S.Bach

Attachment: signature.asc
Description: Digital signature

Reply via email to