Code Monkey home page Code Monkey logo

Comments (5)

yaoweibin avatar yaoweibin commented on May 18, 2024

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.

tunylund avatar tunylund commented on May 18, 2024

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.

yaoweibin avatar yaoweibin commented on May 18, 2024

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.

tunylund avatar tunylund commented on May 18, 2024

Oh i thought I did it already. Maybe I messed it up somehow. I'll try again this evening.

from nginx_tcp_proxy_module.

tunylund avatar tunylund commented on May 18, 2024

Excellent it seems to work now. Thanks.

from nginx_tcp_proxy_module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.