Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-29 Thread Richard Jones
On Tue, Oct 28, 2008 at 11:21:03PM +0100, Stefano Zacchiroli wrote:
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.

We'll probably do an rpath for this in Fedora, since it seems to be
the simplest and least intrusive solution.

Rich.

-- 
Richard Jones
Red Hat



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-29 Thread Stefano Zacchiroli
On Wed, Oct 29, 2008 at 01:06:06PM +, Richard Jones wrote:
 We'll probably do an rpath for this in Fedora, since it seems to be
 the simplest and least intrusive solution.

I've did the same in fact, the patch is at:

http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlnet.git;a=blob;f=debian/patches/rpath-apache.dpatch;h=ebe6a0a3c745c20905f9bea4710e49fe587c2f6f;hb=fb8004e8cb22e2b5c134cd2a2c541564314276fd.

Cheers.

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


signature.asc
Description: Digital signature


Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-28 Thread Stefano Zacchiroli
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


signature.asc
Description: Digital signature


Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-28 Thread Stéphane Glondu
Stefano Zacchiroli wrote:
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.

I agree, given that:
 * we do not support multiples version of OCaml at the same time;
 * whenever there is a new version of OCaml release, ocamlnet must be
   recompiled anyway (as any other library);
 * we have our own way to deal with ABI compatibility;
 * we probably don't want to upload a new OCaml for Lenny right now.

-- 
Stéphane




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Processed: Re: Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-28 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 tags 503616 + pending
Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load
There were no tags set.
Tags added: pending

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-28 Thread Stefano Zacchiroli
tags 503616 + pending
thanks

On Tue, Oct 28, 2008 at 11:43:52PM +0100, Stéphane Glondu wrote:
 I got a bit rusty on the rpath issue [1,2], but I do think that in
 this case it would be acceptable.
 I agree, given that:

OK, thanks for the feedback.

FWIW, I do have the fix now, but it still need some more
polishing. Tomorrow I finalize it, and ask on -release what is for
them the preferred way to receive the fix for Lenny (either upload via
testing-proposed-updates or upload via unstable + unblock request).

Cheers.

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


signature.asc
Description: Digital signature


Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-27 Thread Stéphane Glondu
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:
 [...]
 I tried to resolve the problem by:
 
 1. Saving /usr/lib/ocaml/3.10.2 to /etc/ld.so.conf.d/ocaml.conf
 2. Running ldconfig
 3. Running /etc/init.d/apache2 start
 
 I now get this error: [...]

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

makes it work.


Cheers,

-- 
Stéphane



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load

2008-10-26 Thread Dave Benjamin
Package: libapache2-mod-ocamlnet
Version: 2.2.9-3
Severity: grave
Justification: renders package unusable

I installed libapache2-mod-ocamlnet and enabled the module using a2enmod
netcgi_apache. Apache 2 no longer starts, printing this message instead:

Starting web server: apache2apache2: Syntax error on line 187 of
/etc/apache2/apache2.conf: Syntax error on line 1 of
/etc/apache2/mods-enabled/netcgi_apache.load: Cannot load
/usr/lib/apache2/modules/mod_netcgi_apache.so into server:
libcamlrun_shared.so: cannot open shared object file: No such file or
directory
 failed!

I tried to resolve the problem by:

1. Saving /usr/lib/ocaml/3.10.2 to /etc/ld.so.conf.d/ocaml.conf
2. Running ldconfig
3. Running /etc/init.d/apache2 start

I now get this error:

Starting web server: apache2apache2: Syntax error on line 187 of
/etc/apache2/apache2.conf: Syntax error on line 1 of
/etc/apache2/mods-enabled/netcgi_apache.load: Cannot load
/usr/lib/apache2/modules/mod_netcgi_apache.so into server:
/usr/lib/ocaml/3.10.2/libcamlrun_shared.so: undefined symbol: sqrt
 failed!

I'm not sure how to proceed from here.

Thanks,
Dave Benjamin

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libapache2-mod-ocamlnet depends on:
ii  apache2.2-common  2.2.8-1Next generation, scalable, extenda
ii  libc6 2.7-8  GNU C Library: Shared libraries
ii  libncurses5   5.6+20080203-1 Shared libraries for terminal hand
ii  libocamlnet-ocaml-dev 2.2.9-3OCaml application-level Internet l

libapache2-mod-ocamlnet recommends no packages.

libapache2-mod-ocamlnet suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]