Project

General

Profile

Actions

Bug #1525

closed

Use pkg-config for libnetfilter_queue

Added by James Moe over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

suricata 2.0.8 (2.0.7, and probably earlier versions)
opensuse 13.2
linux 3.16.7-21-desktop x86_64

I added "--enable-nfqueue" to configure suricata for prevention. It spit out the errors shown below.

----[ configure excerpt ]----
checking libnetfilter_queue/libnetfilter_queue.h usability... no
checking libnetfilter_queue/libnetfilter_queue.h presence... no
checking for libnetfilter_queue/libnetfilter_queue.h... no
configure: error: libnetfilter_queue/libnetfilter_queue.h not found ...
----[ end ]----

libnetfilter_queue1 (v1.0.2-7) is installed. The header file is in </usr/include/libnetfilter_queue-1.0.2/libnetfilter_queue/>. Note that is placed in a version'd directory.

Further, <libnfnetlink/libnfnetlink.h> is included by libnetfilter_queue.h; the "libnfnetlink" headers are installed in <libnfnetlink-1.0.1/libnfnetlink/>. Even if <libnetfilter_queue/> is located as expected, a compilation fails because libnfnetlink.h cannot be found.

Using --with-libnetfilter_queue-includes does not work. After slogging through configure, it appears that "--with-libnetfilter_queue-includes" is not implemented. It is assigned a value from the command line, but is not otherwise used.

I filed a defect report with openSuse <https://bugzilla.suse.com/show_bug.cgi?id=940896&gt;. Their response is to use pkg-config. A sample usage is shown in <https://bugzilla.suse.com/show_bug.cgi?id=795968&gt;. Presumably using pkg-config would also resolve the issue with "libnfnetlink."

Actions

Also available in: Atom PDF