iproute2 fails to build setting LIBBPF_DYNAMIC unless LIBBPF_DIR is defined.
neil at digit-labs.org
neil at digit-labs.org
Tue Mar 9 11:42:11 GMT 2021
Recent iproute2 version bump fails to build setting LIBBPF_DYNAMIC unless LIBBPF_DIR is defined.
Another issue in bpf_libbpf.c relating to non inclusion of limits.h (undefined PATH_MAX).
Index: iproute2-5.11.0/lib/bpf_libbpf.c
===================================================================
--- iproute2-5.11.0.orig/lib/bpf_libbpf.c
+++ iproute2-5.11.0/lib/bpf_libbpf.c
@@ -13,6 +13,7 @@
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
+#include <limits.h>
#include <libelf.h>
#include <gelf.h>
Signed-off-by: Neil Kettle neil at digit-labs.org
diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index 440e33069b..8079f6fcb2 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -132,6 +132,7 @@ MAKE_FLAGS += \
KERNEL_INCLUDE="$(LINUX_DIR)/user_headers/include" \
SHARED_LIBS=$(SHARED_LIBS) \
IP_CONFIG_TINY=$(IP_CONFIG_TINY) \
+ LIBBPF_DIR=$(STAGING_DIR) \
LIBBPF_FORCE=$(LIBBPF_FORCE) \
HAVE_ELF=$(HAVE_ELF) \
HAVE_MNL=$(HAVE_MNL) \
More information about the openwrt-devel
mailing list