nginx-1.9.11 (Patch to build rDNS module)

A. Schulze sca at andreasschulze.de
Tue Feb 9 21:31:44 UTC 2016


Roman Arutyunyan:

> On Tue, Feb 09, 2016 at 08:59:42PM +0100, A. Schulze wrote:
>>
>> Maxim Dounin:
>>
>> >Changes with nginx 1.9.11                                         
>> 09 Feb 2016
>> >
>> >    *) Feature: TCP support in resolver.
>>
>> the rDNS module (https://www.nginx.com/resources/wiki/modules/rdns/) don't
>> compile anymore
>>
>> cc -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
>> -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I
>> src/http -I src/http/modules -I src/http/v2 -I src/mail \
>>         -o objs/addon/nginx-http-rdns-20140411/ngx_http_rdns_module.o \
>>         ./nginx-http-rdns-20140411//ngx_http_rdns_module.c
>> ./nginx-http-rdns-20140411//ngx_http_rdns_module.c: In function
>> 'merge_loc_conf':
>> ./nginx-http-rdns-20140411//ngx_http_rdns_module.c:217:89: error:
>> 'ngx_resolver_t' has no member named 'udp_connections'
>>      if (conf->conf.enabled && ((core_loc_cf->resolver == NULL) ||
>> (core_loc_cf->resolver->udp_connections.nelts == 0))) {
>>                    ^
>> make[2]: *** [objs/addon/nginx-http-rdns-20140411/ngx_http_rdns_module.o]
>> Error 1
>
> "connections" should be used instead of "udp_connectionss"

Roman,

thanks for the hint. The attached patch solve at least the compile error.
(still untested if the module still work)

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-http-rdns-20140411.patch
Type: text/x-diff
Size: 717 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160209/8a6351ec/attachment.bin>


More information about the nginx mailing list