yaoweibin/nginx_tcp_proxy_module — Issue #21: Make Error
Author: iwizardpro
Created: 2011-12-15 00:29:16+00:00
State: open

Hello,

I seem to be having a problem with compiling the latest version of nginx with your module.

-o objs/addon/nginx_tcp_proxy_module/ngx_tcp.o \
/opt/nginx_tcp_proxy_module/ngx_tcp.c
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /opt/nginx_tcp_proxy_module/modules -I /opt/nginx_tcp_proxy_module -I objs -I src/http -I src/http/modules -I src/mail \
-o objs/addon/nginx_tcp_proxy_module/ngx_tcp_core_module.o \
/opt/nginx_tcp_proxy_module/ngx_tcp_core_module.c
/opt/nginx_tcp_proxy_module/ngx_tcp_core_module.c: In function ‘ngx_tcp_core_resolver’:
/opt/nginx_tcp_proxy_module/ngx_tcp_core_module.c:471:5: error: passing argument 2 of ‘ngx_resolver_create’ from incompatible pointer type [-Werror]
src/core/ngx_resolver.h:136:17: note: expected ‘struct ngx_str_t *’ but argument is of type ‘struct ngx_addr_t *’
/opt/nginx_tcp_proxy_module/ngx_tcp_core_module.c:471:5: error: too few arguments to function ‘ngx_resolver_create’
src/core/ngx_resolver.h:136:17: note: declared here
cc1: all warnings being treated as errors

make[1]: *** [objs/addon/nginx_tcp_proxy_module/ngx_tcp_core_module.o] Error 1
make[1]: Leaving directory `/root/nginx-1.1.11'
make: *** [build] Error 2

OS: Ubuntu 11.10 64-bit
Nginx Version: 1.1.11
Patch Applied: Yes