yaoweibin/nginx_tcp_proxy_module — Issue #26: Make error in 9677e00fa2
Author: NathanielKofalt
Created: 2012-03-09 08:51:21+00:00
State: open

In the latest commit to master, compilation fails:

```
/buildir/tcp/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_connect':
/buildir/tcp/ngx_tcp_upstream.c:355: error: 'ngx_peer_connection_t' has no member named 'check_index'
/buildir/tcp/ngx_tcp_upstream.c:356: error: 'ngx_peer_connection_t' has no member named 'check_index'
/buildir/tcp/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_finalize_session':
/buildir/tcp/ngx_tcp_upstream.c:551: error: 'ngx_peer_connection_t' has no member named 'check_index'
/buildir/tcp/ngx_tcp_upstream.c:552: error: 'ngx_peer_connection_t' has no member named 'check_index'
/buildir/tcp/ngx_tcp_upstream.c:553: error: 'ngx_peer_connection_t' has no member named 'check_index'
make[1]: *** [objs/addon/tcp/ngx_tcp_upstream.o] Error 1
make[1]: Leaving directory `/buildir/nginx'
make: *** [build] Error
```

I also tried v0.24, but received a similar build error:

```
/buildir/tcp/ngx_tcp_core_module.c: In function 'ngx_tcp_core_resolver':
/buildir/tcp/ngx_tcp_core_module.c:471: warning: passing argument 2 of 'ngx_resolver_create' from incompatible pointer type
src/core/ngx_resolver.h:137: note: expected 'struct ngx_str_t *' but argument is of type 'struct ngx_addr_t *'
/buildir/tcp/ngx_tcp_core_module.c:471: error: too few arguments to function 'ngx_resolver_create'
make[1]: *** [objs/addon/tcp/ngx_tcp_core_module.o] Error 1
make[1]: Leaving directory `/buildir/nginx'
make: *** [build] Error 2
```