xtables-addons-dkms 1.42-2: xtables-addons kernel module failed to build

Bug #1085211 reported by jippie
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xtables-addons (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 12.10
Release: 12.10

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
apt-cache policy xtables-addons-dkms xtables-addons-common xtables-addons-source
xtables-addons-dkms:
  Installed: 1.42-2
  Candidate: 1.42-2
  Version table:
 *** 1.42-2 0
        500 http://nl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status
xtables-addons-common:
  Installed: 1.42-2
  Candidate: 1.42-2
  Version table:
 *** 1.42-2 0
        500 http://nl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status
xtables-addons-source:
  Installed: (none)
  Candidate: 1.42-2
  Version table:
     1.42-2 0
        500 http://nl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages

3) What you expected to happen
Upgrade without errors ...

4) What happened instead
During apt-get upgrade (timestamps added):
<SNIP>
21:29:29 Preparing to replace linux-image-generic 3.5.0.18.21 (using .../linux-image-generic_3.5.0.19.22_amd64.deb) ...
21:29:29 Unpacking replacement linux-image-generic ...
21:29:30 Setting up linux-image-3.5.0-19-generic (3.5.0-19.30) ...
21:29:30 Running depmod.
21:29:30 update-initramfs: deferring update (hook will be called later)
21:29:31 Examining /etc/kernel/postinst.d.
21:29:31 run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
21:29:46 Error! Build of xt_ACCOUNT.ko failed for: 3.5.0-19-generic (x86_64)
21:29:46 Consult the make.log in the build directory
21:29:46 /var/lib/dkms/xtables-addons/1.42/build/ for more information.
21:29:50 : Unable to find an initial ram disk that I know how to handle.
21:29:50 Will not try to make an initrd.
21:30:12 run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
21:30:12 update-initramfs: Generating /boot/initrd.img-3.5.0-19-generic
21:30:28 run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
<SNIP>

In the log file (/var/lib/dkms/xtables-addons/1.42/build/make.log):
DKMS make.log for xtables-addons-1.42 for kernel 3.5.0-19-generic (x86_64)
Fri Nov 30 21:31:43 CET 2012
make: Entering directory `/usr/src/linux-headers-3.5.0-19-generic'
  CC [M] /usr/src/xtables-addons-1.42/compat_xtables.o
  CC [M] /usr/src/xtables-addons-1.42/xt_CHAOS.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DELUDE.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DHCPMAC.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DNETMAP.o
  CC [M] /usr/src/xtables-addons-1.42/xt_ECHO.o
  CC [M] /usr/src/xtables-addons-1.42/xt_IPMARK.o
  CC [M] /usr/src/xtables-addons-1.42/xt_LOGMARK.o
  CC [M] /usr/src/xtables-addons-1.42/xt_RAWNAT.o
/usr/src/xtables-addons-1.42/xt_RAWNAT.c: In function ‘rawnat6_prepare_l4’:
/usr/src/xtables-addons-1.42/xt_RAWNAT.c:184:3: error: too few arguments to function ‘ipv6_find_hdr’
In file included from /usr/src/xtables-addons-1.42/xt_RAWNAT.c:20:0:
include/linux/netfilter_ipv6/ip6_tables.h:307:12: note: declared here
make[1]: *** [/usr/src/xtables-addons-1.42/xt_RAWNAT.o] Error 1
make: *** [_module_/usr/src/xtables-addons-1.42] Error 2
make: Leaving directory `/usr/src/linux-headers-3.5.0-19-generic'

Revision history for this message
jippie (jph4dotcom) wrote :

Possible duplicates: #1062256 and ​#1070038
Not sure why they didn't pop up before when searching the bug tracker.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xtables-addons (Ubuntu):
status: New → Confirmed
Revision history for this message
Radosław Łoboda (whitep0wer) wrote :

Possibly because other bugs have different kernel versions. Still, all these three bugs affect kernel 3.5.0 line and seem to fail in the same place. Workaround from #1062256 works for now.

summary: - Build of xt_ACCOUNT.ko failed for: 3.5.0-19-generic (x86_64)
+ xtables-addons-dkms 1.42-2: xtables-addons kernel module failed to build
Revision history for this message
Jian Wen (wenjianhn) wrote :

Could you paste the output of 'sudo apt-get install xtables-addons-common'?

My kernel is 3.5.0-23-generic #35~precise1-Ubuntu.
When install xtables-addons-common old kernel packages, which are
linux-headers-3.2.0-40 linux-headers-3.2.0-40-generic, are installed.

From "$ diff /usr/src/linux-headers-3.2.0-40/include/linux/netfilter_ipv6/ip6_tables.h /usr/src/linux-headers-3.5.0-23/include/linux/netfilter_ipv6/ip6_tables.h"
293c308
< int target, unsigned short *fragoff);
---
> int target, unsigned short *fragoff, int *fragflg);

That's
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
                         int target, unsigned short *fragoff);
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
                         int target, unsigned short *fragoff, int *fragflg);

The reason of "/usr/src/xtables-addons-1.42/xt_RAWNAT.c:184:3: error: too few arguments to function ‘ipv6_find_hdr’"

Revision history for this message
jippie (jph4dotcom) wrote :

€ sudo apt-get install xtables-addons-common --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 24 not upgraded.
Need to get 73.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://nl.archive.ubuntu.com/ubuntu/ quantal/universe xtables-addons-common amd64 1.42-2 [73.4 kB]
Fetched 73.4 kB in 0s (230 kB/s)
(Reading database ... 491877 files and directories currently installed.)
Preparing to replace xtables-addons-common 1.42-2 (using .../xtables-addons-common_1.42-2_amd64.deb) ...
Unpacking replacement xtables-addons-common ...
Processing triggers for man-db ...
Setting up xtables-addons-common (1.42-2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Revision history for this message
Jian Wen (wenjianhn) wrote :

--reinstall doesn't recompile the source code.
Please try:
sudo apt-get remove xtables-addons-common
sudo apt-get install xtables-addons-common

Revision history for this message
jippie (jph4dotcom) wrote :

The following extra packages will be installed:
  xtables-addons-dkms
Suggested packages:
  libtext-csv-xs-perl
The following NEW packages will be installed:
  xtables-addons-common xtables-addons-dkms
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 145 kB/218 kB of archives.
After this operation, 988 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://nl.archive.ubuntu.com/ubuntu/ quantal/universe xtables-addons-dkms all 1.42-2 [145 kB]
Fetched 145 kB in 0s (372 kB/s)
Selecting previously unselected package xtables-addons-common.
(Reading database ... 491668 files and directories currently installed.)
Unpacking xtables-addons-common (from .../xtables-addons-common_1.42-2_amd64.deb) ...
Selecting previously unselected package xtables-addons-dkms.
Unpacking xtables-addons-dkms (from .../xtables-addons-dkms_1.42-2_all.deb) ...
Processing triggers for man-db ...
Setting up xtables-addons-common (1.42-2) ...
Setting up xtables-addons-dkms (1.42-2) ...
Loading new xtables-addons-1.42 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-27-generic
Building initial module for 3.5.0-27-generic
Error! Build of xt_ACCOUNT.ko failed for: 3.5.0-27-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/xtables-addons/1.42/build/ for more information.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
========================================
€ cat /var/lib/dkms/xtables-addons/1.42/build/make.log
DKMS make.log for xtables-addons-1.42 for kernel 3.5.0-27-generic (x86_64)
Sat Apr 27 11:11:13 CEST 2013
make: Entering directory `/usr/src/linux-headers-3.5.0-27-generic'
  CC [M] /usr/src/xtables-addons-1.42/compat_xtables.o
  CC [M] /usr/src/xtables-addons-1.42/xt_CHAOS.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DELUDE.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DHCPMAC.o
  CC [M] /usr/src/xtables-addons-1.42/xt_DNETMAP.o
  CC [M] /usr/src/xtables-addons-1.42/xt_ECHO.o
  CC [M] /usr/src/xtables-addons-1.42/xt_IPMARK.o
  CC [M] /usr/src/xtables-addons-1.42/xt_LOGMARK.o
  CC [M] /usr/src/xtables-addons-1.42/xt_RAWNAT.o
/usr/src/xtables-addons-1.42/xt_RAWNAT.c: In function ‘rawnat6_prepare_l4’:
/usr/src/xtables-addons-1.42/xt_RAWNAT.c:184:3: error: too few arguments to function ‘ipv6_find_hdr’
In file included from /usr/src/xtables-addons-1.42/xt_RAWNAT.c:20:0:
include/linux/netfilter_ipv6/ip6_tables.h:307:12: note: declared here
make[1]: *** [/usr/src/xtables-addons-1.42/xt_RAWNAT.o] Error 1
make: *** [_module_/usr/src/xtables-addons-1.42] Error 2
make: Leaving directory `/usr/src/linux-headers-3.5.0-27-generic'

Revision history for this message
Léa GRIS (lea-gris) wrote :
Download full text (11.0 KiB)

Fails as well with Ubuntu 13.04 kernel 3.8.0-19-generic

/var/lib/dkms/xtables-addons/1.47.1/build/make.log

DKMS make.log for xtables-addons-1.47.1 for kernel 3.8.0-19-generic (x86_64)
dimanche 5 mai 2013, 14:18:42 (UTC+0200)
make: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
  CC [M] /usr/src/xtables-addons-1.47.1/compat_xtables.o
  CC [M] /usr/src/xtables-addons-1.47.1/xt_CHAOS.o
  CC [M] /usr/src/xtables-addons-1.47.1/xt_DELUDE.o
  CC [M] /usr/src/xtables-addons-1.47.1/xt_DHCPMAC.o
  CC [M] /usr/src/xtables-addons-1.47.1/xt_DNETMAP.o
/usr/src/xtables-addons-1.47.1/xt_DNETMAP.c:30:39: fatal error: net/netfilter/nf_nat_rule.h: No such file or directory
compilation terminated.
make[1]: *** [/usr/src/xtables-addons-1.47.1/xt_DNETMAP.o] Error 1
make: *** [_module_/usr/src/xtables-addons-1.47.1] Error 2
make: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'

:~# apt-get remove xtables-addons-common
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  dkms fping linux-headers-3.2.0-38 linux-headers-3.2.0-38-generic
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
  xtables-addons-common xtables-addons-dkms
0 mis à jour, 0 nouvellement installés, 2 à enlever et 0 non mis à jour.
Après cette opération, 1 016 ko d'espace disque seront libérés.
Souhaitez-vous continuer [O/n] ?
(Lecture de la base de données... 101858 fichiers et répertoires déjà installés.)
Suppression de xtables-addons-dkms ...

-------- Uninstall Beginning --------
Module: xtables-addons
Version: 1.47.1
Kernel: 3.5.0-27-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

xt_ACCOUNT.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-27-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

compat_xtables.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-27-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

ip6table_rawpost.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-27-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iptable_rawpost.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-27-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xt_pknock.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-27-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xt...

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.