-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PCRE2 support still requires PCRE1 #2966
Comments
Hello @zhaoshikui , Just checking my config.log from when the relevant testing was done and I can see:
... and a successful completion of the configure step. Moreover, the ModSecurity v2 message 'pcre library is required' was removed here: 8fc0b51 Could you please double-check what you've done? If you still see the same result, a more complete description of your build environment and steps to reproduce might be helpful. |
Compiling master on Rocky 9. pcre is still linked:
|
you mean the current mod_security2 master? With 2.9.7 on Debian 12 I get:
only pcre2 dependency, after commit 0539655. |
Yes, latest v2/master. |
My compilation parameters only added -- with pcre2 May be we can compile normally, but we cannot use it。 |
Thanks, all, for the various comments and observations. I cannot reproduce what has been described above. I mostly build in Ubuntu, and if pcre1 is not installed and Nevertheless, to whatever extent the current situation is causing difficulty or annoyance for anyone, I have created PR #2975 that will omit the check for pcre1 entirely if pcre2 is specified. Feel free to apply the PR if you find it helps you. I'm not sure that this will be merged immediately since this would break builds of the optional alp2 (I'm moderately sure that it is obsolete but ...) |
Thank you all. |
libmodsecurity 2.9.7 compiles fine using --with-pcre2 only when both pcre1 and pcre2 dev packages are installed, which is wrong...
Moreover, the resulting binary links against both libraries... which is further wrong.
ldd mod_security2.so |grep pcre
ldd: warning: you do not have execution permission for `./mod_security2.so'
libpcre.so.1 => not found
libpcre2-8.so.0 => /usr/lib64/libpcre2-8.so.0 (0x0000ffffb9194000)
...
If only pcre2 dev package is installed, it fails at ./configure --with-pcre2 saying:
checking for libpcre config script... no
configure: *** pcre library not found.
configure: error: pcre library is required
In other words, --with-pcre2 still requires pcre1 dev.
This question is the same as the previous one,however, this issue is not resolved in v2.9.7.
The text was updated successfully, but these errors were encountered: