|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
>>> 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:
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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. |
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
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?
__________________
Amen |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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. |
|
|
|
|
|
#5 | |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
Quote:
yep, that part installed fine...
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
I don't see anything for it in /usr/local though...
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
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*
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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? |
|
|
|
|
|
#9 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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 |
|
|
|
|
|
#10 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
I'm trying to install the apache module...
AMD Duron - 1Ghz - CPanel - 20GB HD - 512 MB RAM
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#11 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
yup... I've got all those files... maybe it still installed regardless all the errors it gave me...
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#12 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
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...
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#13 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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. |
|
|
|
|
|
#14 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
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...
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#15 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
I seem to be missing this file... mod_geoip.so
any idea what installation installs this?
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#16 |
|
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
whereis mod_geoip.so
reports no file found... where are you copying this from?
__________________
https://www.flow.page/savethechildren |
|
|
|
|
|
#17 |
|
Registered User
Join Date: Sep 2003
Posts: 95
|
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.
__________________
ICQ: 273796889 |
|
|
|