httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Humphrey Cheung" <h...@not5150.com>
Subject RE: [users@httpd] APR identifiers unrecognized for Apache Module Development
Date Mon, 25 Aug 2003 07:17:51 GMT
Damn... our names are so close :)

Humphrey Cheung
www.not5150.com

-----Original Message-----
From: Cheng Humphrey [mailto:cck_hy@hotmail.com] 
Sent: Sunday, August 24, 2003 10:41 PM
To: users@httpd.apache.org
Subject: [users@httpd] APR identifiers unrecognized for Apache Module
Development

Hi,

I am now facing a very silly problem in installing an Apache module. I
just don't know the source of error. But it seems that the compiler
can't parse the identifiers like "apr_pool_t", "apr_status_t", etc
although I have included those standard header files for Apache
(httpd.h, http_core.h, etc.) at the beginning of the module source file.
Would any of you kindly tell me what goes wrong? Thanks in advance!

Regards


[root@gary mod_geoip2_1.0.6]# apxs -i -a -L/usr/local/lib
-I/usr/local/include -lGeoIP -c mod_geoip.c

gcc -DLINUX=22 -DEAPI -DEAPI_MM -O2 -march=i386 -mcpu=i686 -fPIC
-DEAPI_MM_CORE_PATH=/var/run/httpd.mm -fpic -DSHARED_MODULE
-I/usr/include/apache -I/usr/local/include  -c mod_geoip.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
mod_geoip.c:90: parse error before "geoip_cleanup"
mod_geoip.c: In function `geoip_cleanup':
mod_geoip.c:94: `APR_SUCCESS' undeclared (first use in this function)
mod_geoip.c:94: (Each undeclared identifier is reported only once
mod_geoip.c:94: for each function it appears in.)
mod_geoip.c: At top level:
mod_geoip.c:98: parse error before '*' token
mod_geoip.c: In function `geoip_child_init':
mod_geoip.c:103: `s' undeclared (first use in this function)
mod_geoip.c:118: `p' undeclared (first use in this function)
mod_geoip.c: In function `geoip_post_read_request':
mod_geoip.c:151: warning: passing arg 5 of `ap_log_rerror' from
incompatible pointer type
mod_geoip.c: At top level:
mod_geoip.c:201: parse error before '*' token
mod_geoip.c: In function `make_geoip':
mod_geoip.c:205: `p' undeclared (first use in this function)
mod_geoip.c: At top level:
mod_geoip.c:214: initializer element is not constant
mod_geoip.c:214: (near initialization for `geoip_cmds[0].name')
mod_geoip.c:215: initializer element is not constant
mod_geoip.c:215: (near initialization for `geoip_cmds[0].func')
mod_geoip.c:216: warning: braces around scalar initializer
mod_geoip.c:216: warning: (near initialization for
`geoip_cmds[0].cmd_data')
mod_geoip.c:217: initializer element is not constant
mod_geoip.c:217: (near initialization for `geoip_cmds[0]')
mod_geoip.c:220: parse error before '*' token
mod_geoip.c: In function `geoip_register_hooks':
mod_geoip.c:222: `APR_HOOK_MIDDLE' undeclared (first use in this
function)
mod_geoip.c: At top level:
mod_geoip.c:229: `STANDARD20_MODULE_STUFF' undeclared here (not in a
function)
mod_geoip.c:229: initializer element is not constant
mod_geoip.c:229: (near initialization for `geoip_module.version')
mod_geoip.c:230: warning: initialization makes integer from pointer
without a cast
mod_geoip.c:231: warning: initialization makes integer from pointer
without a cast
mod_geoip.c:232: warning: initialization from incompatible pointer type
mod_geoip.c:234: warning: initialization from incompatible pointer type
mod_geoip.c:236: warning: initialization makes integer from pointer
without a cast
apxs:Break: Command failed with rc=1

_________________________________________________________________
Hotmail Extra Storage׌@10MB ~⃦gՈՈ
http://join.msn.com/?pgmarket=zh-hk 


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message