Package: iptables-netflow-dkms
Version: 2.5.1-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Setting up iptables-netflow-dkms (2.5.1-1) ...
  Loading new ipt-netflow-2.5.1 DKMS files...
  It is likely that 4.19.0-9-amd64 belongs to a chroot's host
  Building for 5.10.0-4-amd64
  Building initial module for 5.10.0-4-amd64
  Error! Bad return status for module build on kernel: 5.10.0-4-amd64 (x86_64)
  Consult /var/lib/dkms/ipt-netflow/2.5.1/build/make.log for more information.
  dpkg: error processing package iptables-netflow-dkms (--configure):
   installed iptables-netflow-dkms package post-installation script subprocess 
returned error exit status 10
  Processing triggers for libc-bin (2.31-9) ...
  Errors were encountered while processing:
   iptables-netflow-dkms

/var/lib/dkms/zfs/0.8.2/build/make.log contains:

DKMS make.log for ipt-netflow-2.5.1 for kernel 5.10.0-4-amd64 (x86_64)
Tue Mar  9 11:02:15 UTC 2021
make: *** No rule to make target 'ipt_NETFLOW.ko'.  Stop.

That error is very cryptic ... so let's run dkms manually

# dkms build -k 5.10.0-4-amd64 ipt-netflow/2.5.1

Kernel preparation unnecessary for this kernel.  Skipping...

Running the pre_build script:
Module version: 2.5.1
Kernel version: 4.19.118 (proc)
Kernel sources: /lib/modules/5.10.0-4-amd64/build (dkms)
! Warning: proc kernel version (4.19.118) and dkms version of kernel source 
(5.10.19) doesn't match!
!   You may try to specify only kernel source tree with 
--kdir=/lib/modules/5.10.0-4-amd64/build
!   and configure will pick up version properly.
! Assuming you want to build for 5.10.19
Checking for presence of include/linux/netfilter.h... No
Checking for presence of include/linux/llist.h... No
Checking for presence of include/linux/grsecurity.h... No
Iptables binary version: no iptables binary found
Xtables version: 1.8.7 (detected from /usr/bin/pkg-config)
Check for working gcc: No
! You need gcc to install module from source
! 
! Under Debian GNU/Linux try to run this:
!   root# apt-get install gcc
! 

Building module:
cleaning build area...(bad exit status: 2)
make -j16 KERNELRELEASE=5.10.0-4-amd64 ipt_NETFLOW.ko...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.0-4-amd64 (x86_64)
Consult /var/lib/dkms/ipt-netflow/2.5.1/build/make.log for more information.


Oh, your package insists on building the kernel module with gcc instead of
getting the correct compiler (i.e. the same versioned gcc-X that was used to
build the kernel and that is depended upon by the kernel header package used)
from kbuild. A kernel module built with a different compiler version than the
kernel itself may not work. The kernel is not neccessarily built with the
same compiler version as gcc points to.

Please depend on gcc if you cannot find a way to use the kernel
compiler. You cannot expect build-essential to be available.

There are more dkms packages looking for a proper solution for this problem:
  openafs-modules-dkms (#945506)
  zfs-dkms (#946497)


cheers,

Andreas

Attachment: iptables-netflow-dkms_2.5.1-1.log.gz
Description: application/gzip

Reply via email to