openSUSE tumbleweed 20250313
Linux 6.13.6-1-default x86_64
I unpacked Suricata 7.0.9 and ran configure as usual.
$ ./configure --enable-nfqueue
... bunch o' success ...
checking for pcre2_compile_8 in -lpcre2-8... no
ERROR! pcre2 library not found, go get it
from www.pcre.org. Or from packages:
Debian/Ubuntu: apt install libpcre2-dev
Fedora: dnf install pcre2-devel
CentOS/RHEL: yum install pcre2-devel
Libraries libpcre2-8-0, libpcre2-16-0, libpcre2-32-0, are installed.
Searching for pcre2-devel in opensuse’s repos failed; none are offered for any of the pcre2 modules.
I tried dnf and yum. They both core dumped.
I do not recall needing a “devel” package for Suricata. Is this a new requirement? Have I misread the error message?
I have the pcre2 source package. How do I extract the devel file(s)?
Since libpcre2-32-0 is already installed, try adding --with-libpcre2-libraries=/path/to/libdir and --with-libpcre2-includes=/path/to/include-dir to the configure line.
Perhaps they’re installed in nonstandard locations?
If this doesn’t help, please reply and post the snippet from config.log where the pcre2 components are probed (hint: search for pcre2_compile in config.log)
On a fresh Docker image of opensuse/tumbleweed:lastet which seems to be 20250321 based on /etc/os-release, a zypper install pcre2-devel finds and installs the package just fine. Maybe you’re missing a repo?
Huh! That worked today. I suppose the repo had been updated to include pcre2-devel since my last visit.
Alas! Now that I have all of the needed libraries, Suricata does not configure for NFQUEUE. I tried both ./configure and ./configure --enable-nfqueue. Both yield the result below. config.log (194.8 KB)
Suricata Configuration:
AF_PACKET support: yes
AF_XDP support: no
DPDK support: no
eBPF support: no
XDP support: no
PF_RING support: no
NFQueue support: no
NFLOG support: no
IPFW support: no
Netmap support: no
DAG enabled: no
Napatech enabled: no
The library support for netfilter (nfqueue) couldn’t be located – these lines are from config.log that you posted
configure:20311: checking for libnetfilter_queue
configure:20318: $PKG_CONFIG --exists --print-errors "libnetfilter_queue"
Package libnfnetlink was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnfnetlink.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnfnetlink', required by 'libnetfilter_queue', not found
configure:20321: $? = 1
configure:20335: $PKG_CONFIG --exists --print-errors "libnetfilter_queue"
Package libnfnetlink was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnfnetlink.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnfnetlink', required by 'libnetfilter_queue', not found
configure:20338: $? = 1
configure:20352: result: no
Package 'libnfnetlink', required by 'libnetfilter_queue', not found
I had been searching for “nfqueue” and so missed “netfilter.” I installed libnfnetlink and libnetfilter_queue. I have achieved the coveted confirmation for enabling NFQueue: NFQueue support: yes
Thank you.