owasp-modsecurity / ModSecurity-nginx

ModSecurity v3 Nginx Connector
Apache License 2.0
1.49k stars 277 forks source link

‘pcre_malloc’ undeclared on make modules #264

Closed navotera closed 2 years ago

navotera commented 2 years ago

Hello I try to install the latest version of this repo by cloning the repo with git clone and with nginx 1.21.5 when I try to run 'make modules' command, I got this error :

error: ‘pcre_malloc’ undeclared (first use in this function); did you mean ‘old_pcre_malloc’? 78 | if (pcre_malloc != ngx_http_modsec_pcre_malloc) { | ^~~

Please give some suggestions Thank

defanator commented 2 years ago

@navotera please check #260 (long story short - use --without-pcre2 configure argument when building connector with nginx >= 1.21.5).

navotera commented 2 years ago

Thank you for your suggestion. It thankfully works without any problem 👍