You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Smyth <ps...@britishvita.com> on 2001/08/09 11:35:37 UTC

Can't get mod_webapp.c to compile

If there is something really obvious I'm missing please let me know. I just can't get mod_webapp.c to compile. Please help!!

make results below.

Regards Paul Smyth.
psmyth@britishvita.com

Make results:
Compiling Apache 1.3 WebApp module
mod_webapp.c:77: parse error before `webapp_module'
mod_webapp.c:77: warning: data definition has no type or storage class
mod_webapp.c:90: parse error before `pool'
mod_webapp.c:97: parse error before `pool'
mod_webapp.c: In function `wam_startup':
mod_webapp.c:99: `s' undeclared (first use in this function)
mod_webapp.c:99: (Each undeclared identifier is reported only once
mod_webapp.c:99: for each function it appears in.)
mod_webapp.c: At top level:
mod_webapp.c:104: parse error before `*'
mod_webapp.c: In function `wam_server':
mod_webapp.c:127: request for member `module_index' in something not a structure or union
mod_webapp.c:145: request for member `module_index' in something not a structure or union
mod_webapp.c: In function `wa_log':
mod_webapp.c:270: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_webapp.c:270: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_webapp.c: In function `wam_handler_log':
mod_webapp.c:278: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_webapp.c:278: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_webapp.c: In function `wam_handler_setctype':
mod_webapp.c:294: warning: assignment makes pointer from integer without a cast
mod_webapp.c: In function `wam_match':
mod_webapp.c:386: request for member `module_index' in something not a structure or union
mod_webapp.c:401: warning: assignment makes pointer from integer without a cast
mod_webapp.c:404: request for member `module_index' in something not a structure or union
mod_webapp.c: In function `wam_invoke':
mod_webapp.c:424: request for member `module_index' in something not a structure or union
mod_webapp.c:429: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_webapp.c:429: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_webapp.c:436: too few arguments to function `ap_get_remote_host'
mod_webapp.c:443: request for member `sin_port' in something not a structure or union
mod_webapp.c:443: request for member `sin_port' in something not a structure or union
mod_webapp.c:443: request for member `sin_port' in something not a structure or union
mod_webapp.c:443: request for member `sin_port' in something not a structure or union
mod_webapp.c:444: request for member `sin_port' in something not a structure or union
mod_webapp.c:444: request for member `sin_port' in something not a structure or union
mod_webapp.c:444: request for member `sin_port' in something not a structure or union
mod_webapp.c:444: request for member `sin_port' in something not a structure or union
mod_webapp.c:452: structure has no member named `user'
mod_webapp.c:453: structure has no member named `ap_auth_type'
mod_webapp.c:460: `array_header' undeclared (first use in this function)
mod_webapp.c:460: `arr' undeclared (first use in this function)
mod_webapp.c:461: `table_entry' undeclared (first use in this function)
mod_webapp.c:461: `ele' undeclared (first use in this function)
mod_webapp.c:461: parse error before `)'
mod_webapp.c:465: `x' undeclared (first use in this function)
mod_webapp.c: At top level:
mod_webapp.c:492: parse error before `wam_handlers'
mod_webapp.c:493: warning: braces around scalar initializer
mod_webapp.c:493: warning: (near initialization for `wam_handlers[0]')
mod_webapp.c:493: warning: initialization makes integer from pointer without a cast
mod_webapp.c:493: warning: excess elements in scalar initializer
mod_webapp.c:493: warning: (near initialization for `wam_handlers[0]')
mod_webapp.c:494: warning: braces around scalar initializer
mod_webapp.c:494: warning: (near initialization for `wam_handlers[1]')
mod_webapp.c:494: warning: initialization makes integer from pointer without a cast
mod_webapp.c:495: warning: data definition has no type or storage class
mod_webapp.c:498: parse error before `webapp_module'
mod_webapp.c:499: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_webapp.c:499: initializer element is not constant
mod_webapp.c:499: (near initialization for `webapp_module')
mod_webapp.c:500: warning: excess elements in scalar initializer
mod_webapp.c:500: warning: (near initialization for `webapp_module')
mod_webapp.c:501: warning: excess elements in scalar initializer
mod_webapp.c:501: warning: (near initialization for `webapp_module')
mod_webapp.c:502: warning: excess elements in scalar initializer
mod_webapp.c:502: warning: (near initialization for `webapp_module')
mod_webapp.c:503: warning: excess elements in scalar initializer
mod_webapp.c:503: warning: (near initialization for `webapp_module')
mod_webapp.c:504: warning: excess elements in scalar initializer
mod_webapp.c:504: warning: (near initialization for `webapp_module')
mod_webapp.c:505: warning: excess elements in scalar initializer
mod_webapp.c:505: warning: (near initialization for `webapp_module')
mod_webapp.c:506: warning: excess elements in scalar initializer
mod_webapp.c:506: warning: (near initialization for `webapp_module')
mod_webapp.c:507: warning: excess elements in scalar initializer
mod_webapp.c:507: warning: (near initialization for `webapp_module')
mod_webapp.c:508: warning: excess elements in scalar initializer
mod_webapp.c:508: warning: (near initialization for `webapp_module')
mod_webapp.c:509: warning: excess elements in scalar initializer
mod_webapp.c:509: warning: (near initialization for `webapp_module')
mod_webapp.c:510: warning: excess elements in scalar initializer
mod_webapp.c:510: warning: (near initialization for `webapp_module')
mod_webapp.c:511: warning: excess elements in scalar initializer
mod_webapp.c:511: warning: (near initialization for `webapp_module')
mod_webapp.c:512: warning: excess elements in scalar initializer
mod_webapp.c:512: warning: (near initialization for `webapp_module')
mod_webapp.c:513: warning: excess elements in scalar initializer
mod_webapp.c:513: warning: (near initialization for `webapp_module')
mod_webapp.c:514: warning: excess elements in scalar initializer
mod_webapp.c:514: warning: (near initialization for `webapp_module')
mod_webapp.c:515: warning: excess elements in scalar initializer
mod_webapp.c:515: warning: (near initialization for `webapp_module')
mod_webapp.c:516: warning: excess elements in scalar initializer
mod_webapp.c:516: warning: (near initialization for `webapp_module')
mod_webapp.c:518: warning: excess elements in scalar initializer
mod_webapp.c:518: warning: (near initialization for `webapp_module')
mod_webapp.c:518: warning: data definition has no type or storage class
make: *** [mod_webapp.lo] Error 1


**********************************************************************
This e-mail and the information it contains may be confidential and is intended
solely for the use of the named addressee.  If you have received this e-mail in
error, please contact us immediately.  You should not disclose the contents to
any other person nor make copies.
**********************************************************************

Re: Can't get mod_webapp.c to compile

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Well, it's clear that the baby is not finding all apache 1.3 headers... Did
you follow what's described in the README.txt file?
Can you send me your apache-1.3/Makefile file?

    Pier


Paul Smyth at psmyth@britishvita.com wrote:
> 
> If there is something really obvious I'm missing please let me know. I just
> can't get mod_webapp.c to compile. Please help!!
> 
> make results below.
> 
> Regards Paul Smyth.
> psmyth@britishvita.com
> 
> Make results:
> Compiling Apache 1.3 WebApp module
> mod_webapp.c:77: parse error before `webapp_module'
> mod_webapp.c:77: warning: data definition has no type or storage class
> mod_webapp.c:90: parse error before `pool'
> mod_webapp.c:97: parse error before `pool'
> mod_webapp.c: In function `wam_startup':
> mod_webapp.c:99: `s' undeclared (first use in this function)
> mod_webapp.c:99: (Each undeclared identifier is reported only once
> mod_webapp.c:99: for each function it appears in.)
> mod_webapp.c: At top level:
> mod_webapp.c:104: parse error before `*'
> mod_webapp.c: In function `wam_server':
> mod_webapp.c:127: request for member `module_index' in something not a
> structure or union
> mod_webapp.c:145: request for member `module_index' in something not a
> structure or union
> mod_webapp.c: In function `wa_log':
> mod_webapp.c:270: warning: passing arg 4 of `ap_log_error' makes integer from
> pointer without a cast
> mod_webapp.c:270: warning: passing arg 5 of `ap_log_error' from incompatible
> pointer type
> mod_webapp.c: In function `wam_handler_log':
> mod_webapp.c:278: warning: passing arg 4 of `ap_log_error' makes integer from
> pointer without a cast
> mod_webapp.c:278: warning: passing arg 5 of `ap_log_error' from incompatible
> pointer type
> mod_webapp.c: In function `wam_handler_setctype':
> mod_webapp.c:294: warning: assignment makes pointer from integer without a
> cast
> mod_webapp.c: In function `wam_match':
> mod_webapp.c:386: request for member `module_index' in something not a
> structure or union
> mod_webapp.c:401: warning: assignment makes pointer from integer without a
> cast
> mod_webapp.c:404: request for member `module_index' in something not a
> structure or union
> mod_webapp.c: In function `wam_invoke':
> mod_webapp.c:424: request for member `module_index' in something not a
> structure or union
> mod_webapp.c:429: warning: passing arg 4 of `ap_log_error' makes integer from
> pointer without a cast
> mod_webapp.c:429: warning: passing arg 5 of `ap_log_error' from incompatible
> pointer type
> mod_webapp.c:436: too few arguments to function `ap_get_remote_host'
> mod_webapp.c:443: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:443: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:443: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:443: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:444: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:444: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:444: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:444: request for member `sin_port' in something not a structure
> or union
> mod_webapp.c:452: structure has no member named `user'
> mod_webapp.c:453: structure has no member named `ap_auth_type'
> mod_webapp.c:460: `array_header' undeclared (first use in this function)
> mod_webapp.c:460: `arr' undeclared (first use in this function)
> mod_webapp.c:461: `table_entry' undeclared (first use in this function)
> mod_webapp.c:461: `ele' undeclared (first use in this function)
> mod_webapp.c:461: parse error before `)'
> mod_webapp.c:465: `x' undeclared (first use in this function)
> mod_webapp.c: At top level:
> mod_webapp.c:492: parse error before `wam_handlers'
> mod_webapp.c:493: warning: braces around scalar initializer
> mod_webapp.c:493: warning: (near initialization for `wam_handlers[0]')
> mod_webapp.c:493: warning: initialization makes integer from pointer without a
> cast
> mod_webapp.c:493: warning: excess elements in scalar initializer
> mod_webapp.c:493: warning: (near initialization for `wam_handlers[0]')
> mod_webapp.c:494: warning: braces around scalar initializer
> mod_webapp.c:494: warning: (near initialization for `wam_handlers[1]')
> mod_webapp.c:494: warning: initialization makes integer from pointer without a
> cast
> mod_webapp.c:495: warning: data definition has no type or storage class
> mod_webapp.c:498: parse error before `webapp_module'
> mod_webapp.c:499: `this_module_needs_to_be_ported_to_apache_2_0' undeclared
> here (not in a function)
> mod_webapp.c:499: initializer element is not constant
> mod_webapp.c:499: (near initialization for `webapp_module')
> mod_webapp.c:500: warning: excess elements in scalar initializer
> mod_webapp.c:500: warning: (near initialization for `webapp_module')
> mod_webapp.c:501: warning: excess elements in scalar initializer
> mod_webapp.c:501: warning: (near initialization for `webapp_module')
> mod_webapp.c:502: warning: excess elements in scalar initializer
> mod_webapp.c:502: warning: (near initialization for `webapp_module')
> mod_webapp.c:503: warning: excess elements in scalar initializer
> mod_webapp.c:503: warning: (near initialization for `webapp_module')
> mod_webapp.c:504: warning: excess elements in scalar initializer
> mod_webapp.c:504: warning: (near initialization for `webapp_module')
> mod_webapp.c:505: warning: excess elements in scalar initializer
> mod_webapp.c:505: warning: (near initialization for `webapp_module')
> mod_webapp.c:506: warning: excess elements in scalar initializer
> mod_webapp.c:506: warning: (near initialization for `webapp_module')
> mod_webapp.c:507: warning: excess elements in scalar initializer
> mod_webapp.c:507: warning: (near initialization for `webapp_module')
> mod_webapp.c:508: warning: excess elements in scalar initializer
> mod_webapp.c:508: warning: (near initialization for `webapp_module')
> mod_webapp.c:509: warning: excess elements in scalar initializer
> mod_webapp.c:509: warning: (near initialization for `webapp_module')
> mod_webapp.c:510: warning: excess elements in scalar initializer
> mod_webapp.c:510: warning: (near initialization for `webapp_module')
> mod_webapp.c:511: warning: excess elements in scalar initializer
> mod_webapp.c:511: warning: (near initialization for `webapp_module')
> mod_webapp.c:512: warning: excess elements in scalar initializer
> mod_webapp.c:512: warning: (near initialization for `webapp_module')
> mod_webapp.c:513: warning: excess elements in scalar initializer
> mod_webapp.c:513: warning: (near initialization for `webapp_module')
> mod_webapp.c:514: warning: excess elements in scalar initializer
> mod_webapp.c:514: warning: (near initialization for `webapp_module')
> mod_webapp.c:515: warning: excess elements in scalar initializer
> mod_webapp.c:515: warning: (near initialization for `webapp_module')
> mod_webapp.c:516: warning: excess elements in scalar initializer
> mod_webapp.c:516: warning: (near initialization for `webapp_module')
> mod_webapp.c:518: warning: excess elements in scalar initializer
> mod_webapp.c:518: warning: (near initialization for `webapp_module')
> mod_webapp.c:518: warning: data definition has no type or storage class
> make: *** [mod_webapp.lo] Error 1