Closed
Description
Describe the bug
make
...
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -std=c++11 -I.. -g -I../others -fPIC -O3 -I../headers -DWITH_CURL -DWITH_GEOIP -I/usr/include -I/usr/include -DWITH_SSDEEP -I/usr/include -DWITH_LUA -DWITH_LUA_5_1 -I/usr/include -I/usr/include/libxml2 -DWITH_LIBXML2 -g -O2 -MT utils/libmodsecurity_la-regex.lo -MD -MP -MF utils/.deps/libmodsecurity_la-regex.Tpo -c -o utils/libmodsecurity_la-regex.lo `test -f 'utils/regex.cc' || echo './'`utils/regex.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -std=c++11 -I.. -g -I../others -fPIC -O3 -I../headers -DWITH_CURL -DWITH_GEOIP -I/usr/include -I/usr/include -DWITH_SSDEEP -I/usr/include -DWITH_LUA -DWITH_LUA_5_1 -I/usr/include -I/usr/include/libxml2 -DWITH_LIBXML2 -g -O2 -MT utils/libmodsecurity_la-regex.lo -MD -MP -MF utils/.deps/libmodsecurity_la-regex.Tpo -c utils/regex.cc -fPIC -DPIC -o utils/.libs/libmodsecurity_la-regex.o
utils/regex.cc: In member function ‘bool modsecurity::Utils::Regex::searchGlobal(const string&, std::vector<modsecurity::Utils::SMatchCapture>&) const’:
utils/regex.cc:150:28: error: ‘PCRE_NOTEMPTY_ATSTART’ was not declared in this scope
**pcre_options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED;
^~~~~~~~~~~~~~~~~~~~~
utils/regex.cc:150:28: note: suggested alternative: ‘PCRE_NOTEMPTY’
pcre_options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED;
^~~~~~~~~~~~~~~~~~~~~
PCRE_NOTEMPTY**
make[3]: *** [Makefile:3221: utils/libmodsecurity_la-regex.lo] Error 1
make[3]: Leaving directory '/home/ModSecurity/src'
make[2]: *** [Makefile:3473: all-recursive] Error 1
make[2]: Leaving directory '/home/ModSecurity/src'
make[1]: *** [Makefile:1218: all] Error 2
make[1]: Leaving directory '/home/ModSecurity/src'
make: *** [Makefile:1029: all-recursive] Error 1
utils/regex.cc:150:28: error: ‘PCRE_NOTEMPTY_ATSTART’ was not declared in this scope
**pcre_options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED;
^~~~~~~~~~~~~~~~~~~~~
utils/regex.cc:150:28: note: suggested alternative: ‘PCRE_NOTEMPTY’
pcre_options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED;
^~~~~~~~~~~~~~~~~~~~~
PCRE_NOTEMPTY**
Info
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)
OS - Centos 6.8
scl enable devtoolset-8 bash
git clone --branch v3/master
On ubuntu assembled without problems. On centos 6 - problems
Metadata
Metadata
Assignees
Labels
No labels