aboutsummaryrefslogtreecommitdiff
path: root/net/xtables-addons
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-06-11 14:28:09 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-06-11 14:33:50 +0200
commite182b15eb7e6ccb0d9ae05dbe01ea6e8fc1d57b7 (patch)
tree1ca492381d3124132eb104652a27809d0dfb7174 /net/xtables-addons
parent68f23a9c333671e9ea69e014824943e2e00aaa41 (diff)
xtables-addons: fix compilation error on kernel 6.1
Fix compilation error on kernel 6.1. Fix compilation error: In file included from /mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/xtables-addons-3.24/extensions/LUA/controller.h:24, from /mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/xtables-addons-3.24/extensions/LUA/xt_LUA_target.c:27: /mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/xtables-addons-3.24/extensions/LUA/lua/lua.h:12:10: fatal error: stddef.h: No such file or directory 12 | #include <stddef.h> | ^~~~~~~~~~ compilation terminated. The error is caused by commit 04e85bbf71c9 ("isystem: delete global -isystem compile option") present upstream from kernel 5.16. This commit dropped the inclusion of system headers by default and caused error on LUA module. Following what is done in the commit for the required code, modify the LUA Kbuild to include these header and restore correct compilation of the LUA module. Fixes: #21294 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'net/xtables-addons')
-rw-r--r--net/xtables-addons/patches/201-fix-lua-packetscript.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/xtables-addons/patches/201-fix-lua-packetscript.patch b/net/xtables-addons/patches/201-fix-lua-packetscript.patch
index 5a016e2ae..64130121c 100644
--- a/net/xtables-addons/patches/201-fix-lua-packetscript.patch
+++ b/net/xtables-addons/patches/201-fix-lua-packetscript.patch
@@ -1,3 +1,14 @@
+--- a/extensions/LUA/Kbuild
++++ b/extensions/LUA/Kbuild
+@@ -22,6 +22,8 @@ xt_LUA-y += nf_lua.o \
+ prot_buf_dynamic.o \
+
+
++# Enable <stddef.h> <stdarg.h>
++EXTRA_CFLAGS += -isystem $(shell $(CC) -print-file-name=include)
+ # Adding Lua Support
+ EXTRA_CFLAGS += -I$(src)/lua -I$(src)/lua/include
+ xt_LUA-y += lua/lapi.o \
--- a/extensions/LUA/xt_LUA_target.c
+++ b/extensions/LUA/xt_LUA_target.c
@@ -19,7 +19,7 @@