x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/.xt_CHAOS.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -fplugin=./scripts/gcc-plugins/type_canary_plugin.so -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so -fplugin=./scripts/gcc-plugins/constify_plugin/constify_plugin.so -fplugin=./scripts/gcc-plugins/utilities_plugin/utilities_plugin.so -fplugin=./scripts/gcc-plugins/initify_plugin.so -fplugin=./scripts/gcc-plugins/rap_plugin/rap_plugin.so -fplugin=./scripts/gcc-plugins/respectre_plugin/respectre_plugin.so -fplugin=./scripts/gcc-plugins/autoslab_plugin/autoslab_plugin.so -fplugin-arg-randomize_layout_plugin-performance-mode -fplugin-arg-utilities_plugin-align-init-text-bits=4 -fplugin-arg-utilities_plugin-convert-nolocals -fplugin-arg-initify_plugin-search_init_exit_functions -fplugin-arg-rap_plugin-include -fplugin-arg-rap_plugin-typecheck=call -fplugin-arg-rap_plugin-typecheck=ret -fplugin-arg-rap_plugin-xor -fplugin-arg-rap_plugin-hash=abs-finish -fplugin-arg-rap_plugin-hash=abs-ops -fplugin-arg-rap_plugin-hash=abs-attr '-fplugin-arg-rap_plugin-retabort=rap_ret_abort %k0' -fplugin-arg-rap_plugin-sls -fplugin-arg-rap_plugin-typecheck=nospec -fplugin-arg-rap_plugin-rethunk -fplugin-arg-rap_plugin-kernexec_method=bts -fplugin-arg-respectre_plugin-loopindex -fplugin-arg-respectre_plugin-ssb -DTYPE_CANARY_PLUGIN -DRANDSTRUCT -DCONSTIFY_PLUGIN -DUTILITIES_PLUGIN -DINITIFY_PLUGIN -DRAP_PLUGIN_HASH -DRETPOLINE_PLUGIN -DKERNEXEC_PLUGIN -DRESPECTRE_PLUGIN -DRESPECTRE_PLUGIN_SSB -DAUTOSLAB_PLUGIN -fplugin=./scripts/gcc-plugins/stackleak_plugin.so -fplugin=./scripts/gcc-plugins/size_overflow_plugin/size_overflow_plugin.so -include include/generated/ksyms.h -fplugin-arg-utilities_plugin-asm_include=./arch/x86/include/generated/asm/asmmacro.s -fplugin-arg-size_overflow_plugin-check-fns -DSTACKLEAK_PLUGIN -DSIZE_OVERFLOW_PLUGIN -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mno-popcnt -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=haswell -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=keep -mindirect-branch-register -fno-jump-tables -Wa,-mx86-used-note=no -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fno-stack-protector -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wcast-function-type -Wno-packed-not-aligned -DMODULE -DKBUILD_BASENAME='"xt_CHAOS"' -DKBUILD_EXTMOD='"/var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions"' -DKBUILD_MODNAME='"xt_CHAOS"' -D__KBUILD_MODNAME=kmod_xt_CHAOS -DAUTOSLAB_BASENAME='"xt_CHAOS"' -c -o /var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/xt_CHAOS.o /var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/xt_CHAOS.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess --rap --module /var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/xt_CHAOS.o /var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/xt_CHAOS.c: In function ‘xt_chaos_total’: /var/tmp/portage/net-firewall/xtables-addons-3.21/work/xtables-addons-3.21/extensions/xt_CHAOS.c:70:46: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 70 | if (!ret || hotdrop || (unsigned int)prandom_u32() > delude_percentage) | ^~~~~~~~~~~ | prandom_u32_max Reproducible: Always Steps to Reproduce: Try to compile xtables-addons with a recent 6.1* kernel. xtable-addons-3.22 can cope with kernel-6.1 according to its changelog: "Support for up to Linux 6.1 by fixing the following build failure:" ... Bumping the package to -3.22 solves the compilation failure.
25 commit 603ca8ed184a952648e411d18453e80640436825 26 Author: Sam James <sam@gentoo.org> 27 Date: Fri Jan 13 07:19:16 2023 +0000 28 29 net-firewall/xtables-addons: add 3.23 30 31 Signed-off-by: Sam James <sam@gentoo.org>