Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘pcre_malloc’ undeclared on make modules #264

Closed
navotera opened this issue Jan 12, 2022 · 2 comments
Closed

‘pcre_malloc’ undeclared on make modules #264

navotera opened this issue Jan 12, 2022 · 2 comments

Comments

@navotera
Copy link

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
Copy link
Collaborator

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

@navotera
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants