[OpenWrt-Devel] [PATCH] nftables: Fix compilation with uClibc-ng

Rosen Penev rosenp at gmail.com
Wed May 1 10:08:10 PDT 2019


Missing header for va_list.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 https://downloads.openwrt.org/snapshots/faillogs/arc_arc700/base/nftables/compile.txt
 actually shows the exact same change.
 package/network/utils/nftables/Makefile                |  2 +-
 .../network/utils/nftables/patches/010-uclibc-ng.patch | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 package/network/utils/nftables/patches/010-uclibc-ng.patch

diff --git a/package/network/utils/nftables/Makefile b/package/network/utils/nftables/Makefile
index d1e995116d..d4f91a2c89 100644
--- a/package/network/utils/nftables/Makefile
+++ b/package/network/utils/nftables/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nftables
 PKG_VERSION:=0.9.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
diff --git a/package/network/utils/nftables/patches/010-uclibc-ng.patch b/package/network/utils/nftables/patches/010-uclibc-ng.patch
new file mode 100644
index 0000000000..4de1d1c324
--- /dev/null
+++ b/package/network/utils/nftables/patches/010-uclibc-ng.patch
@@ -0,0 +1,10 @@
+--- a/include/gmputil.h
++++ b/include/gmputil.h
+@@ -7,6 +7,7 @@
+ #include <gmp.h>
+ #else
+ #include <mini-gmp.h>
++#include <stdarg.h>
+ #include <stdio.h>
+ /* mini-gmp doesn't come with gmp_vfprintf, so we use our own minimal variant */
+ extern int mpz_vfprintf(FILE *fp, const char *format, va_list args);
-- 
2.17.1




More information about the openwrt-devel mailing list