![]() |
>>> Geoip >>>
anyone get this installed without errors?
root@srv01 [/tmp/mod_geoip_1.2.3]# apxs -cia -I/usr/local/include -L/usr/local/lib -lGeoIP mod_geoip.c /usr/lib/httpd/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/kerberos/include -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -DNO_DBM_REWRITEMAP -I/usr/include/httpd -I/usr/local/include -c -o mod_geoip.lo mod_geoip.c && touch mod_geoip.slo mod_geoip.c:108: parse error before "geoip_module" mod_geoip.c:108: warning: data definition has no type or storage class mod_geoip.c:110: parse error before "proxy_add_uri_module" mod_geoip.c:110: warning: data definition has no type or storage class mod_geoip.c:121: parse error before '*' token mod_geoip.c: In function `geoip_server_config': mod_geoip.c:122: `p' undeclared (first use in this function) mod_geoip.c:122: (Each undeclared identifier is reported only once mod_geoip.c:122: for each function it appears in.) mod_geoip.c:122: warning: initialization makes pointer from integer without a cast mod_geoip.c: In function `geoip_enable': mod_geoip.c:138: request for member `module_index' in something not a structure or union mod_geoip.c: In function `geoip_set_filename': mod_geoip.c:146: request for member `module_index' in something not a structure or union mod_geoip.c: In function `geoip_set_output': mod_geoip.c:164: request for member `module_index' in something not a structure or union mod_geoip.c:176: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast mod_geoip.c:176: warning: passing arg 5 of `ap_log_error' from incompatible pointer type mod_geoip.c: In function `geoip_set_flags': mod_geoip.c:184: request for member `module_index' in something not a structure or union mod_geoip.c: At top level: mod_geoip.c:192: warning: initialization from incompatible pointer type mod_geoip.c:194: warning: initialization from incompatible pointer type mod_geoip.c:196: warning: initialization from incompatible pointer type mod_geoip.c:198: warning: initialization from incompatible pointer type mod_geoip.c: In function `geoip_post_read_request': mod_geoip.c:204: request for member `module_index' in something not a structure or union mod_geoip.c:229: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast mod_geoip.c:229: warning: passing arg 5 of `ap_log_error' from incompatible pointer type mod_geoip.c:237: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast mod_geoip.c:237: warning: passing arg 5 of `ap_log_error' from incompatible pointer type mod_geoip.c:237: too few arguments to function `ap_log_error' mod_geoip.c: At top level: mod_geoip.c:331: parse error before "pool" mod_geoip.c: In function `geoip_child_exit': mod_geoip.c:333: `r' undeclared (first use in this function) mod_geoip.c:333: request for member `module_index' in something not a structure or union mod_geoip.c: At top level: |
Have you installed the latest GeoIP C library and is it installed under /usr/local?
http://www.maxmind.com/app/c I just tried to compile the latest mod_geoip with an old library, but it failed. Not the same error as yours, but an error at least. |
Can somone show me where to get teh latest "mod_geoip" and some directions for its use.
Or is the mod included inthe regular geoIP package? |
http://www.maxmind.com/app/linux
Links to C lib, mod_geoip, Perl mod, PHP mod and everything else you need. There's a README and INSTALL inside all packages. |
Quote:
yep, that part installed fine... |
I don't see anything for it in /usr/local though...
|
oh, i found some stuff in the bin...
drwxr-xr-x 2 root root 4096 Oct 19 21:57 ./ drwxr-xr-x 17 root root 4096 Oct 17 19:06 ../ -rwxr-xr-x 1 root root 28303 Oct 19 21:57 geoipexport* -rwxr-xr-x 1 root root 23506 Oct 19 21:57 geoipexportlocations* -rwxr-xr-x 1 root root 23519 Oct 19 21:57 geoiplookup* -rwxr-xr-x 1 root root 31513 Oct 19 21:57 geoipupdate* -rwxr-xr-x 1 root root 664 Oct 2 19:03 pear* lrwxrwxrwx 1 root root 13 Oct 2 19:20 perl -> /usr/bin/perl* -rwxr-xr-x 1 root root 5417818 Oct 2 19:03 php* -rwxr-xr-x 1 root root 691 Oct 2 19:03 php-config* -rwxr-xr-x 1 root root 593 Oct 2 19:03 phpextdist* -rwxr-xr-x 1 root root 1669 Oct 2 19:03 phpize* |
I just tried a C lib version 1.3 and mod_geoip version 1.2.3 installation and it worked fine.
What kind of machine are you on and what OS/distribution is installed on it? |
That's the way it's supposed to be.
You should have these files.... /usr/local/include/GeoIP*.h /usr/local/lib/libGeoIP* /usr/local/bin/geoip* /usr/local/share/GeoIP/GeoIP.dat |
I'm trying to install the apache module...
AMD Duron - 1Ghz - CPanel - 20GB HD - 512 MB RAM |
yup... I've got all those files... maybe it still installed regardless all the errors it gave me...
|
hmm... only I don't see the changes it was supposed to make to my httpd.conf
I'll add them in there and see if it works... |
If it got installed the last two lines when you ran apxs -cia ..... should say
cp mod_geoip.so /usr/lib/apache/mod_geoip.so chmod 755 /usr/lib/apache/mod_geoip.so The paths may be different. I'm on my way to bed right now, I'll check out this thread again tomorrow. |
nope...
LoadModule geoip_module /usr/lib/apache/mod_geoip.so GeoIPEnable On AddModule mod_geoip.c I added those lines and couldn't restart apache... |
I seem to be missing this file... mod_geoip.so
any idea what installation installs this? |
whereis mod_geoip.so
reports no file found... where are you copying this from? |
You can do a 'locate mod_geoip' or if you don't have an locate database, try 'find / -iname "*geoip*" -print'
Are you sure it even compiled? You should have mod_geoip.so in the directory you compiled it before you do a 'make install', which will then just copy it to whereever apxs told it was the apache path. From the compilation errors, it looks like the GeoIP library isn't installed because it can't find some geoip structure or class...though that probably should come out as a linker error. mod_geoip.c:108: parse error before "geoip_module" mod_geoip.c:108: warning: data definition has no type or storage class I'm probably not going to check this thread again, but give me a shout on ICQ if you still got a prob. |
| All times are GMT -7. The time now is 08:14 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123