Skip to content

build njs 0.2.0 with nginx 1.12.2 error: 'NGX_HTTP_SUBREQUEST_BACKGROUND' undeclared #15

@yongzhang

Description

@yongzhang

nginx version: 1.12.2
njs version: 0.2.0

./auto/configure --add-dynamic-module=/nginxmodules/njs/nginx

error:

	/nginxmodules/njs/nginx/ngx_http_js_module.c
/nginxmodules/njs/nginx/ngx_http_js_module.c: In function 'ngx_http_js_subrequest':
/nginxmodules/njs/nginx/ngx_http_js_module.c:1806:13: error: 'NGX_HTTP_SUBREQUEST_BACKGROUND' undeclared (first use in this function)
     flags = NGX_HTTP_SUBREQUEST_BACKGROUND;
             ^
/nginxmodules/njs/nginx/ngx_http_js_module.c:1806:13: note: each undeclared identifier is reported only once for each function it appears in
objs/Makefile:2680: recipe for target 'objs/addon/nginx/ngx_http_js_module.o' failed
make[1]: Leaving directory '/nginxmodules/nginx'
make[1]: *** [objs/addon/nginx/ngx_http_js_module.o] Error 1
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions