Skip to content

ModSecurity2 v2.9.11 not working on RHEL 7 due to undefined symbol: pcre2_set_depth_limit #3417

@friesoft

Description

@friesoft

Describe the bug

ModSecurity 2.9.11 in combination with Apache httpd 2.4.64 doesn't start on RHEL 7 due to an undefined symbol "pcre2_set_depth_limit" of pcre2

RHEL 7 has the following rpm:
pcre2-10.23-2.el7.x86_64

But the missing symbol is nowhere to be found:

$ grep 'pcre2_set_depth_limit' /lib64/libpcre2-8.so.0.5.0
$ echo $?
1

Logs and dumps
Cannot load modules/mod_security2.so into server: /opt/apache/modules/mod_security2.so: undefined symbol: pcre2_set_depth_limit

To Reproduce

Compile modsecurity against RHEL 7 pcre2 and try to start apache httpd (also self compiled)

Expected behavior

Apache httpd shouldn't fail to start due to undefined symbols

Server (please complete the following information):

  • ModSecurity version (and connector): ModSecurity 2.9.11
  • WebServer: Apache httpd 2.4.64
  • OS (and distro): RHEL 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.xRelated to ModSecurity version 2.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions