sed -e 's/@PACKAGE@/mod_caml/' \ -e 's/@VERSION@/1.3.6/' \ < META.in > META sed -e 's,@APACHELIBDIR@,/usr/pkg/lib/httpd,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/pkg/lib/httpd,g' \ -e 's,@OCAMLLIBDIR@,/usr/pkg/lib/ocaml,g' \ -e 's,@OCAMLAPACHEDIR@,/usr/pkg/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/pkg/lib/httpd,g' < 500mod_caml.info.in > 500mod_caml.info cc -I/usr/pkg/include/httpd -O2 -I/usr/pkg/include -I/usr/include -I /usr/pkg/include/apr-0 -I /usr/pkg/lib/ocaml -c -o mod_caml_c.o mod_caml_c.c cc -I/usr/pkg/include/httpd -O2 -I/usr/pkg/include -I/usr/include -I /usr/pkg/include/apr-0 -I /usr/pkg/lib/ocaml -c -o apache_c.o apache_c.c cc -I/usr/pkg/include/httpd -O2 -I/usr/pkg/include -I/usr/include -I /usr/pkg/include/apr-0 -I /usr/pkg/lib/ocaml -c -o wrappers.o wrappers.c ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c apache.mli ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c apache.ml ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c mod_caml_config.ml ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c mod_caml.mli ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c mod_caml.ml File "mod_caml.ml", line 117, characters 6-63: Warning X: this record is defined by a `with' expression, but no fields are borrowed from the original. File "mod_caml.ml", line 247, characters 2-73: Warning X: this record is defined by a `with' expression, but no fields are borrowed from the original. ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c cgi_escape.mli ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c cgi_escape.ml ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c cgi.mli ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c template.mli ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c template.ml ocamlc -g -w s -I /usr/pkg/lib/ocaml/site-lib/pcre -c cgi.ml ocamlc -linkall -custom -g -w s -I /usr/pkg/lib/ocaml/site-lib/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/pkg/include/httpd -O2 -I/usr/pkg/include -I/usr/include -I /usr/pkg/include/apr-0 -I /usr/pkg/lib/ocaml -lcamlrun -ltermcap -lunix -lstr " mod_caml_c.o: In function `register_hooks': mod_caml_c.c:(.text+0x42a): undefined reference to `ap_hook_post_config' mod_caml_c.c:(.text+0x43a): undefined reference to `ap_hook_translate_name' mod_caml_c.c:(.text+0x44d): undefined reference to `ap_hook_check_user_id' mod_caml_c.c:(.text+0x45d): undefined reference to `ap_hook_auth_checker' mod_caml_c.c:(.text+0x470): undefined reference to `ap_hook_access_checker' mod_caml_c.c:(.text+0x480): undefined reference to `ap_hook_type_checker' mod_caml_c.c:(.text+0x493): undefined reference to `ap_hook_fixups' mod_caml_c.c:(.text+0x4a3): undefined reference to `ap_hook_log_transaction' mod_caml_c.c:(.text+0x4b6): undefined reference to `ap_hook_header_parser' mod_caml_c.c:(.text+0x4c6): undefined reference to `ap_hook_post_read_request' mod_caml_c.c:(.text+0x4d9): undefined reference to `ap_hook_handler' mod_caml_c.o: In function `post_config': mod_caml_c.c:(.text+0xb23): undefined reference to `ap_add_version_component' mod_caml_c.o: In function `alloc_root_value': mod_caml_c.c:(.text+0xb6e): undefined reference to `apr_palloc' mod_caml_c.c:(.text+0xb83): undefined reference to `apr_pool_cleanup_null' mod_caml_c.c:(.text+0xb8f): undefined reference to `apr_pool_cleanup_register' apache_c.o: In function `mod_caml_request_register_cleanup': apache_c.c:(.text+0x1ca): undefined reference to `apr_palloc' apache_c.c:(.text+0x1de): undefined reference to `apr_pool_cleanup_null' apache_c.c:(.text+0x1eb): undefined reference to `apr_pool_cleanup_register' apache_c.o: In function `mod_caml_request_print_string': apache_c.c:(.text+0x271): undefined reference to `ap_rwrite' apache_c.o: In function `mod_caml_request_print_char': apache_c.c:(.text+0x2c6): undefined reference to `ap_rputc' apache_c.o: In function `mod_caml_request_internal_redirect_handler': apache_c.c:(.text+0x317): undefined reference to `ap_internal_redirect_handler' apache_c.o: In function `mod_caml_request_internal_redirect': apache_c.c:(.text+0x367): undefined reference to `ap_internal_redirect' apache_c.o: In function `mod_caml_request_get_basic_auth_pw': apache_c.c:(.text+0x3fb): undefined reference to `ap_get_basic_auth_pw' apache_c.o: In function `mod_caml_request_note_digest_auth_failure': apache_c.c:(.text+0x45e): undefined reference to `ap_note_digest_auth_failure' apache_c.o: In function `mod_caml_request_note_basic_auth_failure': apache_c.c:(.text+0x4a6): undefined reference to `ap_note_basic_auth_failure' apache_c.o: In function `mod_caml_request_note_auth_failure': apache_c.c:(.text+0x4ee): undefined reference to `ap_note_auth_failure' apache_c.o: In function `mod_caml_request_discard_request_body': apache_c.c:(.text+0x536): undefined reference to `ap_discard_request_body' apache_c.o: In function `mod_caml_request_get_client_block': apache_c.c:(.text+0x5c4): undefined reference to `ap_get_client_block' apache_c.o: In function `mod_caml_request_should_client_block': apache_c.c:(.text+0x63e): undefined reference to `ap_should_client_block' apache_c.o: In function `mod_caml_request_setup_client_block': apache_c.c:(.text+0x69a): undefined reference to `ap_setup_client_block' apache_c.o: In function `mod_caml_request_rflush': apache_c.c:(.text+0x6e6): undefined reference to `ap_rflush' apache_c.o: In function `mod_caml_request_set_args': apache_c.c:(.text+0xa0a): undefined reference to `apr_pstrdup' apache_c.o: In function `mod_caml_request_set_path_info': apache_c.c:(.text+0xa66): undefined reference to `apr_pstrdup' apache_c.o: In function `mod_caml_request_set_filename': apache_c.c:(.text+0xac2): undefined reference to `apr_pstrdup' apache_c.o: In function `mod_caml_request_set_uri': apache_c.c:(.text+0xb1e): undefined reference to `apr_pstrdup' apache_c.o: In function `mod_caml_request_set_content_type': apache_c.c:(.text+0xb7a): undefined reference to `apr_pstrdup' apache_c.o:apache_c.c:(.text+0xbd6): more undefined references to `apr_pstrdup' follow apache_c.o: In function `mod_caml_table_unset': apache_c.c:(.text+0x134b): undefined reference to `apr_table_unset' apache_c.o: In function `mod_caml_table_add': apache_c.c:(.text+0x13a4): undefined reference to `apr_table_add' apache_c.o: In function `mod_caml_table_set': apache_c.c:(.text+0x13fc): undefined reference to `apr_table_set' apache_c.o: In function `mod_caml_table_get': apache_c.c:(.text+0x144b): undefined reference to `apr_table_get' Error while building custom runtime system gmake: *** [mod_caml.so] Error 2