Hi,您好~ 我在使用luajit(LuaJIT-2.1.0-beta3)进行编译时报错, modules/ngx_http_lua_module/src/ngx_http_lua_headers.c: In function 'ngx_http_lua_ngx_header_set': modules/ngx_http_lua_module/src/ngx_http_lua_headers.c:709:9: error: implicit declaration of function 'luaL_getn' [-Werror=implicit-function-declaration] n = luaL_getn(L, 3); ^ cc1: all warnings being treated as errors make[1]: [objs/addon/src/ngx_http_lua_headers.o] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/tengine-2.2.0' make: [build] Error 2
我怀疑是代码中引用的函数有问题,我修改了文件:modules/ngx_http_lua_module/src/ngx_http_lua_headers.c第709行中的函数luaL_getn转为:lua_objlen重新编译即可,不清楚是不是因为luajit的问题,后续是否考虑到新的函数支持?