最近因为chrome 升级到117版本以后不支持sha-1签名算法,导致使用chrome浏览器的用户访问不了一些网站,用户通过CDN访问有问题,需要升级cdn(使用Ttengine2.1.1版本)支持TLSv1.3 协议,选用Ttengine-3.0.0来进行编译升级,lua模块版本是lua-nginx-module-0.10.25 在编译过程发生了一个错误信息:
modules/ngx_http_lua_module/src/api/ngx_http_lua_api.h:24: error: redefinition of typedef ‘ngx_http_lua_co_ctx_t’
modules/ngx_http_lua_module/src/ngx_http_lua_common.h:160: note: previous declaration of ‘ngx_http_lua_co_ctx_t’ was here
make[1]: *** [objs/addon/src/ngx_http_lua_log.o] Error 1
解决方法:
编辑打开 ngx_http_lua_module/src/api/ngx_http_lua_api.h
注释typedef struct ngx_http_lua_co_ctx_s ngx_http_lua_co_ctx_t; 这行再进行编译,问题解决。