Answer the question
In order to leave comments, you need to log in
Build nginx error how to overcome?
Good afternoon.
I decided to build Nginx 1.11.4 (with version 1.10 as well) by adding one module. make error:
/njs/nginx/ngx_stream_js_module.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngx_stream_next_filter’
cc1: warnings being treated as errors
/njs/nginx/ngx_stream_js_module.c: In function ‘ngx_stream_js_body_filter’:
/njs/nginx/ngx_stream_js_module.c:456: error: implicit declaration of function ‘ngx_stream_next_filter’
/njs/nginx/ngx_stream_js_module.c: In function ‘ngx_stream_js_init’:
/njs/nginx/ngx_stream_js_module.c:1147: error: ‘ngx_stream_next_filter’ undeclared (first use in this function)
/njs/nginx/ngx_stream_js_module.c:1147: error: (Each undeclared identifier is reported only once
/njs/nginx/ngx_stream_js_module.c:1147: error: for each function it appears in.)
/njs/nginx/ngx_stream_js_module.c:1147: error: ‘ngx_stream_top_filter’ undeclared (first use in this function)
/njs/nginx/ngx_stream_js_module.c:1152: error: ‘ngx_stream_core_main_conf_t’ has no member named ‘phases’
/njs/nginx/ngx_stream_js_module.c:1152: error: ‘NGX_STREAM_ACCESS_PHASE’ undeclared (first use in this function)
/njs/nginx/ngx_stream_js_module.c:1157: error: assignment from incompatible pointer type
/njs/nginx/ngx_stream_js_module.c:1159: error: ‘ngx_stream_core_main_conf_t’ has no member named ‘phases’
/njs/nginx/ngx_stream_js_module.c:1159: error: ‘NGX_STREAM_PREREAD_PHASE’ undeclared (first use in this function)
/njs/nginx/ngx_stream_js_module.c:1164: error: assignment from incompatible pointer type
make[1]: *** [objs/addon/nginx/ngx_stream_js_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/nginx-1.11.4'
make: *** [build] Error 2
Answer the question
In order to leave comments, you need to log in
The path to the solution was found.
As a result, I downloaded hg.nginx.org/njs/archive/cfa17c3e25da.tar.gz - this version.
Unpacked, configure, make.
With this version, the nginx build was successful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question