Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Howto set geoip_country for IPv4 and IPv6 databases?

$
0
0
Ruslan Ermilov Wrote:
-------------------------------------------------------
> On Tue, Apr 30, 2013 at 09:03:20AM -0400, Rancor wrote:
>
> nginx detects the IPv6 support in libgeoip by trying to compile
> the following code snippet:
>
> #include <stdio.h>
> #include <GeoIP.h>
>
> int
> main(void)
> {
> printf("%d\n", GEOIP_CITY_EDITION_REV0_V6);
> return (0);
> }
>
> Does it compile OK on your system?
>

Hi,

thanks again for your reply. The code above doesn't compile on my system:

test.c: In function ‘main’:
test.c:7: error: ‘GEOIP_CITY_EDITION_REV0_V6’ undeclared (first use in this function)
test.c:7: error: (Each undeclared identifier is reported only once
test.c:7: error: for each function it appears in.)

Seems that the libgeoip1 in debian squeeze in version 1.4.7~beta6+dfsg-1 doesn't support this. Will test this again when wheezy is released at the next weekend.

Viewing all articles
Browse latest Browse all 53287


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>