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 09:53:33 -0400

On Sun, 2005-07-31 at 10:11 +0100, Richard Jones wrote:
> On Sat, Jul 30, 2005 at 07:33:23PM -0400, Jesse D. Guardiani wrote:
> > Hello,
> > 
> > Have you ever seen this error before?
> > I've been trying to fix it all day with no luck.
> > 
> > [19:address@hidden:[/usr/local/src/WWW/mod_caml-1.3.6]# make
> > apxs:Error: Invalid query string `EXTRA_CFLAGS_SHLIB'.
> > apxs:Error: Invalid query string `EXTRA_LDFLAGS_SHLIB'.
> 
> You need to fix this error first, because that is causing the APR
> library not to be loaded.

OK. Here's what I had when I stopped last night:

# make
sed  -e 's/@PACKAGE@/mod_caml/' \
-e 's/@VERSION@/1.3.6/' \
< META.in > META
sed -e 's,@APACHELIBDIR@,/usr/lib/apache2/modules,g' \
-e 's,@PACKAGE@,mod_caml,g' \
-e 's,@VERSION@,1.3.6,g' \
-e 's,@APACHE_MAJOR@,2,g' \
< config.h.in > config.h
sed -e 's,@APACHELIBDIR@,/usr/lib/apache2/modules,g' \
-e 's,@OCAMLLIBDIR@,/usr/lib/ocaml,g' \
-e 's,@OCAMLAPACHEDIR@,/usr/lib/ocaml/apache,g' \
-e 's,@PACKAGE@,mod_caml,g' \
-e 's,@VERSION@,1.3.6,g' \
-e 's,@APACHE_MAJOR@,2,g' \
-e 's,@MAILER_PATH@,/usr/sbin/sendmail,g' \
-e 's,@MAILER_ARGS@,-t -i,g' \
< mod_caml_config.ml.in > mod_caml_config.ml
sed -e 's,@APACHELIBDIR@,/usr/lib/apache2/modules,g' <
500mod_caml.info.in > 500mod_caml.info
i686-pc-linux-gnu-gcc -I/usr/include/apache2 -I/usr/lib/ocaml    -c -o
mod_caml_c.o mod_caml_c.c
i686-pc-linux-gnu-gcc -I/usr/include/apache2 -I/usr/lib/ocaml    -c -o
apache_c.o apache_c.c
i686-pc-linux-gnu-gcc -I/usr/include/apache2 -I/usr/lib/ocaml    -c -o
wrappers.o wrappers.c
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c apache.mli
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c apache.ml
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c
mod_caml_config.ml
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c mod_caml.mli
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c mod_caml.ml
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c cgi_escape.mli
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c cgi_escape.ml
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c cgi.mli
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c template.mli
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c template.ml
ocamlc -g -w s -I /usr/lib/ocaml/site-packages/pcre -c cgi.ml
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'
mod_caml_c.o(.text+0xfa2): In function `register_hooks':
: undefined reference to `ap_hook_post_config'
mod_caml_c.o(.text+0xfc6): In function `register_hooks':
: undefined reference to `ap_hook_translate_name'
mod_caml_c.o(.text+0xfea): In function `register_hooks':
: undefined reference to `ap_hook_check_user_id'
mod_caml_c.o(.text+0x100e): In function `register_hooks':
: undefined reference to `ap_hook_auth_checker'
mod_caml_c.o(.text+0x1032): In function `register_hooks':
: undefined reference to `ap_hook_access_checker'
mod_caml_c.o(.text+0x1056): In function `register_hooks':
: undefined reference to `ap_hook_type_checker'
mod_caml_c.o(.text+0x107a): In function `register_hooks':
: undefined reference to `ap_hook_fixups'
mod_caml_c.o(.text+0x109e): In function `register_hooks':
: undefined reference to `ap_hook_log_transaction'
mod_caml_c.o(.text+0x10c2): In function `register_hooks':
: undefined reference to `ap_hook_header_parser'
mod_caml_c.o(.text+0x10e6): In function `register_hooks':
: undefined reference to `ap_hook_post_read_request'
mod_caml_c.o(.text+0x110a): In function `register_hooks':
: undefined reference to `ap_hook_handler'
apache_c.o(.text+0x1502): In function `mod_caml_request_rflush':
: undefined reference to `ap_rflush'
apache_c.o(.text+0x1570): In function
`mod_caml_request_setup_client_block':
: undefined reference to `ap_setup_client_block'
apache_c.o(.text+0x15e1): In function
`mod_caml_request_should_client_block':
: undefined reference to `ap_should_client_block'
apache_c.o(.text+0x16af): In function
`mod_caml_request_get_client_block':
: undefined reference to `ap_get_client_block'
apache_c.o(.text+0x1747): In function
`mod_caml_request_discard_request_body':
: undefined reference to `ap_discard_request_body'
apache_c.o(.text+0x17b0): In function
`mod_caml_request_note_auth_failure':
: undefined reference to `ap_note_auth_failure'
apache_c.o(.text+0x180b): In function
`mod_caml_request_note_basic_auth_failure':
: undefined reference to `ap_note_basic_auth_failure'
apache_c.o(.text+0x1866): In function
`mod_caml_request_note_digest_auth_failure':
: undefined reference to `ap_note_digest_auth_failure'
apache_c.o(.text+0x18cf): In function
`mod_caml_request_get_basic_auth_pw':
: undefined reference to `ap_get_basic_auth_pw'
apache_c.o(.text+0x1958): In function
`mod_caml_request_internal_redirect':
: undefined reference to `ap_internal_redirect'
apache_c.o(.text+0x19c0): In function
`mod_caml_request_internal_redirect_handler':
: undefined reference to `ap_internal_redirect_handler'
apache_c.o(.text+0x1a30): In function `mod_caml_request_print_char':
: undefined reference to `ap_rputc'
apache_c.o(.text+0x1ab7): In function `mod_caml_request_print_string':
: undefined reference to `ap_rwrite'
collect2: ld returned 1 exit status
Error while building custom runtime system
make: *** [mod_caml.so] Error 2
Exit 2


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


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.


> Are you using the right apxs (ie. should you be using apxs2, or apxs
> on a different path)?

Yeah, it's apxs2. apxs doesn't exist on my system right now. Please see
attached for my Makefile.config.

Thanks!


-- 
Jesse Guardiani
Programmer/Sys Admin
address@hidden

Attachment: Makefile.config
Description: Text document


reply via email to

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