Description
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.