nginx pkg-oss 构建ngx_http_modsecurity_module问题

此问题并不只是ngx_http_modsecurity_module 的问题,类似直接使用了pcre的都会存在类似的问题

问题

ngx_http_modsecurity_module.c:103:9: error: ‘pcre_free’ undeclared (first use in this function)

解决方法

主要是因为nginx 1.21.5+ 默认使用pcre2 v10.x 做为pcre 的工具包,所以就会有问题
构建的时候禁用--without-pcre2 是一种方法

说明

目前并不是所有 nginx 模块都支持最新版本的nginx 了,而且有些是没有直接使用pcre 功能的。
目前openresty 以及modsecurity nginx 模块就存在此问题,类似的会不少, openresty 来说官方
已经在尝试修改了,

参考资料

https://nginx.org/en/CHANGES

posted on   荣锋亮  阅读(166)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-04-08 cube.js s3 FileRepository 新功能
2021-04-08 包装一个cube.js dremio 的驱动
2021-04-08 cube.js checkAuth 问题记录
2020-04-08 alpine-glibc docker镜像
2020-04-08 几个添加外部js文件到react 的方法
2019-04-08 使用fpm 软件包打包
2019-04-08 使用golang 编写postgresql 扩展

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示