modcaml
[Top][All Lists]
Advanced

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

[Modcaml] Re: mod_caml w/Apache 2.0


From: Jesse D. Guardiani
Subject: [Modcaml] Re: mod_caml w/Apache 2.0
Date: Sun, 31 Jul 2005 11:47:18 -0400

On Sun, 2005-07-31 at 16:43 +0100, Richard Jones wrote:
> On Sun, Jul 31, 2005 at 09:53:33AM -0400, Jesse D. Guardiani wrote:
> > ocamlc -linkall -custom -g -w s -I /usr/lib/ocaml/site-packages/pcre
> > dynlink.cma str.cma pcre.cma unix.cma mod_caml_c.o apache_c.o wrappers.o
> > apache.cmo mod_caml_config.cmo mod_caml.cmo cgi_escape.cmo template.cmo
> > cgi.cmo -o mod_caml.so \
> >   -cclib "-I/usr/include/apache2 -I/usr/lib/ocaml  -L/usr/lib -lpcre -lz
> > -lssl -lcrypto -ldl -L/usr/local/apache2/lib -lapr-0 -lgdbm -laprutil-0
> > -lxml -lexpat -ldb -lcamlrun -ltermcap -lunix -lstr "
> > mod_caml_c.o(.text+0x6a): In function `post_config':
> > : undefined reference to `ap_add_version_component'
> [...]
> > The problem doesn't seem to be that the APR library isn't being loaded,
> > but rather that it doesn't contain the symbols in question:
> > 
> > # nm /usr/lib/libapr-0.a | grep ap_rwrite
> > Exit 1
> > # nm /usr/lib/libaprutil-0.a | grep ap_rwrite
> > Exit 1
> 
> Does this symbol occur in any Apache library?  What about libraries in
> your /usr/local/apache2/lib directory?

It doesn't appear to:

# nm /usr/local/apache2/lib/* | grep ap_rwrite
nm: /usr/local/apache2/lib/apr.exp: File format not recognized
nm: /usr/local/apache2/lib/aprutil.exp: File format not recognized
nm: /usr/local/apache2/lib/libapr-0.la: File format not recognized
nm: /usr/local/apache2/lib/libaprutil-0.la: File format not recognized
Exit 1

# readelf -s /usr/local/apache2/lib/* | grep ap_rwrite
readelf: Error: Unable to read in 0x2074 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the
start
readelf: Error: Unable to read in 0x6120 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the
start
readelf: Error: Unable to read in 0x7461 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the
start
readelf: Error: Unable to read in 0x6e65 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the
start
Exit 1

(And BTW, the stuff in /usr/local/apache2/lib is from the Apache 2.0.54
that I built by hand, not from the modified Gentoo ebuild)


> > Out of curiousity, did you do your Apache 2.0 testing on a machine
> > that had Apache 1.x also installed? Or maybe the Apache 2.0 API has
> > changed recently? I'm wondering how it was possible for you to get it
> > compiled.
> 
> It been quite a while since I got mod_caml working on Apache 2.  We
> are still using Apache 1.3 on our live servers, and I was waiting for
> Apache 2.1/2.2 to come along because it includes the PCRE fix, thus
> meaning that I don't need to build my own .deb.

Bummer. I'm interested in sticking with 2.x because it has suexec and
some other features that I like. I don't mind patching as I use Gentoo
and I can create a USE flag that incorporates the external-pcre patch
and I can probably get it incorporated into the official ebuild.

Are you at a loss here? Are you basically telling me that I'd need
to study the Apache 2.0 module API to get it working?


-- 
Jesse Guardiani
Programmer/Sys Admin
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]