[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#503616: missing symbol sqrt



Dave Benjamin wrote:
> [...] 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!

FWIW, I cannot reproduce the problem now. I get no errors with a sid and
a lenny chroot (with ocamlnet 2.2.9-4). I am on a i386 architecture. I
have tried with the 3 flavours of apache2.

Maybe your system is not up-to-date w.r.t other (non-OCaml-related)
packages? Or there is some bad interaction with another Apache module?
Could you send the output of the following commands?

  dpkg -l|egrep 'apache|ocaml'
  ldd /usr/sbin/apache2

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

It is. On my system, the apache2 binary depends on libm, which provides
sqrt (admittedly, this is not the right way to do).

-- 
Stéphane




Reply to: