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.65k stars 365 forks source link

Make error #19

Open ggd543 opened 13 years ago

ggd543 commented 13 years ago

After I do the ./configure --add-module=../yaoweibin-nginx_tcp_proxy_module-e312d8d/ --with-pcre=../pcre-8.11 --with-zlib=../zlib-1.2.5.1 --with-openssl=../openssl-1.0.0e and then make, I get the follow error at the end:

../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c: In function ‘ngx_tcp_upstream_connect’:
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:355: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:356: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c: In function ‘ngx_tcp_upstream_finalize_session’:
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:551: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:552: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:553: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
make[1]: *** [objs/addon/yaoweibin-nginx_tcp_proxy_module-e312d8d/ngx_tcp_upstream.o] 错误 1
make[1]: Leaving directory `/root/tmp/nginx-1.1.0'
make: *** [build] 错误 2

Note: I did not do a patch like patch -p1 < tcp.patch for there is an error for the patch operation . see issue: #17

yaoweibin commented 13 years ago

Hi,

You should do the patching first.

Go to the Nginx source directory, and do the patch work.

cd Nginx-source-file

patch -p1 < ../yaoweibin-nginx_tcp_proxy_module-e312d8d/tcp.patch

On 2011-11-16 12:25, 刘永健 wrote:

After I do the ./configure --add-module=../yaoweibin-nginx_tcp_proxy_module-e312d8d/ --with-pcre=../pcre-8.11 --with-zlib=../zlib-1.2.5.1 --with-openssl=../openssl-1.0.0e and then make, I get the follow error at the end:

../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c: In function ‘ngx_tcp_upstream_connect’:
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:355: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:356: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c: In function ‘ngx_tcp_upstream_finalize_session’:
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:551: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:552: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
../yaoweibin-nginx_tcp_proxy_module-e312d8d//ngx_tcp_upstream.c:553: 错误:‘ngx_peer_connection_t’ 没有名为 ‘check_index’ 的成员
make[1]: *** [objs/addon/yaoweibin-nginx_tcp_proxy_module-e312d8d/ngx_tcp_upstream.o] 错误 1
make[1]: Leaving directory `/root/tmp/nginx-1.1.0'
make: *** [build] 错误 2

Note: I did not do a patch like patch -p1< tcp.patch for there is an error for the patch operation . see issue: #17


Reply to this email directly or view it on GitHub: https://github.com/yaoweibin/nginx_tcp_proxy_module/issues/19

Weibin Yao