Install of xtables-addons-dkms package fails to build modules

Bug #1590651 reported by Bjorn Nilsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

When installing (or dpkg-reconfigure) xtables-addons-dkms it is unable to build the modules.

I have installed the raspberrypi-kernel-headers package but this does not help.

This is on the latest Raspbian Jessie 8.0

# cat /etc/debian_version
8.0
# uname -a
Linux piwakawaka 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux

# dpkg-reconfigure xtables-addons-dkms

------------------------------
Deleting module version: 2.6
completely from the DKMS tree.
------------------------------
Done.
Loading new xtables-addons-2.6 DKMS files...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 4.4.11+ belongs to a chroot's host
Building initial module for 4.4.11+
Error! Build of xt_ACCOUNT.ko failed for: 4.4.11+ (armv6l)
Consult the make.log in the build directory
/var/lib/dkms/xtables-addons/2.6/build/ for more information.

# cat /var/lib/dkms/xtables-addons/2.6/build/make.log
DKMS make.log for xtables-addons-2.6 for kernel 4.4.11+ (armv6l)
Thu 9 Jun 16:37:17 NZST 2016
make: Entering directory '/usr/src/linux-headers-4.4.11+'
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.6/build/extensions/.tmp_versions ; rm -f /var/lib/dkms/xtables-addons/2.6/build/extensions/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/xtables-addons/2.6/build/extensions
  gcc -Wp,-MD,/var/lib/dkms/xtables-addons/2.6/build/extensions/.compat_xtables.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/include -I./arch/arm/include -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated -Iinclude -I./arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -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.6/build/extensions/.tmp_compat_xtables.o /var/lib/dkms/xtables-addons/2.6/build/extensions/compat_xtables.c
  if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/xtables-addons/2.6/build/extensions/compat_xtables.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/xtables-addons/2.6/build/extensions/compat_xtables.o"; fi; fi;
  gcc -Wp,-MD,/var/lib/dkms/xtables-addons/2.6/build/extensions/.xt_CHAOS.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/include -I./arch/arm/include -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated -Iinclude -I./arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -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.6/build/extensions/.tmp_xt_CHAOS.o /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_CHAOS.c
  if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_CHAOS.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_CHAOS.o"; fi; fi;
  gcc -Wp,-MD,/var/lib/dkms/xtables-addons/2.6/build/extensions/.xt_DELUDE.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/include -I./arch/arm/include -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated -Iinclude -I./arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(xt_DELUDE)" -D"KBUILD_MODNAME=KBUILD_STR(xt_DELUDE)" -c -o /var/lib/dkms/xtables-addons/2.6/build/extensions/.tmp_xt_DELUDE.o /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c: In function ‘delude_send_reset’:
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:119:25: warning: passing argument 1 of ‘ip_route_me_harder’ from incompatible pointer type
  if (ip_route_me_harder(nskb, addr_type))
                         ^
In file included from include/linux/netfilter/x_tables.h:207:0,
                 from /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:20:
include/linux/netfilter_ipv4.h:9:5: note: expected ‘struct net *’ but argument is of type ‘struct sk_buff *’
 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
     ^
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:119:31: warning: passing argument 2 of ‘ip_route_me_harder’ makes pointer from integer without a cast
  if (ip_route_me_harder(nskb, addr_type))
                               ^
In file included from include/linux/netfilter/x_tables.h:207:0,
                 from /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:20:
include/linux/netfilter_ipv4.h:9:5: note: expected ‘struct sk_buff *’ but argument is of type ‘unsigned int’
 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
     ^
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:119:6: error: too few arguments to function ‘ip_route_me_harder’
  if (ip_route_me_harder(nskb, addr_type))
      ^
In file included from include/linux/netfilter/x_tables.h:207:0,
                 from /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:20:
include/linux/netfilter_ipv4.h:9:5: note: declared here
 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
     ^
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:133:15: warning: passing argument 1 of ‘ip_local_out’ from incompatible pointer type
  ip_local_out(nskb);
               ^
In file included from include/net/tcp.h:42:0,
                 from /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:24:
include/net/ip.h:116:5: note: expected ‘struct net *’ but argument is of type ‘struct sk_buff *’
 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
     ^
/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:133:2: error: too few arguments to function ‘ip_local_out’
  ip_local_out(nskb);
  ^
In file included from include/net/tcp.h:42:0,
                 from /var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.c:24:
include/net/ip.h:116:5: note: declared here
 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
     ^
scripts/Makefile.build:264: recipe for target '/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.o' failed
make[1]: *** [/var/lib/dkms/xtables-addons/2.6/build/extensions/xt_DELUDE.o] Error 1
Makefile:1384: recipe for target '_module_/var/lib/dkms/xtables-addons/2.6/build/extensions' failed
make: *** [_module_/var/lib/dkms/xtables-addons/2.6/build/extensions] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.11+'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.