Are you running OS X 10.4.10 or OS X server 10.4.10 ?I am on holiday and don't have easy access to my Xserve but I wonder if you have checked that file permissions are satisfactory.
Nevilleps would it be helpful if everybody put their OS at the beginning of their subject line?
At 21:27 -0400 18/09/2007, Andrew WC Brown wrote:
Hi, I'm new to this mailing list (waves). I'm running OS X.4.10 with Apache 2.2.6When I installed apache I was sure to --enable-module=shared so I could load DSOs.I let apache2 install to /usr/local/apache2. When I run apache it works.I didn't specify any additional modules on compilation so my modules directory is emptied.I'm going to be using virtual hosting so I want to compile mod_vhost_alias.cI've navigated to the directory in my source folder: httpd-2.2.6/modules/mappers/I've tired to compile using: sudo apxs -c mod_vhost_alias.c I get the following error:gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -c mod_vhost_alias.cmod_vhost_alias.c:36:17: error: apr.h: No such file or directory mod_vhost_alias.c:37:25: error: apr_strings.h: No such file or directory mod_vhost_alias.c:38:23: error: apr_hooks.h: No such file or directory mod_vhost_alias.c:39:21: error: apr_lib.h: No such file or directory mod_vhost_alias.c:42:22: error: apr_want.h: No such file or directory In file included from /usr/include/httpd/ap_config.h:1129, from /usr/include/httpd/httpd.h:29, from mod_vhost_alias.c:44: /usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern" redefined In file included from /usr/include/httpd/httpd.h:29, from mod_vhost_alias.c:44:/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of the previous definitionmod_vhost_alias.c:50: error: parse error before 'vhost_alias_module' mod_vhost_alias.c:50: warning: data definition has no type or storage class mod_vhost_alias.c:72: error: parse error before '*' token mod_vhost_alias.c: In function 'mva_create_server_config': mod_vhost_alias.c:76: error: 'p' undeclared (first use in this function) mod_vhost_alias.c:76: error: (Each undeclared identifier is reported only once mod_vhost_alias.c:76: error: for each function it appears in.) mod_vhost_alias.c: At top level: mod_vhost_alias.c:84: error: parse error before '*' token mod_vhost_alias.c: In function 'mva_merge_server_config': mod_vhost_alias.c:86: error: 'parentv' undeclared (first use in this function) mod_vhost_alias.c:87: error: 'childv' undeclared (first use in this function) mod_vhost_alias.c:90: error: 'p' undeclared (first use in this function) mod_vhost_alias.c: In function 'vhost_alias_set':mod_vhost_alias.c:127: error: request for member 'module_index' in something not a structure or union mod_vhost_alias.c:154: warning: passing argument 1 of 'ap_os_is_path_absolute' from incompatible pointer type mod_vhost_alias.c:154: error: too many arguments to function 'ap_os_is_path_absolute'mod_vhost_alias.c: At top level: mod_vhost_alias.c:219: error: initializer element is not constant mod_vhost_alias.c:219: error: (near initialization for 'mva_commands[0].name') mod_vhost_alias.c:222: error: initializer element is not constant mod_vhost_alias.c:222: error: (near initialization for 'mva_commands[0].func') mod_vhost_alias.c:225: error: initializer element is not constantmod_vhost_alias.c:225: error: (near initialization for 'mva_commands[0].cmd_data')mod_vhost_alias.c:228: error: initializer element is not constantmod_vhost_alias.c:228: error: (near initialization for 'mva_commands[0].req_override')mod_vhost_alias.c:229: warning: braces around scalar initializermod_vhost_alias.c:229: warning: (near initialization for 'mva_commands[0].args_how')mod_vhost_alias.c:229: error: incompatible types in initialization mod_vhost_alias.c:237: error: syntax error before 'void' mod_vhost_alias.c: In function 'vhost_alias_checkspace':mod_vhost_alias.c:244: warning: assignment makes pointer from integer without a cast mod_vhost_alias.c:247: warning: assignment makes pointer from integer without a castmod_vhost_alias.c: In function 'vhost_alias_interpolate':mod_vhost_alias.c:376: warning: assignment makes pointer from integer without a cast mod_vhost_alias.c:379: warning: assignment makes pointer from integer without a castmod_vhost_alias.c: In function 'mva_translate':mod_vhost_alias.c:390: error: request for member 'module_index' in something not a structure or unionmod_vhost_alias.c:390: error: array subscript is not an integermod_vhost_alias.c:428: error: 'struct request_rec' has no member named 'canonical_filename'mod_vhost_alias.c: At top level: mod_vhost_alias.c:440: error: parse error before '*' token mod_vhost_alias.c: In function 'register_hooks':mod_vhost_alias.c:444: error: 'APR_HOOK_MIDDLE' undeclared (first use in this function)mod_vhost_alias.c: At top level: mod_vhost_alias.c:447: error: parse error before 'vhost_alias_module'mod_vhost_alias.c:449: error: 'STANDARD20_MODULE_STUFF' undeclared here (not in a function)mod_vhost_alias.c:450: warning: excess elements in scalar initializer mod_vhost_alias.c:450: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:451: warning: excess elements in scalar initializer mod_vhost_alias.c:451: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:452: warning: excess elements in scalar initializer mod_vhost_alias.c:452: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:453: warning: excess elements in scalar initializer mod_vhost_alias.c:453: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:454: warning: excess elements in scalar initializer mod_vhost_alias.c:454: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:456: warning: excess elements in scalar initializer mod_vhost_alias.c:456: warning: (near initialization for 'vhost_alias_module') mod_vhost_alias.c:456: warning: data definition has no type or storage class apxs:Break: Command failed with rc=1I've read though the documentation and searched for help but haven't been successful.What do I need to do to compile a module using apxs?
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx