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 366 forks source link

Make fails for nginx-1.15.0 #165

Open vandamon opened 5 years ago

vandamon commented 5 years ago

Make fails for nginx-1.15.0.

I have followed the steps in the README for patch and add-module.

The error message is:

In file included from src/event/ngx_event_connect.c:11:0:
src/event/ngx_event_connect.h:51:38: error: duplicate member ‘check_index’
     ngx_uint_t                       check_index;
                                      ^
src/event/ngx_event_connect.h:53:38: error: duplicate member ‘check_index’
     ngx_uint_t                       check_index;
                                      ^
src/event/ngx_event_connect.h:55:38: error: duplicate member ‘check_index’
     ngx_uint_t                       check_index;
                                      ^
objs/Makefile:689: recipe for target 'objs/src/event/ngx_event_connect.o' failed
make[1]: *** [objs/src/event/ngx_event_connect.o] Error 1
make[1]: Leaving directory '/home/ubuntu/nginx-1.15.0'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
REPTILEHAUS commented 5 years ago

same issue

syy19940213 commented 5 years ago

you should use tcp_1_8.patch for patch

REPTILEHAUS commented 5 years ago

@syy19940213 I did. it didnt work

vandamon commented 5 years ago

Update: I had to go back to version 1.10 for the patch to work

REPTILEHAUS commented 5 years ago

Probably, but I cant downgrade. I need to stay as current as possible. any chance of updating it for latest nginx releases ?

vikramanity commented 5 years ago

You can try the latest NGINX with the stream module in place of tcp - http://nginx.org/en/docs/stream/ngx_stream_core_module.html