Package: iptables-netflow-dkms Version: 2.6-3.1 Severity: serious User: [email protected] Usertags: piuparts
Hi,
during a test with piuparts I noticed your package fails to upgrade from
'bullseye'.
It installed fine in 'bullseye' (with linux-headers-amd64 installed),
then the upgrade to 'bullseye' fails.
>From the attached log (scroll to the bottom...):
Setting up iptables-netflow-dkms (2.6-3.1) ...
Loading new ipt-netflow-2.6 DKMS files...
It is likely that 5.10.28 belongs to a chroot's host
Building for 5.10.0-22-amd64 and 6.1.0-7-amd64
Building initial module for 5.10.0-22-amd64
Error! Bad return status for module build on kernel: 5.10.0-22-amd64 (x86_64)
Consult /var/lib/dkms/ipt-netflow/2.6/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
As during the upgrade phase it is very likely that both the old and new
kernel and their headers are installed, the dkms module should be able
to build for both kernel versions (or use some BUILD_EXCLUSIVE_*
settings to exclude unsupported versions, this will be easier from
bookworm+1 onwards).
The dkms.log says:
DKMS make.log for ipt-netflow-2.6 for kernel 5.10.0-22-amd64 (x86_64)
Thu May 4 11:57:32 UTC 2023
./gen_compat_def > compat_def.h
Test symbol xt_family linux/netfilter_ipv4/ip_tables.h declared
Test struct timeval linux/ktime.h undeclared
Test struct proc_ops linux/proc_fs.h declared
Test symbol synchronize_sched linux/rcupdate.h undeclared
Test symbol nf_bridge_info_get linux/netfilter_bridge.h declared
Test struct vlan_dev_priv linux/if_vlan.h declared
Test member nf_ct_event_notifier.ct_event net/netfilter/nf_conntrack_ecache.h
undeclared
Compiling 2.6 for kernel 5.10.178
make -C /lib/modules/5.10.0-22-amd64/build
M=/var/lib/dkms/ipt-netflow/2.6/build modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make
rule.
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-22-amd64'
CC [M] /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.o
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:96:4: warning: #warning
"Requested physdev is not compiled." [-Wcpp]
96 | # warning "Requested physdev is not compiled."
| ^~~~~~~
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c: In function 'nf_seq_show':
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:762:39: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type 's64'
{aka 'long long int'} [-Wformat=]
762 | seq_printf(seq, " Flows selected %lu, discarded %lu.",
| ~~^
| |
| long unsigned int
| %llu
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:762:54: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 4 has type 's64'
{aka 'long long int'} [-Wformat=]
762 | seq_printf(seq, " Flows selected %lu, discarded %lu.",
| ~~^
| |
| long unsigned int
| %llu
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:766:39: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type 's64'
{aka 'long long int'} [-Wformat=]
766 | seq_printf(seq, " Flows selected %lu.",
atomic64_read(&flows_selected));
| ~~^
| |
| long unsigned int
| %llu
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c: In function
'netflow_conntrack_event':
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:4622:36: warning: passing
argument 2 of 'notifier->fcn' discards 'const' qualifier from pointer target
type [-Wdiscarded-qualifiers]
4622 | ret = notifier->ct_event(events, item);
| ^~~~
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:4622:36: note: expected
'struct nf_ct_event *' but argument is of type 'const struct nf_ct_event *'
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c: At top level:
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:4687:14: error:
initialization of 'int (*)(unsigned int, struct nf_ct_event *)' from
incompatible pointer type 'int (*)(const unsigned int, const struct
nf_ct_event *)' [-Werror=incompatible-pointer-types]
4687 | .ct_event = netflow_conntrack_event
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:4687:14: note: (near
initialization for 'ctnl_notifier.fcn')
cc1: some warnings being treated as errors
make[3]: ***
[/usr/src/linux-headers-5.10.0-22-common/scripts/Makefile.build:291:
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-22-common/Makefile:1852:
/var/lib/dkms/ipt-netflow/2.6/build] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-22-common/Makefile:192: __sub-make]
Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-22-amd64'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2
cheers,
Andreas
iptables-netflow-dkms_2.6-3.1.log.gz
Description: application/gzip

