Hello,
i want to install xtables-addons on ubuntu server 14.04.2 LTS. But if the modules was build i get this error:
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-40-generic /boot/vmlinuz-3.16.0-40-generic
Error! Build of xt_ACCOUNT.ko failed for: 3.16.0-40-generic (x86_64)
Right headers are installed:
# aptitude search header |grep 3.16.0-4[0,1]-generic
i A linux-headers-3.16.0-40-generic - Linux kernel headers for version 3.16.0 on
p linux-headers-3.16.0-40-generic - Linux kernel headers for version 3.16.0 on
i A linux-headers-3.16.0-41-generic - Linux kernel headers for version 3.16.0 on
p linux-headers-3.16.0-41-generic - Linux kernel headers for version 3.16.0 on
Here the output of the make.log file:
DKMS make.log for xtables-addons-2.3 for kernel 3.16.0-40-generic (x86_64)
So 14. Jun 22:24:27 CEST 2015
make: Verzeichnis »/usr/src/linux-headers-3.16.0-40-generic« wird betreten
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/lib/dkms/xtables-addons/2.3/build/.tmp_versions ; rm -f /var/lib/dkms/xtables-addons/2.3/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/xtables-addons/2.3/build
gcc -Wp,-MD,/var/lib/dkms/xtables-addons/2.3/build/.compat_xtables.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(compat_xtables)" -D"KBUILD_MODNAME=KBUILD_STR(compat_xtables)" -c -o /var/lib/dkms/xtables-addons/2.3/build/.tmp_compat_xtables.o /var/lib/dkms/xtables-addons/2.3/build/compat_xtables.c
if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/xtables-addons/2.3/build/compat_xtables.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/xtables-addons/2.3/build/compat_xtables.o"; fi; fi;
gcc -Wp,-MD,/var/lib/dkms/xtables-addons/2.3/build/.xt_CHAOS.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(xt_CHAOS)" -D"KBUILD_MODNAME=KBUILD_STR(xt_CHAOS)" -c -o /var/lib/dkms/xtables-addons/2.3/build/.tmp_xt_CHAOS.o /var/lib/dkms/xtables-addons/2.3/build/xt_CHAOS.c
/var/lib/dkms/xtables-addons/2.3/build/xt_CHAOS.c: In function ‘xt_chaos_total’:
/var/lib/dkms/xtables-addons/2.3/build/xt_CHAOS.c:71:2: error: implicit declaration of function ‘net_random’ [-Werror=implicit-function-declaration]
if (!ret || hotdrop || (unsigned int)net_random() > delude_percentage)
^
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/xtables-addons/2.3/build/xt_CHAOS.o] Fehler 1
make: *** [_module_/var/lib/dkms/xtables-addons/2.3/build] Fehler 2
make: Verzeichnis »/usr/src/linux-headers-3.16.0-40-generic« wird verlassen
Is this a bug or have i do something wrong?