- 积分
 - 117977
 
- 威望
 -  
 
- 金钱
 -  
 
- 注册时间
 - 2009-4-24
 
- 在线时间
 -  小时
 
- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
 
 
发表于 2023-1-9 13:24:23
|
显示全部楼层
 
 
 
        /root/lnmp1.9/src/lua-nginx-module-0.10.14/src/ngx_http_lua_headers_in.c 
 
In file included from /usr/include/dlfcn.h:24, 
 
                 from src/os/unix/ngx_linux_config.h:58, 
 
                 from src/core/ngx_config.h:26, 
 
                 from /root/lnmp1.9/src/lua-nginx-module-0.10.14/src/ddebug.h:11, 
 
                 from /root/lnmp1.9/src/lua-nginx-module-0.10.14/src/ngx_http_lua_headers_in.c:10: 
 
/root/lnmp1.9/src/lua-nginx-module-0.10.14/src/ngx_http_lua_headers_in.c:162:50: 错误:‘ngx_http_headers_in_t’ has no member named ‘cookies’; did you mean ‘cookie’? 
 
  162 |                  offsetof(ngx_http_headers_in_t, cookies), 
 
      |                                                  ^~~~~~~ 
 
make[1]: *** [objs/Makefile:1891:objs/addon/src/ngx_http_lua_headers_in.o] 错误 1  
这是因为nginx 1.23.* 版本的新变化特性导致的 
 
Changes with nginx 1.23.0                                        21 Jun 2022 
 
 
 
    *) Change in internal API: now header lines are represented as linked 
 
       lists.  
可以把这个patch打上就可以了 
 
 
 
lua-nginx-module-v0.10.22并未修复这个bug,只有他们git库里的是修复了的,按前面的patch打上补丁就可以 
lua-nginx-module-v0.10.15及以上版本都是还需要另外安装lua-resty-lrucache、lua-resty-core及openresty比较新的luajit2,如果需要的话我可以都更新到最新版的,因为加载了比较多的resty的模块性能方面不确定是否有影响 
 |   
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册  
 
x
 
 
 
 
 |