From 45c41098ef50e50c4b0aa426e90e5758bf7bc330 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 20 Sep 2023 23:12:42 +0200 Subject: [PATCH] package/openvpn: dco needs headers >= 4.16 NLMSGERR_ATTR_MAX has been added in kernel 4.16 with https://github.com/torvalds/linux/commit/dc2b9f19e3bdaa87a7c3d123b8bba8a42d96d942 resulting in the following build failure since bump to version 2.6.4 in commit a46ac2346558d05afe405dda3730169df4b677d2 and https://github.com/OpenVPN/openvpn/commit/e34437c26b764851555e4acbe2ccca6bec235c7e: dco_linux.c: In function 'ovpn_nl_cb_error': dco_linux.c:303:27: error: 'NLMSGERR_ATTR_MAX' undeclared (first use in this function); did you mean '__CTRL_ATTR_MAX'? struct nlattr *tb_msg[NLMSGERR_ATTR_MAX + 1]; ^~~~~~~~~~~~~~~~~ __CTRL_ATTR_MAX Fixes: - http://autobuild.buildroot.org/results/69b9737913ac0b5cd2c117d526602874da3ee487 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/openvpn/openvpn.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk index 12c090ba3e..619a22c3b3 100644 --- a/package/openvpn/openvpn.mk +++ b/package/openvpn/openvpn.mk @@ -16,7 +16,7 @@ OPENVPN_CONF_OPTS = \ $(if $(BR2_STATIC_LIBS),--disable-plugins) OPENVPN_CONF_ENV = NETSTAT=/bin/netstat -ifeq ($(BR2_PACKAGE_LIBNL),y) +ifeq ($(BR2_PACKAGE_LIBNL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16),yy) OPENVPN_CONF_OPTS += --enable-dco OPENVPN_DEPENDENCIES += libnl else