Package: iptables-netflow-dkms
Version: 2.6-7
Severity: important

Hi,

iptables-netflow-dkms fails to build a module for Linux 6.11 in
experimental.
I haven't looked in detail, but this is probably caused by the switch
from gcc-13 to gcc-14 (and not a kernel interface change).
gcc-14 enabled -Werror=incompatible-pointer-types etc. by default.

DKMS make.log for ipt-netflow-2.6 for kernel 6.11-rc5-amd64 (x86_64)
Wed Sep 11 08:08:01 UTC 2024
./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  
declared
Compiling 2.6 for kernel 6.11-rc5-amd64
make -C /lib/modules/6.11-rc5-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-6.11-rc5-amd64'
  CC [M]  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.o
In file included from /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:77:
/var/lib/dkms/ipt-netflow/2.6/build/compat.h:227:15: warning: no previous 
prototype for 'timeval_to_jiffies' [-Wmissing-prototypes]
  227 | unsigned long timeval_to_jiffies(const struct timeval *tv)
      |               ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.6/build/compat.h:392:20: warning: no previous 
prototype for 'compat_hex_to_bin' [-Wmissing-prototypes]
  392 | #define hex_to_bin compat_hex_to_bin
      |                    ^~~~~~~~~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.6/build/compat.h:394:5: note: in expansion of macro 
'hex_to_bin'
  394 | int hex_to_bin(char ch)
      |     ^~~~~~~~~~
/var/lib/dkms/ipt-netflow/2.6/build/compat.h:724:20: warning: no previous 
prototype for 'strtoul' [-Wmissing-prototypes]
  724 | unsigned long long strtoul(const char *cp, char **endp, unsigned int 
base)
      |                    ^~~~~~~
/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:60: 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
  763 |                             atomic64_read(&flows_selected),
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                             |
      |                             s64 {aka long long int}
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:762:75: 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
  763 |                             atomic64_read(&flows_selected),
  764 |                             atomic64_read(&flows_observed) - 
atomic64_read(&flows_selected));
      |                             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            |
      |                                                            s64 {aka 
long long int}
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:766:60: 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));
      |                                                          ~~^    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            |    |
      |                                                            |    s64 
{aka long long int}
      |                                                            long 
unsigned int
      |                                                          %llu
/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:1807:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1807 |                 .proc_handler   = &hsize_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1807:35: note: (near 
initialization for 'netflow_sysctl_table[3].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1813 |                 .proc_handler   = &sndbuf_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: note: (near 
initialization for 'netflow_sysctl_table[4].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1820 |                 .proc_handler   = &destination_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: note: (near 
initialization for 'netflow_sysctl_table[5].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1842 |                 .proc_handler   = &flush_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: note: (near 
initialization for 'netflow_sysctl_table[7].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1848 |                 .proc_handler   = &protocol_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: note: (near 
initialization for 'netflow_sysctl_table[8].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1870 |                 .proc_handler   = &promisc_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: note: (near 
initialization for 'netflow_sysctl_table[11].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1879 |                 .proc_handler   = &sampler_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: note: (near 
initialization for 'netflow_sysctl_table[12].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1897 |                 .proc_handler   = &snmp_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: note: (near 
initialization for 'netflow_sysctl_table[14].proc_handler')
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1905:35: error: 
initialization of 'int (*)(const struct ctl_table *, int,  void *, size_t *, 
loff_t *)' {aka 'int (*)(const struct ctl_table *, int,  void *, long unsigned 
int *, long long int *)'} from incompatible pointer type 'int (*)(struct 
ctl_table *, int,  void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table 
*, int,  void *, long unsigned int *, long long int *)'} 
[-Wincompatible-pointer-types]
 1905 |                 .proc_handler   = &natevents_procctl,
      |                                   ^
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1905:35: note: (near 
initialization for 'netflow_sysctl_table[15].proc_handler')
make[3]: *** 
[/usr/src/linux-headers-6.11-rc5-common/scripts/Makefile.build:249: 
/var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:1950: 
/var/lib/dkms/ipt-netflow/2.6/build] Error 2
make[1]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:236: __sub-make] 
Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.11-rc5-amd64'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2


Andreas

Reply via email to