cc -I/usr/pkg/include/httpd -O2 -I/usr/pkg/include -I/usr/include -c -o mod_caml_c.o mod_caml_c.c In file included from /usr/pkg/include/httpd/httpd.h:43, from mod_caml_c.c:34: /usr/pkg/include/httpd/ap_config.h:25:17: error: apr.h: No such file or directory /usr/pkg/include/httpd/ap_config.h:26:23: error: apr_hooks.h: No such file or directory /usr/pkg/include/httpd/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory In file included from /usr/pkg/include/httpd/httpd.h:46, from mod_caml_c.c:34: /usr/pkg/include/httpd/ap_release.h:25:41: error: apr_general.h: No such file or directory In file included from mod_caml_c.c:34: /usr/pkg/include/httpd/httpd.h:50:24: error: apr_tables.h: No such file or directory /usr/pkg/include/httpd/httpd.h:51:23: error: apr_pools.h: No such file or directory /usr/pkg/include/httpd/httpd.h:52:22: error: apr_time.h: No such file or directory /usr/pkg/include/httpd/httpd.h:53:28: error: apr_network_io.h: No such file or directory /usr/pkg/include/httpd/httpd.h:54:25: error: apr_buckets.h: No such file or directory /usr/pkg/include/httpd/httpd.h:55:22: error: apr_poll.h: No such file or directory In file included from /usr/pkg/include/httpd/httpd.h:59, from mod_caml_c.c:34: /usr/pkg/include/httpd/ap_regex.h:87: error: expected specifier-qualifier-list before 'apr_size_t' /usr/pkg/include/httpd/ap_regex.h:118: error: expected declaration specifiers or '...' before 'apr_size_t' /usr/pkg/include/httpd/ap_regex.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_regerror' In file included from mod_caml_c.c:34: /usr/pkg/include/httpd/httpd.h:453: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:623: error: expected specifier-qualifier-list before 'apr_int64_t' /usr/pkg/include/httpd/httpd.h:745:21: error: apr_uri.h: No such file or directory /usr/pkg/include/httpd/httpd.h:752: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/pkg/include/httpd/httpd.h:768: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/pkg/include/httpd/httpd.h:1030: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/pkg/include/httpd/httpd.h:1107: error: expected specifier-qualifier-list before 'APR_RING_ENTRY' /usr/pkg/include/httpd/httpd.h:1140: error: expected specifier-qualifier-list before 'apr_sockaddr_t' /usr/pkg/include/httpd/httpd.h:1168: error: expected specifier-qualifier-list before 'apr_port_t' /usr/pkg/include/httpd/httpd.h:1224: error: expected specifier-qualifier-list before 'apr_bucket_brigade' /usr/pkg/include/httpd/httpd.h:1232: error: expected specifier-qualifier-list before 'apr_bucket_brigade' /usr/pkg/include/httpd/httpd.h:1238: error: expected specifier-qualifier-list before 'apr_socket_t' /usr/pkg/include/httpd/httpd.h:1254: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1264: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1277: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1287: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1296: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1306: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1316: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1328: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1336: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1345: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1356: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1379: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1389: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1401: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1410: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1419: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1461: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1471: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1482: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1490: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1499: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_escape_errorlog_item' /usr/pkg/include/httpd/httpd.h:1510: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1519: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1548: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1562: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1572: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1624: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1632: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1646: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1654: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1667: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1707: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1719: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1729: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1737: error: expected ')' before '*' token /usr/pkg/include/httpd/httpd.h:1748: error: expected ')' before '*' token In file included from mod_caml_c.c:35: /usr/pkg/include/httpd/http_config.h:279: error: expected specifier-qualifier-list before 'apr_int64_t' /usr/pkg/include/httpd/http_config.h:357: error: expected ')' before '*' token /usr/pkg/include/httpd/http_config.h:365: error: expected ';' before 'void' /usr/pkg/include/httpd/http_config.h:557: error: expected ')' before '*' token /usr/pkg/include/httpd/http_config.h:566: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/pkg/include/httpd/http_config.h:582: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/pkg/include/httpd/http_config.h:607: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_pcfg_openfile' /usr/pkg/include/httpd/http_config.h:619: error: expected ')' before '*' token /usr/pkg/include/httpd/http_config.h:669: error: expected ')' before '*' token /usr/pkg/include/httpd/http_config.h:685: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/pkg/include/httpd/http_config.h:686: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/pkg/include/httpd/http_config.h:975: error: expected ')' before 'int' In file included from /usr/pkg/include/httpd/http_request.h:45, from mod_caml_c.c:37: /usr/pkg/include/httpd/util_filter.h:72: warning: data definition has no type or storage class /usr/pkg/include/httpd/util_filter.h:136: error: expected declaration specifiers or '...' before '*' token /usr/pkg/include/httpd/util_filter.h:137: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:137: error: 'apr_status_t' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:139: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:140: error: expected declaration specifiers or '...' before 'ap_input_mode_t' /usr/pkg/include/httpd/util_filter.h:141: error: expected declaration specifiers or '...' before 'apr_read_type_e' /usr/pkg/include/httpd/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/pkg/include/httpd/util_filter.h:142: error: 'ap_in_filter_func' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:146: error: expected specifier-qualifier-list before 'ap_out_filter_func' /usr/pkg/include/httpd/util_filter.h:296: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:297: error: expected declaration specifiers or '...' before 'ap_input_mode_t' /usr/pkg/include/httpd/util_filter.h:298: error: expected declaration specifiers or '...' before 'apr_read_type_e' /usr/pkg/include/httpd/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/pkg/include/httpd/util_filter.h:299: error: 'ap_get_brigade' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:310: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:310: error: 'ap_pass_brigade' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:348: error: expected declaration specifiers or '...' before 'ap_out_filter_func' /usr/pkg/include/httpd/util_filter.h:374: error: expected declaration specifiers or '...' before 'ap_out_filter_func' /usr/pkg/include/httpd/util_filter.h:492: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/pkg/include/httpd/util_filter.h:493: error: 'ap_save_brigade' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:503: error: expected ')' before '*' token /usr/pkg/include/httpd/util_filter.h:511: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:511: error: 'ap_fflush' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:548: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:549: error: 'ap_fputstrs' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:559: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/util_filter.h:562: error: 'ap_fprintf' declared as function returning a function /usr/pkg/include/httpd/util_filter.h:562: error: format string argument not a string type In file included from mod_caml_c.c:37: /usr/pkg/include/httpd/http_request.h:105: error: expected ';', ',' or ')' before '*' token /usr/pkg/include/httpd/http_request.h:131: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_request.h:131: error: 'ap_sub_req_output_filter' declared as function returning a function /usr/pkg/include/httpd/http_request.h:198: error: expected declaration specifiers or '...' before 'apr_time_t' /usr/pkg/include/httpd/http_request.h:261: error: expected ')' before 'int' In file included from mod_caml_c.c:38: /usr/pkg/include/httpd/http_protocol.h:31:26: error: apr_portable.h: No such file or directory /usr/pkg/include/httpd/http_protocol.h:32:22: error: apr_mmap.h: No such file or directory In file included from mod_caml_c.c:38: /usr/pkg/include/httpd/http_protocol.h:45: error: expected ')' before 'void' /usr/pkg/include/httpd/http_protocol.h:77: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:111: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/pkg/include/httpd/http_protocol.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_rationalize_mtime' /usr/pkg/include/httpd/http_protocol.h:203: error: expected ')' before '*' token /usr/pkg/include/httpd/http_protocol.h:228: error: expected ')' before '*' token /usr/pkg/include/httpd/http_protocol.h:235: error: expected ')' before '*' token /usr/pkg/include/httpd/http_protocol.h:253: error: expected ')' before '*' token /usr/pkg/include/httpd/http_protocol.h:356: error: expected declaration specifiers or '...' before 'va_list' /usr/pkg/include/httpd/http_protocol.h:426: error: expected declaration specifiers or '...' before 'apr_size_t' /usr/pkg/include/httpd/http_protocol.h:534: error: expected declaration specifiers or '...' before 'apr_size_t' /usr/pkg/include/httpd/http_protocol.h:535: error: expected declaration specifiers or '...' before 'apr_size_t' /usr/pkg/include/httpd/http_protocol.h:537: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:537: error: 'ap_rgetline_core' declared as function returning a function /usr/pkg/include/httpd/http_protocol.h:554: error: expected ')' before '*' token /usr/pkg/include/httpd/http_protocol.h:569: error: expected ')' before 'int' /usr/pkg/include/httpd/http_protocol.h:608: error: expected specifier-qualifier-list before 'apr_bucket_refcount' /usr/pkg/include/httpd/http_protocol.h:616: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_bucket_type_error' /usr/pkg/include/httpd/http_protocol.h:633: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/pkg/include/httpd/http_protocol.h:644: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/pkg/include/httpd/http_protocol.h:648: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:648: error: 'ap_byterange_filter' declared as function returning a function /usr/pkg/include/httpd/http_protocol.h:649: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:649: error: 'ap_http_header_filter' declared as function returning a function /usr/pkg/include/httpd/http_protocol.h:651: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:651: error: 'ap_content_length_filter' declared as function returning a function /usr/pkg/include/httpd/http_protocol.h:652: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/pkg/include/httpd/http_protocol.h:652: error: 'ap_old_write_filter' declared as function returning a function In file included from mod_caml_c.c:41: wrappers.h:26:24: error: caml/alloc.h: No such file or directory wrappers.h:27:25: error: caml/memory.h: No such file or directory wrappers.h:28:27: error: caml/mlvalues.h: No such file or directory mod_caml_c.c:92: error: expected ')' before '*' token mod_caml_c.c:164: error: expected ')' before '*' token mod_caml_c.c:179: error: expected ')' before '*' token mod_caml_c.c:191: error: expected ')' before '*' token mod_caml_c.c:202: error: expected ')' before '*' token mod_caml_c.c:214: error: expected ')' before '*' token mod_caml_c.c: In function 'cmd_translate_handler': mod_caml_c.c:308: error: 'cmd_parms' has no member named 'server' mod_caml_c.c: At top level: mod_caml_c.c:406: error: expected ')' before '*' token mod_caml_c.c:434: error: 'create_dir_config' undeclared here (not in a function) mod_caml_c.c:434: warning: excess elements in struct initializer mod_caml_c.c:434: warning: (near initialization for 'caml_module') mod_caml_c.c:435: error: 'merge_dir_config' undeclared here (not in a function) mod_caml_c.c:435: warning: excess elements in struct initializer mod_caml_c.c:435: warning: (near initialization for 'caml_module') mod_caml_c.c:436: error: 'create_server_config' undeclared here (not in a function) mod_caml_c.c:436: warning: excess elements in struct initializer mod_caml_c.c:436: warning: (near initialization for 'caml_module') mod_caml_c.c:437: error: 'merge_server_config' undeclared here (not in a function) mod_caml_c.c:437: warning: excess elements in struct initializer mod_caml_c.c:437: warning: (near initialization for 'caml_module') mod_caml_c.c:438: warning: excess elements in struct initializer mod_caml_c.c:438: warning: (near initialization for 'caml_module') mod_caml_c.c:439: error: 'register_hooks' undeclared here (not in a function) mod_caml_c.c:439: warning: excess elements in struct initializer mod_caml_c.c:439: warning: (near initialization for 'caml_module') gmake: *** [mod_caml_c.o] Error 1