nginx-gridfs icon indicating copy to clipboard operation
nginx-gridfs copied to clipboard

Cannot compile with geoip module

Open ualtinok opened this issue 13 years ago • 5 comments

When configured nginx like this:

./configure --add-module=../nginx-gridfs/ --with-http_geoip_module

compiling nginx ends with an error:

            -o objs/src/http/modules/ngx_http_split_clients_module.o \
            src/http/modules/ngx_http_split_clients_module.c

src/http/modules/ngx_http_geoip_module.c:173: error: 'GeoIPRecord' has no member named 'dma_code' make[1]: *** [objs/src/http/modules/ngx_http_geoip_module.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/setups/nginx-1.0.11'

without nginx-gridfs or without geoip module it compiles successfully. (NGINX VERSION: nginx-1.0.11)

ualtinok avatar Jan 12 '12 17:01 ualtinok

I can reproduce this issue too, trying to build on Debian 6.0.3 x86_64

bodomic avatar Jan 14 '12 17:01 bodomic

I don't have the same error as above but it could be related. I'm using OS X 10.7 and trying to install nginx-1.3.0. When I try to install nginx-gridfs it fails at:

src/http/modules/ngx_http_geoip_module.c:197: error: ‘GeoIPRecord’ has no member named ‘dma_code’ gmake[1]: *** [objs/src/http/modules/ngx_http_geoip_module.o] Error 1

Once I remove the --add-module=/path/to/nginx-gridfs it compiles fine.

iamjstates avatar Jun 11 '12 13:06 iamjstates

Same happened for me with nginx-1.2.4. I disabled geoip module and it worked. Seems that both geoip module and gridfs cannot be enabled.

amartinj avatar Oct 24 '12 09:10 amartinj

This can be compiled together. Please reference this page: https://github.com/borisz/geoip-api-c

You will need to add -fms-extensions to your CFLAGS. This built geoip and gridfs together

bwellsnc avatar Feb 20 '13 18:02 bwellsnc

Thanks for the answer :+1:

amartinj avatar Feb 27 '13 03:02 amartinj