[FS#276] libpcap 1.7.4: netfilter compile check will not succeed; PCAP_SUPPORT_NETFILTER will never set

LEDE Bugs lede-bugs at lists.infradead.org
Wed Nov 16 16:16:15 PST 2016


The following task has a new comment added:

FS#276 - libpcap 1.7.4:  netfilter compile check will not succeed; PCAP_SUPPORT_NETFILTER will never set 
User who did this - InkblotAdmirer (InkblotAdmirer)

----------
Here is the patch I've been building with that makes the flag configurable, default is disabled (so build would be identical to pre-patch).

Author: InkblotAdmirer 
Date:   Mon Nov 14 20:38:34 2016 -0600

    Make libpcap netfilter support configurable.

diff --git a/package/libs/libpcap/Config.in b/package/libs/libpcap/Config.in
index 5fee75a..d27bcf9 100644
--- a/package/libs/libpcap/Config.in
+++ b/package/libs/libpcap/Config.in
@@ -12,4 +12,9 @@ config PCAP_HAS_BT
 	depends on BROKEN
 	default n
 
+config PCAP_HAS_NF
+	bool "Include netfilter support"
+	depends on PACKAGE_iptables-mod-nfqueue
+	default n
+
 endmenu
diff --git a/package/libs/libpcap/Makefile b/package/libs/libpcap/Makefile
index 08fab24..fabd450 100644
--- a/package/libs/libpcap/Makefile
+++ b/package/libs/libpcap/Makefile
@@ -48,8 +48,7 @@ TARGET_CFLAGS += \
 
 CONFIGURE_VARS += \
 	ac_cv_linux_vers=$(LINUX_VERSION) \
-	ac_cv_header_libusb_1_0_libusb_h=no \
-	ac_cv_netfilter_can_compile=no
+	ac_cv_header_libusb_1_0_libusb_h=no
 
 
 CONFIGURE_ARGS += \
@@ -70,6 +69,10 @@ CONFIGURE_ARGS += \
 	--enable-ipv6
 endif
 
+ifneq ($(CONFIG_PCAP_HAS_NF),y)
+	CONFIGURE_VARS += ac_cv_netfilter_can_compile=no
+endif
+
 MAKE_FLAGS += \
 	CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include"
 

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=276#comment860



More information about the lede-bugs mailing list