modcaml
[Top][All Lists]
Advanced

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

[Modcaml] mod_caml 1.3.6 + Apache 2.0.54 ??


From: Jesse D. Guardiani
Subject: [Modcaml] mod_caml 1.3.6 + Apache 2.0.54 ??
Date: Sun, 31 Jul 2005 00:07:15 -0400

I'm having a ton of trouble getting this working.
Does anyone have this these two versions working
together right now? If so, could you tell me your
secret?

(BTW, I'm running Gentoo Linux)

Here's the error:

# 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
-I/usr/include/apache2  -c -o mod_caml_c.o mod_caml_c.c
i686-pc-linux-gnu-gcc -I/usr/include/apache2 -I/usr/lib/ocaml
-I/usr/include/apache2  -c -o apache_c.o apache_c.c
i686-pc-linux-gnu-gcc -I/usr/include/apache2 -I/usr/lib/ocaml
-I/usr/include/apache2  -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

I've tried this with a custom external-pcre patched version of the
Apache 2.0.54-r8 gentoo ebuild, as well as a manually source built
version of Apache 2.0.54. Same result. It can't find a bunch of ap_*
functions, and I can't seem to find them using `nm` and `readelf -s`
in my lib dirs either.

I can't really back down to Apache 1.x, so this is a show stopper for
me, and I'd really love to write some mod_caml code and give cocanwiki
a spin. Any ideas?


-- 
Jesse Guardiani
Programmer/Sys Admin
address@hidden





reply via email to

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