Bug#503616: closed by Stefano Zacchiroli <zack@debian.org> (Bug#503616: fixed in ocamlnet 2.2.9-3+lenny1)
Stefano Zacchiroli wrote:
On Thu, Oct 30, 2008 at 07:57:29AM -0700, Dave Benjamin wrote:
Thanks for looking into this issue. I will try the module again as soon
as I can find the updated packages in unstable. Were you able to get it
to load successfully?
Yes, sure, I was able to.
The package is already available also in unstable: ocamlnet/2.2.9-4.
It wasn't available for i386 at the time - it is now, and I have
upgraded all of my ocamlnet packages to 2.2.9-4. Before doing this, I
purged the old netcgi_apache configuration files and removed the
ld.so.conf.d file I added previously. In addition, I reinstalled the
latest version of every package with "caml" in the name anywhere, just
in case there was some other dependency issue. After re-enabling
netcgi_apache, I still can't get Apache to start:
$ sudo /etc/init.d/apache2 start
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!
The problem was double (as discussed in the bug log): inability to
find the .so and inability to find the .cma. The first part has been
addressed adding an -rpath, the second part by fixing the wrong path
in the *.load Apache snippet.
This seems to be fixed now with the upgrade.
The second part fixes also the "sqrt" problem, given that .cma files
contain (once found) all the references needed to load additional
libraries.
It seems like the "sqrt" problem occurs before it even has a chance to
load .cma files. It can't even link the OCaml runtime, which is
prerequisite to processing .cma files, isn't it?
Thanks for your help,
Dave
Reply to: