openresty / stream-lua-nginx-module

Embed the power of Lua into NGINX TCP/UDP servers
BSD 2-Clause "Simplified" License
727 stars 198 forks source link

tha lastest openresty and stream-lua-nginx-module ,has no member named ‘privileged_agent_connections’ #288

Open tomhunts opened 2 years ago

tomhunts commented 2 years ago

hello, i use the latest openresty is openresty-1.19.9.1 and the latest of stream-lua-nginx-module in stream-lua-nginx-module-0.0.11rc1

this is my configure command

./configure --prefix=/usr/local/openresty --with-luajit --without-http_redis2_module --with-http_iconv_module --with-stream --add-module=../stream-lua-nginx-module-0.0.11rc1 

the configure is ok but the make takes same error issues/258

/home/ubuntu/nginx-test/openrestry/openresty-1.19.9.1/../stream-lua-nginx-module-0.0.11rc1/src/ngx_stream_lua_worker.c: In function ‘ngx_stream_lua_ffi_enable_privileged_agent’:
/home/ubuntu/nginx-test/openrestry/openresty-1.19.9.1/../stream-lua-nginx-module-0.0.11rc1/src/ngx_stream_lua_worker.c:124:8: error: ‘ngx_core_conf_t {aka struct <anonymous>}’ has no member named ‘privileged_agent_connections’
ccf->privileged_agent_connections = connections;
        ^
objs/Makefile:3278: recipe for target 'objs/addon/src/ngx_stream_lua_worker.o' failed
make[2]: *** [objs/addon/src/ngx_stream_lua_worker.o] Error 1
make[2]: Leaving directory '/home/ubuntu/nginx-test/openrestry/openresty-1.19.9.1/build/nginx-1.19.9'
Makefile:10: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/home/ubuntu/nginx-test/openrestry/openresty-1.19.9.1/build/nginx-1.19.9'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

is this bugfixed? thank you help.

zhuizhuhaomeng commented 2 years ago

the openresty-1.19.9.1 do not include the latest patch in https://github.com/openresty/openresty/patches

you need to create tarball yourself via https://github.com/openresty/openresty/blob/master/util/mirror-tarballs