[Mono-dev] problem compiling mod_mono from svn on Suse 10.1

Joe Audette joe_audette at yahoo.com
Fri Jul 7 20:44:32 EDT 2006


I'm having a problem compiling mod_mono from svn on Suse 10.1.

using autogen.sh --prefix=/usr I get this which looks ok to me:
Configuration summary for mod_mono

   * Installation prefix = /usr
   * Apache version = 2.2
   * Apache modules directory = /usr/lib/apache2
   * apxs = /usr/sbin/apxs2
   * apr-config = /usr/bin/apr-1-config
   * Verbose logging (debug) = no
   * mono prefix = /usr/lib/pkgconfig/../..
   * Default MonoApplicationsConfigDir = /etc/apache2/mod-mono-applications

---
Now type 'make' to compile mod_mono.

but when I try make I get a jillion errors as shown:
/usr/include/apache2/ap_config.h:26:23: error: apr_hooks.h: No such file or directory
/usr/include/apache2/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory
In file included from mod_mono.h:50,
                 from mod_mono.c:32:
/usr/include/apache2/httpd.h:54:25: error: apr_buckets.h: No such file or directory
/usr/include/apache2/httpd.h:723:21: error: apr_uri.h: No such file or directory
In file included from mod_mono.h:50,
                 from mod_mono.c:32:
/usr/include/apache2/httpd.h:925: error: expected specifier-qualifier-list before 'apr_uri_t'
/usr/include/apache2/httpd.h:1085: error: expected specifier-qualifier-list before 'APR_RING_ENTRY'
/usr/include/apache2/httpd.h:1199: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
/usr/include/apache2/httpd.h:1207: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
In file included from mod_mono.h:51,
                 from mod_mono.c:32:
/usr/include/apache2/http_core.h:31:26: error: apr_optional.h: No such file or directory
In file included from /usr/include/apache2/http_core.h:32,
                 from mod_mono.h:51,
                 from mod_mono.c:32:
/usr/include/apache2/util_filter.h:137: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:139: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:141: error: expected declaration specifiers or '...' before 'apr_read_type_e'
/usr/include/apache2/util_filter.h:296: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:298: error: expected declaration specifiers or '...' before 'apr_read_type_e'
/usr/include/apache2/util_filter.h:310: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:492: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:503: error: expected ')' before '*' token
/usr/include/apache2/util_filter.h:511: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:548: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:559: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:562: error: format string argument not a string type
In file included from mod_mono.h:51,
                 from mod_mono.c:32:
/usr/include/apache2/http_core.h:662: error: expected ')' before 'int'
/usr/include/apache2/http_core.h:680: error: expected declaration specifiers or '...' before 'ap_ident_lookup'
/usr/include/apache2/http_core.h:681: error: expected declaration specifiers or '...' before '(' token
/usr/include/apache2/http_core.h:681: warning: data definition has no type or storage class
/usr/include/apache2/http_core.h:681: warning: type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
In file included from mod_mono.h:52,
                 from mod_mono.c:32:
/usr/include/apache2/http_log.h:335: error: expected ')' before 'void'
In file included from /usr/include/apache2/http_config.h:30,
                 from mod_mono.h:53,
                 from mod_mono.c:32:
/usr/include/apache2/util_cfgtree.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apache2/util_cfgtree.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from mod_mono.h:53,
                 from mod_mono.c:32:
/usr/include/apache2/http_config.h:288: error: expected specifier-qualifier-list before 'ap_directive_t'
/usr/include/apache2/http_config.h:672: error: expected declaration specifiers or '...' before 'ap_directive_t'
/usr/include/apache2/http_config.h:673: error: expected declaration specifiers or '...' before 'ap_directive_t'
/usr/include/apache2/http_config.h:687: error: expected declaration specifiers or '...' before 'ap_directive_t'
/usr/include/apache2/http_config.h:696: error: expected ')' before '*' token
/usr/include/apache2/http_config.h:975: error: expected ')' before 'int'
In file included from /usr/include/apr_global_mutex.h:26,
                 from /usr/include/apr_portable.h:34,
                 from /usr/include/apache2/http_protocol.h:31,
                 from mod_mono.h:134,
                 from mod_mono.c:32:
/usr/include/apr_proc_mutex.h:81: error: expected declaration specifiers or '...' before 'apr_lockmech_e'
In file included from /usr/include/apr_portable.h:34,
                 from /usr/include/apache2/http_protocol.h:31,
                 from mod_mono.h:134,
                 from mod_mono.c:32:
/usr/include/apr_global_mutex.h:76: error: expected declaration specifiers or '...' before 'apr_lockmech_e'
In file included from mod_mono.h:134,
                 from mod_mono.c:32:
/usr/include/apache2/http_protocol.h:45: error: expected ')' before 'void'
/usr/include/apache2/http_protocol.h:77: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_protocol.h:537: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_protocol.h:569: error: expected ')' before 'int'
/usr/include/apache2/http_protocol.h:608: error: expected specifier-qualifier-list before 'apr_bucket_refcount'
/usr/include/apache2/http_protocol.h:616: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_bucket_type_error'
/usr/include/apache2/http_protocol.h:633: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apache2/http_protocol.h:644: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apache2/http_protocol.h:648: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_protocol.h:649: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_protocol.h:651: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_protocol.h:652: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
In file included from mod_mono.h:135,
                 from mod_mono.c:32:
/usr/include/apache2/http_request.h:131: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_request.h:261: error: expected ')' before 'int'
In file included from mod_mono.h:136,
                 from mod_mono.c:32:
/usr/include/apache2/util_script.h:104: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
mod_mono.c: In function 'set_alias':
mod_mono.c:116: error: 'cmd_parms' has no member named 'server'
mod_mono.c:119: error: 'cmd_parms' has no member named 'pool'
mod_mono.c: In function 'set_auto_application':
mod_mono.c:131: error: 'cmd_parms' has no member named 'server'
mod_mono.c:134: error: 'cmd_parms' has no member named 'pool'
mod_mono.c:139: error: 'cmd_parms' has no member named 'pool'
mod_mono.c:143: error: 'cmd_parms' has no member named 'pool'
mod_mono.c: In function 'store_config_xsp':
mod_mono.c:213: error: 'cmd_parms' has no member named 'server'
mod_mono.c:219: error: 'cmd_parms' has no member named 'server'
mod_mono.c:219: error: 'cmd_parms' has no member named 'server'
mod_mono.c:230: error: 'cmd_parms' has no member named 'pool'
mod_mono.c:230: error: 'cmd_parms' has no member named 'server'
mod_mono.c:240: error: 'cmd_parms' has no member named 'pool'
mod_mono.c:242: error: 'cmd_parms' has no member named 'pool'
mod_mono.c: In function 'connection_get_remote_name':
mod_mono.c:367: error: 'request_rec' has no member named 'per_dir_config'
mod_mono.c: In function 'get_client_block_buffer':
mod_mono.c:574: error: 'request_rec' has no member named 'request_config'
mod_mono.c:578: error: 'request_rec' has no member named 'request_config'
mod_mono.c: In function 'fork_mod_mono_server':
mod_mono.c:1074: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result
mod_mono.c: In function 'mono_execute_request':
mod_mono.c:1388: error: 'request_rec' has no member named 'per_dir_config'
mod_mono.c:1389: error: 'request_rec' has no member named 'per_dir_config'
mod_mono.c: In function 'mono_control_panel_handler':
mod_mono.c:1641: error: 'apr_uri_t' undeclared (first use in this function)
mod_mono.c:1641: error: (Each undeclared identifier is reported only once
mod_mono.c:1641: error: for each function it appears in.)
mod_mono.c:1641: error: 'uri' undeclared (first use in this function)
mod_mono.c:1658: error: 'request_rec' has no member named 'parsed_uri'
mod_mono.c: In function 'mono_register_hooks':
mod_mono.c:1770: warning: implicit declaration of function 'ap_hook_handler'
mod_mono.c:1770: error: 'APR_HOOK_FIRST' undeclared (first use in this function)
mod_mono.c:1772: warning: implicit declaration of function 'ap_hook_post_config'
mod_mono.c:1772: error: 'APR_HOOK_MIDDLE' undeclared (first use in this function)
mod_mono.c:1773: warning: implicit declaration of function 'ap_hook_child_init'
make[1]: *** [mod_mono_la-mod_mono.lo] Error 1
make[1]: Leaving directory `/home/jaudette/software/mono/mod_mono/src'
make: *** [all-recursive] Error 1

any ideas or suggestions?

Thanks,

Joe
 
 
joe_audette [at] yahoo dotcom 
http://www.joeaudette.com 
http://www.mojoportal.com






More information about the Mono-devel-list mailing list