Comments (5)
On 2011-9-17 16:22, Tuomas Nylund wrote:
Hi,
I'm trying to compile the module with nginx 1.0.4 on an arm box and I get the following error:
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 modules/nginx_tcp_proxy_module//modules -I modules/nginx_tcp_proxy_module/ -I objs -I src/http -I src/http/modules -I src/mail \ -o objs/addon/nginx_tcp_proxy_module/http_response_parse.o \ modules/nginx_tcp_proxy_module//http_response_parse.c cc1: warnings being treated as errors http_response_parse.c: In function 'http_parser_execute': http_response_parse.c:187: warning: comparison is always true due to limited range of data type http_response_parse.c:209: warning: comparison is always true due to limited range of data type make[1]: *** [objs/addon/nginx_tcp_proxy_module/http_response_parse.o] Error 1 make[1]: Leaving directory `/share/HDA_DATA/.qpkg/Optware/etc/nginx-1.0.4' make: *** [build] Error 2
Any idea what the error is about?
OK, Can you try the latest revision of this module?
It seems that the arm-gcc uses the 'unsigned char' to be default char type.
'Weibin Yao
from nginx_tcp_proxy_module.
Ok, I guess we got one step forward.
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 modules/nginx_tcp_proxy_module/modules -I modules/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_upstream.o \
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_connect':
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:355: error: 'ngx_peer_connection_t' has no member named 'check_index'
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:356: error: 'ngx_peer_connection_t' has no member named 'check_index'
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_finalize_session':
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:551: error: 'ngx_peer_connection_t' has no member named 'check_index'
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:552: error: 'ngx_peer_connection_t' has no member named 'check_index'
modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:553: error: 'ngx_peer_connection_t' has no member named 'check_index'
make[1]: *** [objs/addon/nginx_tcp_proxy_module/ngx_tcp_upstream.o] Error 1
make[1]: Leaving directory `/share/HDA_DATA/.qpkg/Optware/etc/nginx-1.1.3'
make: *** [build] Error 2
Now it fails with the above error. I tried with both nginx 1.0.4 and 1.1.3.
from nginx_tcp_proxy_module.
On 2011-9-18 17:29, Tuomas Nylund wrote:
Ok, I guess we got one step forward.
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 modules/nginx_tcp_proxy_module/modules -I modules/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_upstream.o \ modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_connect': modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:355: error: 'ngx_peer_connection_t' has no member named 'check_index' modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:356: error: 'ngx_peer_connection_t' has no member named 'check_index' modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c: In function 'ngx_tcp_upstream_finalize_session': modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:551: error: 'ngx_peer_connection_t' has no member named 'check_index' modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:552: error: 'ngx_peer_connection_t' has no member named 'check_index' modules/nginx_tcp_proxy_module/ngx_tcp_upstream.c:553: error: 'ngx_peer_connection_t' has no member named 'check_index' make[1]: *** [objs/addon/nginx_tcp_proxy_module/ngx_tcp_upstream.o] Error 1 make[1]: Leaving directory `/share/HDA_DATA/.qpkg/Optware/etc/nginx-1.1.3' make: *** [build] Error 2
Now it fails with the above error. I tried with both nginx 1.0.4 and 1.1.3.
You should install the extra patch with this module:
patch -p1< /path/to/nginx_tcp_proxy_module/tcp.patch
See the README of this module. Thanks.
Weibin Yao
from nginx_tcp_proxy_module.
Oh i thought I did it already. Maybe I messed it up somehow. I'll try again this evening.
from nginx_tcp_proxy_module.
Excellent it seems to work now. Thanks.
from nginx_tcp_proxy_module.
Related Issues (20)
- What is the tcp proxy's strategy?
- 期待仿照http mirror功能有tcp mirror功能
- gcc 7 failure with -Werror=implicit-fallthrough=
- Tengine 2.2.2 编译报错
- Make fails for nginx-1.15.0 HOT 6
- Doesnt work with recent NGINX builds
- make build error with nginx 1.14.2 HOT 3
- config ?
- The problem when building with nginx-1.14.2 ./configure with --with-threads make error: ‘ngx_event_t’ has no member named ‘lock’
- 在nginx最新版的1.15.9版本上编译报错!找了很多资料都无法解决! HOT 7
- src/http/ngx_http_upstream_round_robin.h:62:37: error: duplicate member ‘check_index’
- nginx: [emerg] "check_shm_size" directive is duplicate
- make error
- Centos7-2009(内核:3.10.0-1160.el7)nginx-1.20.1 + nginx_tcp_proxy_module-0.4.5编译时报错
- nginx 1.20.2 版本编译错误 HOT 3
- server支持配置域名吗 HOT 6
- compile failed.how to resolve it? HOT 3
- Compilation fails with Nginx 1.23 HOT 4
- how to ws to proxy tcp socket?
- FTP proxy configuration in virtual host
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx_tcp_proxy_module.