owasp-modsecurity / owasp-modsecurity/ModSecurity

how i can enable test utilitys at configure level with enable flag ?

Open
#3,318 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.x
Dominant language
C++
Stars
9.8k
Forks
1.8k
Avg merge
2h 46m
Merged PRs (30d)
1

Description

i cant find flags for test utitlitys inside configure flag with configure --help

i want compile benchmark.cc inside test/benchmark directory for some tests.

and --with-pcre2=path-to-my-optimized-lib not working as expected.

configure script found but spits error

ls -al /usr/local/nginx-dep/lib/
total 5672
drwxr-xr-x 3 root root    4096 Dec 18 00:34 .
drwxr-xr-x 6 root root    4096 Dec 18 00:34 ..
-rw-r--r-- 1 root root 1088694 Dec 18 00:34 libpcre2-16.a
-rwxr-xr-x 1 root root    1033 Dec 18 00:34 libpcre2-16.la
lrwxrwxrwx 1 root root      21 Dec 18 00:34 libpcre2-16.so -> libpcre2-16.so.0.13.0
lrwxrwxrwx 1 root root      21 Dec 18 00:34 libpcre2-16.so.0 -> libpcre2-16.so.0.13.0
-rwxr-xr-x 1 root root  873816 Dec 18 00:34 libpcre2-16.so.0.13.0
-rw-r--r-- 1 root root 1029534 Dec 18 00:34 libpcre2-32.a
-rwxr-xr-x 1 root root    1033 Dec 18 00:34 libpcre2-32.la
lrwxrwxrwx 1 root root      21 Dec 18 00:34 libpcre2-32.so -> libpcre2-32.so.0.13.0
lrwxrwxrwx 1 root root      21 Dec 18 00:34 libpcre2-32.so.0 -> libpcre2-32.so.0.13.0
-rwxr-xr-x 1 root root  812336 Dec 18 00:34 libpcre2-32.so.0.13.0
-rw-r--r-- 1 root root 1113670 Dec 18 00:34 libpcre2-8.a
-rwxr-xr-x 1 root root    1026 Dec 18 00:34 libpcre2-8.la
lrwxrwxrwx 1 root root      20 Dec 18 00:34 libpcre2-8.so -> libpcre2-8.so.0.13.0
lrwxrwxrwx 1 root root      20 Dec 18 00:34 libpcre2-8.so.0 -> libpcre2-8.so.0.13.0
-rwxr-xr-x 1 root root  822152 Dec 18 00:34 libpcre2-8.so.0.13.0
-rw-r--r-- 1 root root    8298 Dec 18 00:34 libpcre2-posix.a
-rwxr-xr-x 1 root root    1090 Dec 18 00:34 libpcre2-posix.la
lrwxrwxrwx 1 root root      23 Dec 18 00:34 libpcre2-posix.so -> libpcre2-posix.so.3.0.5
lrwxrwxrwx 1 root root      23 Dec 18 00:34 libpcre2-posix.so.3 -> libpcre2-posix.so.3.0.5
-rwxr-xr-x 1 root root   15992 Dec 18 00:34 libpcre2-posix.so.3.0.5
drwxr-xr-x 2 root root    4096 Dec 18 00:34 pkgconfig
./configure --prefix=/usr/local/modsecurity --with-maxmind=/usr/local/ --enable-pcre-study --enable-pcre-jit --with-pcre2=/usr/local/nginx-dep/lib/
configure: WARNING: unrecognized options: --enable-pcre-study, --enable-pcre-jit
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether g++ supports C++17 features with -std=c++17... yes
configure: Nothing about YAJL was informed during the configure phase. Trying to detect it on the platform...
configure: YAJL library was not found
configure: Nothing about GeoIP was informed during the configure phase. Trying to detect it on the platform...
configure: using GeoIP v1.6.12
configure: MaxMind headers found at: /usr/local//include
configure: MaxMind library found at: /usr/local//lib//libmaxminddb.so
configure: using MaxMind v
configure: Nothing about LMDB was informed during the configure phase. Trying to detect it on the platform...
*** LOOKING AT PATH:  /usr/lib
*** LOOKING AT PATH:  /usr/local/lib
*** LOOKING AT PATH:  /usr/local/liblmdb
*** LOOKING AT PATH:  /usr/local/lmdb
*** LOOKING AT PATH:  /usr/local
*** LOOKING AT PATH:  /opt/liblmdb
*** LOOKING AT PATH:  /opt/lmdb
*** LOOKING AT PATH:  /opt
*** LOOKING AT PATH:  /usr
*** LOOKING AT PATH:  /usr/lib64
*** LOOKING AT PATH:  /opt/local
configure: LMDB library was not found
*** LOOKING AT PATH:  /usr/lib
*** LOOKING AT PATH:  /usr/local/lib
*** LOOKING AT PATH:  /usr/local/fuzzy
*** LOOKING AT PATH:  /usr/local/libfuzzy
*** LOOKING AT PATH:  /usr/local
*** LOOKING AT PATH:  /opt
*** LOOKING AT PATH:  /usr
*** LOOKING AT PATH:  /usr/lib64
*** LOOKING AT PATH:  /opt/local
configure: SSDEEP library was not found
*** LOOKING AT PATH:  /usr/lib
*** LOOKING AT PATH:  /usr/local/lib
*** LOOKING AT PATH:  /usr/local/lib64
*** LOOKING AT PATH:  /usr/local/lua
*** LOOKING AT PATH:  /usr/local/liblua
*** LOOKING AT PATH:  /usr/local
*** LOOKING AT PATH:  /opt
*** LOOKING AT PATH:  /usr
*** LOOKING AT PATH:  /usr/lib64
*** LOOKING AT PATH:  /opt/local
*** LOOKING AT PATH:  /usr/lib/lua5.3/liblua
*** LOOKING AT PATH:  /usr/lib/lua5.2/liblua
configure: LUA library was not found
checking for libcurl config script... /usr/bin/curl-config
configure: curl VERSION: 8.11.1 
configure: curl LDADD: 
checking if libcurl is at least v... yes, 8.11.1 
checking if libcurl is linked with gnutls... no
configure: using curl v8.11.1 
checking for libxml2 >= 2.6.29 via pkg-config... found version 2.9.14
configure: using libxml2 v2.9.14
configure: pcre2 specified; omitting check for pcre
*** LOOKING AT PATH:  /usr/local/nginx-dep/lib/
configure: PCRE2 library found at: /usr/local/nginx-dep/lib///libpcre2-8.so
configure: error: PCRE2 was explicitly referenced but it was not found

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository's configure script and ./configure --help, then inspect the test/benchmark directory and benchmark.cc. Reproduce the reported command and trace the PCRE2 detection output, including the unrecognized test flags. Done means the intended test utility configuration and the supplied PCRE2 path behave as documented or the issue is clarified with the required invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.