yaoweibin / nginx_tcp_proxy_module

add the feature of tcp proxy with nginx, with health check and status monitor
http://yaoweibin.github.com/nginx_tcp_proxy_module
1.64k stars 365 forks source link

Compilation errors #85

Closed kevzettler closed 10 years ago

kevzettler commented 10 years ago

Using nginx version 1.5.8

from make

stderr: /tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c: In function 'ngx_tcp_add_addrs':
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: passing argument 2 of 'ngx_sock_ntop' makes integer from pointer without a cast [-Werror]
src/core/ngx_inet.h:110:8: note: expected 'socklen_t' but argument is of type 'u_char *'
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: passing argument 3 of 'ngx_sock_ntop' makes pointer from integer without a cast [-Werror]
src/core/ngx_inet.h:110:8: note: expected 'u_char *' but argument is of type 'long unsigned int'
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: too few arguments to function 'ngx_sock_ntop'
src/core/ngx_inet.h:110:8: note: declared here
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/nginx_tcp_proxy_module-0.4.4/ngx_tcp.o] Error 1
make: *** [build] Error 2

from make install

stderr: /tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c: In function 'ngx_tcp_add_addrs':
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: passing argument 2 of 'ngx_sock_ntop' makes integer from pointer without a cast [-Werror]
src/core/ngx_inet.h:110:8: note: expected 'socklen_t' but argument is of type 'u_char *'
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: passing argument 3 of 'ngx_sock_ntop' makes pointer from integer without a cast [-Werror]
src/core/ngx_inet.h:110:8: note: expected 'u_char *' but argument is of type 'long unsigned int'
/tmp/nginx_tcp_proxy_module-0.4.4/ngx_tcp.c:476:52: error: too few arguments to function 'ngx_sock_ntop'
src/core/ngx_inet.h:110:8: note: declared here
cc1: all warnings being treated as errors
ghost commented 10 years ago

You should apply this patch: https://github.com/yaoweibin/nginx_tcp_proxy_module/commit/dcdfe9eb821a79bc35bf2a5f23d4f80486a0e7a8

kev-omniata-com commented 10 years ago

Will that be released any time soon?

yaoweibin commented 10 years ago

On 2014/1/14 2:20, kevin wrote:

Will that be released any time soon?

OK, I have released a new tag: https://github.com/yaoweibin/nginx_tcp_proxy_module/releases/tag/v0.4.5

Thank you.

Thanks -YWB

kevzettler commented 10 years ago

awesome thanks!