Bug#503616: missing symbol sqrt

2008-11-02 Thread Dave Benjamin

On Sun, 2 Nov 2008, Stéphane Glondu wrote:


Did you upgrade completely your system? Your system should be fully
up-to-date, at least w.r.t. testing.


After upgrading all the packages starting with "lib", my Apache 2 finally 
starts! I don't know which particular library it was - there were 529 of 
them in all. I see "libm" in the "ldd /usr/sbin/apache2" output now.


Thanks for all your help!

Cheers,
Dave

Processed: bug 504348 is forwarded to http://caml.inria.fr/mantis/view.php?id=4636

2008-11-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> # Automatically generated email from bts, devscripts version 2.10.35
> forwarded 504348 http://caml.inria.fr/mantis/view.php?id=4636
Bug#504348: libcamlrun_shared: should be linked with -lm, -ldl, etc.
Forwarded-to-address changed from 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504348 to 
http://caml.inria.fr/mantis/view.php?id=4636.

>
End of message, 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]



Processed: libcamlrun_shared: should be linked with -lm, -ldl, etc.

2008-11-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> forwarded 504348 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504348
Bug#504348: libcamlrun_shared: should be linked with -lm, -ldl, etc.
Noted your statement that Bug has been forwarded to 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504348.

> 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#504348: libcamlrun_shared: should be linked with -lm, -ldl, etc.

2008-11-02 Thread Stéphane Glondu
forwarded 504348 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504348
thanks

[NOTE: bug cloned, reopened and reassigned to ocaml]

Julien Cristau wrote:
> Why do we care?  The proper fix is easy enough, just add -lm to the
> linker command line (libcamlrun_shared.so seems to also reference
> symbols from ncurses for the terminfo stuff and from libdl, it might be
> a good idea to link it against those too, or make sure they're not
> actually needed).

Granted. I guess adding $(BYTECCLIBS) (which is "-lm  -ldl -lcurses
-lpthread" on my system) at the right place in camlrun_shared.dpatch
should be enough.

Since that patch has been merged in upstream, I also notice them.


Cheers,

-- 
Stéphane





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



Processed: reopening 504348

2008-11-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> # Automatically generated email from bts, devscripts version 2.10.35
> reopen 504348
Bug#504348: libcamlrun_shared: should be linked with -lm, -ldl, etc.
Bug reopened, originator not changed.

>
End of message, 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]



Processed: cloning 503616, reassign -1 to ocaml ...

2008-11-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> # Automatically generated email from bts, devscripts version 2.10.35
> clone 503616 -1
Bug#503616: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load
Bug 503616 cloned as bug 504348.

> reassign -1 ocaml
Bug#504348: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load
Bug reassigned from package `libapache2-mod-ocamlnet' to `ocaml'.

> retitle -1 libcamlrun_shared: should be linked with -lm, -ldl, etc.
Bug#504348: libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load
Changed Bug title to `libcamlrun_shared: should be linked with -lm, -ldl, etc.' 
from `libapache2-mod-ocamlnet: mod_netcgi_apache.so will not load'.
(By the way, that Bug is currently marked as done.)

>
End of message, 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]



Processed: tagging 256900

2008-11-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> # Automatically generated email from bts, devscripts version 2.10.35
> tags 256900 - patch
Bug#256900: ocaml: Ocaml compiled programs cannot be stripped, hence either 
don't work or violate policy
Tags were: wontfix patch upstream
Tags removed: patch

>
End of message, 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]



cloning 503616, reassign -1 to ocaml ...

2008-11-02 Thread Stephane Glondu
# Automatically generated email from bts, devscripts version 2.10.35
clone 503616 -1
reassign -1 ocaml 
retitle -1 libcamlrun_shared: should be linked with -lm, -ldl, etc.


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



Bug#503616: missing symbol sqrt

2008-11-02 Thread Dave Benjamin

On Sun, 2 Nov 2008, Stéphane Glondu wrote:


Did you upgrade completely your system? Your system should be fully
up-to-date, at least w.r.t. testing.


No, I'll do a dist-upgrade now. It'll take me a little bit of time because 
I'm low on hard drive space and probably about six months behind on the 
rest of unstable, but hey, whatever it takes. =)



I also tried apache2-mpm-worker and apache2-mpm-event - same problem. In
all cases, libm was missing in the output of ldd /usr/sbin/apache2.


Could you give the new output?


Sure (I'm back to prefork again):

$ ldd /usr/sbin/apache2
linux-gate.so.1 =>  (0xe000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb7f55000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0xb7f3b000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0xb7f16000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7efd000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7da2000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb7d62000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb7d55000)
libdb-4.6.so => /usr/lib/libdb-4.6.so (0xb7c29000)
libpq.so.5 => /usr/lib/libpq.so.5 (0xb7c0a000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7baf000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7b8f000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb7b8b000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7b82000)
libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7b5)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7b4b000)
/lib/ld-linux.so.2 (0xb7f9e000)
libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb7b37000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7b2)
libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb7a83000)
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7a3e000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 
(0xb78f3000)

libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7865000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7862000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb7839000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb782a000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7825000)
libz.so.1 => /usr/lib/libz.so.1 (0xb781)
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb77a8000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7785000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb777d000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb7779000)

Dave

Bug#503616: missing symbol sqrt

2008-11-02 Thread Julien Cristau
On Sun, Nov  2, 2008 at 23:38:26 +0100, Stéphane Glondu wrote:

> Dave Benjamin wrote:
> >> 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?
> > 
> > I upgraded all of my Apache 2 packages to the latest versions and
> > disabled every module, re-enabling them one-by-one until I could get
> > Apache to start up again. Enabling netcgi_apache breaks it as usual.
> 
> Did you upgrade completely your system? Your system should be fully
> up-to-date, at least w.r.t. testing.
> 
> > I also tried apache2-mpm-worker and apache2-mpm-event - same problem. In
> > all cases, libm was missing in the output of ldd /usr/sbin/apache2.
> 
> Could you give the new output?
> 
Why do we care?  The proper fix is easy enough, just add -lm to the
linker command line (libcamlrun_shared.so seems to also reference
symbols from ncurses for the terminfo stuff and from libdl, it might be
a good idea to link it against those too, or make sure they're not
actually needed).

Cheers,
Julien



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



Bug#503616: missing symbol sqrt

2008-11-02 Thread Dave Benjamin

On Sun, 2 Nov 2008, Stéphane Glondu wrote:


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?


I upgraded all of my Apache 2 packages to the latest versions and disabled 
every module, re-enabling them one-by-one until I could get Apache to 
start up again. Enabling netcgi_apache breaks it as usual.


$ dpkg -l \*apache\* | grep ii
ii  apache2 2.2.9-10
   Apache HTTP Server metapackage
ii  apache2-mpm-prefork 2.2.9-10
   Apache HTTP Server - traditional non-threade
ii  apache2-threaded-dev2.2.9-10
   Apache development headers - threaded MPM
ii  apache2-utils   2.2.9-10
   utility programs for webservers
ii  apache2.2-common2.2.9-10
   Apache HTTP Server common files
ii  libapache2-mod-ocamlnet 2.2.9-4 
   OCaml application-level Internet libraries -
ii  libapache2-mod-php5 5.2.6-5 
   server-side, HTML-embedded scripting languag

$ ls /etc/apache2/mods-enabled
alias.conf  auth_basic.load  authz_default.loadauthz_host.load  dir.conf  
mime.conf  netcgi_apache.conf
alias.load  authn_file.load  authz_groupfile.load  authz_user.load  dir.load  
mime.load  netcgi_apache.load

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

I also tried apache2-mpm-worker and apache2-mpm-event - same problem. In 
all cases, libm was missing in the output of ldd /usr/sbin/apache2.


Thanks,
Dave

Bug#503616: missing symbol sqrt

2008-11-02 Thread Stéphane Glondu
Dave Benjamin wrote:
>> 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?
> 
> I upgraded all of my Apache 2 packages to the latest versions and
> disabled every module, re-enabling them one-by-one until I could get
> Apache to start up again. Enabling netcgi_apache breaks it as usual.

Did you upgrade completely your system? Your system should be fully
up-to-date, at least w.r.t. testing.

> I also tried apache2-mpm-worker and apache2-mpm-event - same problem. In
> all cases, libm was missing in the output of ldd /usr/sbin/apache2.

Could you give the new output?


Cheers,

-- 
Stéphane





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



Bug#503616: missing symbol sqrt

2008-11-02 Thread Dave Benjamin

On Sun, 2 Nov 2008, Stéphane Glondu wrote:


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


That is possible - I thought maybe it was an interaction with mod_python, 
but I checked and I do not have mod_python installed at all. My enabled 
Apache modules are a pretty small set:


$ ls /etc/apache2/mods-enabled
actions.conf  authz_host.load  mime.conf   proxy_http.load
actions.load  authz_user.load  mime.load   rewrite.load
alias.confautoindex.conf   negotiation.confsetenvif.conf
alias.loadautoindex.load   negotiation.loadsetenvif.load
auth_basic.load   cgi.load netcgi_apache.conf  status.conf
authn_file.load   dir.conf netcgi_apache.load  status.load
authz_default.loaddir.load proxy.conf  userdir.conf
authz_groupfile.load  env.load proxy.load  userdir.load

Here are the outputs of those commands:

$ dpkg -l|egrep 'apache|ocaml'
ii  apache-common   1.3.34-4.1 
support files for all Apache webservers
ii  apache2 2.2.8-1 
Next generation, scalable, extendable web se
rc  apache2-common  2.0.55-4.1 
next generation, scalable, extendable web se
ii  apache2-mpm-prefork 2.2.8-1 
Traditional model for Apache HTTPD
ii  apache2-threaded-dev2.2.8-1 
development headers for apache2
ii  apache2-utils   2.2.8-1 
utility programs for webservers
ii  apache2.2-common2.2.8-1 
Next generation, scalable, extendable web se
ii  libagrep-ocaml  1.0-9+b2 
Wu-Manber algorithm for string searching wit
ii  libagrep-ocaml-dev  1.0-9+b2 
Wu-Manber algorithm for string searching wit
rc  libapache-mod-php4  4:4.4.2-1+b1 
server-side, HTML-embedded scripting languag
ii  libapache2-mod-ocamlnet 2.2.9-4 
OCaml application-level Internet libraries -
ii  libapache2-mod-php5 5.2.5-1 
server-side, HTML-embedded scripting languag
ii  libapache2-mod-scgi 1.12-0.2 
Apache module implementing the SCGI protocol
ii  libbatik-java   1.6-4 
xml.apache.org SVG Library
ii  libbenchmark-ocaml-dev  0.6-7+b2 
OCaml benchmarking library
ii  libcairo-ocaml  20070908-1+b2 
OCaml bindings for Cairo
ii  libcairo-ocaml-dev  20070908-1+b2 
OCaml bindings for Cairo
ii  libcalendar-ocaml-dev   2.0.2-1+b1 
OCaml library providing operations over date
ii  libcameleon-ocaml-dev 
1.9.18.svn20070918-2   libraries from Cameleon
ii  libcamlimages-ocaml 1:2.2.0-4 
OCaml image processing library
ii  libcamlimages-ocaml-dev 1:2.2.0-4 
OCaml image processing library
ii  libcamlimages-ocaml-doc 1:2.2.0-4 
OCaml CamlImages library documentation
ii  libcamomile-ocaml-data  0.7.1-3 
Unicode data for OCaml
ii  libcamomile-ocaml-dev   0.7.1-3+b2 
Unicode library for OCaml
ii  libcf-ocaml 0.10-1 
OCaml library with miscellaneous utility fun
ii  libcf-ocaml-dev 0.10-1 
OCaml library with miscellaneous utility fun
ii  libcryptgps-ocaml-dev   0.2.1-4+b2 
OCaml implementation of symmetric cryptograp
ii  libcryptokit-ocaml  1.3-8+b1 
cryptographic algorithm library for OCaml -
ii  libcryptokit-ocaml-dev  1.3-8+b1 
cryptographic algorithm library for OCaml -
ii  libcurl-ocaml   0.2.1-13+b1 
OCaml curl bindings
ii  libcurl-ocaml-dev   0.2.1-13+b1 
OCaml libcurl bindings
ii  libcurses-ocaml 1.0.2-2+b2 
OCaml bindings for the ncurses library
ii  libcurses-ocaml-dev 1.0.2-2+b2 
OCaml bindings for the ncurses library
ii  libdtools-ocaml-dev 0.1.6-1+b1 
library for writing daemons in OCaml
ii  libex

Bug#503616: missing symbol sqrt

2008-11-02 Thread Stéphane Glondu
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




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



Bug#503616: closed by Stefano Zacchiroli <[EMAIL PROTECTED]> (Bug#503616: fixed in ocamlnet 2.2.9-3+lenny1)

2008-11-02 Thread Dave Benjamin

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




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



Re: RFC: how to push the fix for #503616

2008-11-02 Thread Adeodato Simó
* Stefano Zacchiroli [Thu, 30 Oct 2008 09:40:58 +0100]:

> On Thu, Oct 30, 2008 at 12:18:14AM +0100, Luk Claes wrote:
> > > If not please let me know if I'd go for t-p-u with ocamlnet 2.2.9-4.
> > Please upload it with a lower version to tpu, TIA.

> Done: ocamlnet/2.2.9-3+lenny1, uploaded to t-p-u, urgency: low.
> Override as needed.

Approved.

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
- Are you sure we're good?
- Always.
-- Rory and Lorelai


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