flant/nginx-http-rdns

nginx 1.5.10 error

Pickuper opened this issue · 3 comments

Hi!

There are some error while compiling mainline nginx 1.5.10:
...
../modules/nginx-http-rdns/ngx_http_rdns_module.c: In function ‘resolver_handler’:
../modules/nginx-http-rdns/ngx_http_rdns_module.c:513: error: incompatible types when assigning to type ‘ngx_addr_t’ from type ‘in_addr_t’
../modules/nginx-http-rdns/ngx_http_rdns_module.c:514: error: ‘ngx_resolver_ctx_t’ has no member named ‘type’
../modules/nginx-http-rdns/ngx_http_rdns_module.c: In function ‘dns_request’:
../modules/nginx-http-rdns/ngx_http_rdns_module.c:697: error: ‘ngx_resolver_ctx_t’ has no member named ‘type’
../modules/nginx-http-rdns/ngx_http_rdns_module.c: In function ‘dns_handler’:
../modules/nginx-http-rdns/ngx_http_rdns_module.c:752: error: invalid operands to binary == (have ‘ngx_addr_t’ and ‘in_addr_t’)
make[1]: *** [objs/addon/nginx-http-rdns/ngx_http_rdns_module.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx/nginx-1.5.10'
make: *** [build] Error 2

Confirming. I have this error too.

It breaks starting with nginx 1.5.8. Seem the resolver API has changed

Fixed in a2fbf72