# Nginx 0.8.53 geoip compilation issue

**URL:** <https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700>\
**Category:** NGINX\
**Created:** [November 26, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700 "2010-11-26T20:32:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 26, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700/1 "2010-11-26T20:32:19Z")

</div>

Hello,

When i try to compile geoip module with the latest development version  
of the nginx following warning/error occurs

```auto
src/http/modules/ngx_http_geoip_module.c:117: error: ‘GeoIPRecord’
has no member named ‘continent_code’
cc1: warnings being treated as errors
src/http/modules/ngx_http_geoip_module.c: In function
‘ngx_http_geoip_region_name_variable’:
src/http/modules/ngx_http_geoip_module.c:275: warning: implicit
declaration of function ‘GeoIP_region_name_by_code’
src/http/modules/ngx_http_geoip_module.c:275: warning: assignment makes
pointer from integer without a cast
make[1]: *** [objs/src/http/modules/ngx_http_geoip_module.o] Error 1
make[1]: Leaving directory `/root/nginx-0.8.53'
make: *** [build] Error 2
```

Any idea how to fix this ?

Thanks.

Posted at Nginx Forum:

> **[nginx 0.8.53 geoip compilation issue](https://forum.nginx.org/read.php?2,153558,153558#msg-153558)**
>
> Hello, When i try to compile geoip module with the latest development version of the nginx following warning/error occurs \[code\] src/http/modules/ngx\_http\_geoip\_module.c:117: error: ‘GeoIPRecord’ has no member named ‘continent\_code’ cc1: warnings b

---

<div class="post-metadata">

**Author:** ![st1905](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@st1905](https://www.ruby-forum.com/u/st1905)\
**Post date:** [November 26, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700/2 "2010-11-26T21:09:18Z")

</div>

After upgrading to the latest C api from maxmind, following is  
happening

```auto
src/os/unix/ngx_process.c:490: warning: `sys_errlist' is deprecated; use
`strerror' or `strerror_r' instead
src/os/unix/ngx_process.c:490: warning: `sys_nerr' is deprecated; use
`strerror' or `strerror_r' instead
objs/src/http/modules/ngx_http_geoip_module.o: In function
`ngx_http_geoip_region_name_variable':
src/http/modules/ngx_http_geoip_module.c:275: undefined reference to
`GeoIP_region_name_by_code'
```

Posted at Nginx Forum:

> **[Re: nginx 0.8.53 geoip compilation issue](https://forum.nginx.org/read.php?2,153558,153563#msg-153563)**
>
> Hello, When i try to compile geoip module with the latest development version of the nginx following warning/error occurs \[code\] src/http/modules/ngx\_http\_geoip\_module.c:117: error: ‘GeoIPRecord’ has no member named ‘continent\_code’ cc1: warnings b

---

<div class="post-metadata">

**Author:** ![st1905](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@st1905](https://www.ruby-forum.com/u/st1905)\
**Post date:** [November 27, 2010, 9:58am UTC](https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700/3 "2010-11-27T09:58:27Z")

</div>

On Fri, Nov 26, 2010 at 03:08:18PM -0500, st1905 wrote:

> After upgrading to the latest C api from maxmind, following is  
> happening
> 
> [code]  
> src/os/unix/ngx\_process.c:490: warning: `sys_errlist' is deprecated; use `strerror’ or `strerror_r' instead src/os/unix/ngx_process.c:490: warning: `sys\_nerr’ is deprecated; use  
> `strerror' or `strerror\_r’ instead

> **[A message “ ‘sys\_errlist’ is deprecated; use...](http://nginx.org/en/docs/sys_errlist.html)**

This issue will be fixed in upcoming 0.9.0.

> objs/src/http/modules/ngx\_http\_geoip\_module.o: In function  
> `ngx_http_geoip_region_name_variable': src/http/modules/ngx_http_geoip_module.c:275: undefined reference to `GeoIP\_region\_name\_by\_code’  
> [/code]

Strange, I’ve just upgraded GeoIP to 1.4.6 from 1.4.4 on my FreeBSD  
host:

> pkg\_info | grep GeoIP  
> GeoIP-1.4.6 Find the country that any IP address or hostname  
> originates

And nginx have been built without issues. Besides, there is  
GeoIP\_region\_name\_by\_code() function in lib GeoIP library:

> strings /usr/local/lib/libGeoIP.so | grep GeoIP\_region\_name\_by\_code  
> GeoIP\_region\_name\_by\_code

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![st1905](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@st1905](https://www.ruby-forum.com/u/st1905)\
**Post date:** [November 27, 2010, 12:12pm UTC](https://www.ruby-forum.com/t/nginx-0-8-53-geoip-compilation-issue/199700/4 "2010-11-27T12:12:28Z")

</div>

```auto
>strings /usr/local/lib/libGeoIP.so | grep GeoIP_region_name_by_code
GeoIP_region_name_by_code
```

After checking this i found two instances of geoip libraries installed  
on the system, so removed the old library and now nginx compiles, Thank  
you Igor.

Posted at Nginx Forum:

> **[Re: nginx 0.8.53 geoip compilation issue](https://forum.nginx.org/read.php?2,153558,153643#msg-153643)**
>
> Hello, When i try to compile geoip module with the latest development version of the nginx following warning/error occurs \[code\] src/http/modules/ngx\_http\_geoip\_module.c:117: error: ‘GeoIPRecord’ has no member named ‘continent\_code’ cc1: warnings b
