[Geoip-apache] Problems in installing GeoIP Apache module
Brought to you by:
tjmather
From: Cheng H. <cc...@ho...> - 2003-08-26 09:44:07
|
Hi, I have successfully compiled and installed the GeoIP C Library. But unfortunately, when I proceed to install the GeoIP Apache module with the tool apxs, the following error occurs: [root@amazon mod_geoip2_1.0.6]# apxs -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:84: parse error before '*' token mod_geoip.c: In function `create_geoip_server_config': mod_geoip.c:86: `p' undeclared (first use in this function) mod_geoip.c:86: (Each undeclared identifier is reported only once mod_geoip.c:86: for each function it appears in.) mod_geoip.c:86: warning: return makes pointer from integer without a cast mod_geoip.c: At top level: mod_geoip.c:89: parse error before "geoip_cleanup" mod_geoip.c: In function `geoip_cleanup': mod_geoip.c:93: `APR_SUCCESS' undeclared (first use in this function) mod_geoip.c: At top level: mod_geoip.c:97: parse error before '*' token mod_geoip.c: In function `geoip_child_init': mod_geoip.c:102: `s' undeclared (first use in this function) mod_geoip.c:117: `p' undeclared (first use in this function) mod_geoip.c: In function `geoip_post_read_request': mod_geoip.c:150: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type mod_geoip.c: At top level: mod_geoip.c:200: parse error before '*' token mod_geoip.c: In function `make_geoip': mod_geoip.c:204: `p' undeclared (first use in this function) mod_geoip.c: At top level: mod_geoip.c:213: initializer element is not constant mod_geoip.c:213: (near initialization for `geoip_cmds[0].name') mod_geoip.c:214: initializer element is not constant mod_geoip.c:214: (near initialization for `geoip_cmds[0].func') mod_geoip.c:215: warning: braces around scalar initializer mod_geoip.c:215: warning: (near initialization for `geoip_cmds[0].cmd_data') mod_geoip.c:216: initializer element is not constant mod_geoip.c:216: (near initialization for `geoip_cmds[0]') mod_geoip.c:219: parse error before '*' token mod_geoip.c: In function `geoip_register_hooks': mod_geoip.c:221: `APR_HOOK_MIDDLE' undeclared (first use in this function) mod_geoip.c: At top level: mod_geoip.c:228: `STANDARD20_MODULE_STUFF' undeclared here (not in a function) mod_geoip.c:228: initializer element is not constant mod_geoip.c:228: (near initialization for `geoip_module.version') mod_geoip.c:229: warning: initialization makes integer from pointer without a cast mod_geoip.c:230: warning: initialization makes integer from pointer without a cast mod_geoip.c:231: warning: initialization from incompatible pointer type mod_geoip.c:233: warning: initialization from incompatible pointer type mod_geoip.c:235: warning: initialization makes integer from pointer without a cast apxs:Break: Command failed with rc=1 I have stuck with this problem for over a week and I just cannot even figure out the source of error. Could any of you kindly tell me what goes wrong? Thanks so much in advance :) Regards, _________________________________________________________________ Linguaphone : 學英語,免費學日語 http://go.msnserver.com/HK/30475.asp |