Skip to content

No longer builds Arch - Kernel 6.11 proc_handler issues. #235

@jayray-git

Description

@jayray-git

Stopped building - did a clean git and tried again after system update.
Linux 6.11.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 30 Sep 2024 23:49:50 +0000 x86_64 GNU/Linux
gcc version 14.2.1 20240910 (GCC)
GNU Make 4.4.1
./gen_compat_def > compat_def.h- Test function xt_family linux/netfilter_ipv4/ip_tables.h declared Test struct timeval linux/ktime.h undeclared egrep: warning: egrep is obsolescent; using grep -E Test struct proc_ops linux/proc_fs.h declared Test function synchronize_sched linux/rcupdate.h undeclared egrep: warning: egrep is obsolescent; using grep -E Test function nf_bridge_info_get linux/netfilter_bridge.h declared Test struct vlan_dev_priv linux/if_vlan.h declared Test function put_unaligned_be24 asm/unaligned.h declared Test function totalram_pages linux/mm.h declared Test symbol totalram_pages linux/mm.h declared Test member nf_ct_event_notifier.ct_event net/netfilter/nf_conntrack_ecache.h declared Test function register_sysctl_paths linux/sysctl.h undeclared egrep: warning: egrep is obsolescent; using grep -E mv compat_def.h- compat_def.h Compiling 2.6 for kernel 6.11.1-arch1-1 make -C /lib/modules/6.11.1-arch1-1/build M=/root/ipt-netflow.git modules make[1]: Entering directory '/usr/lib/modules/6.11.1-arch1-1/build' CC [M] /root/ipt-netflow.git/ipt_NETFLOW.o In file included from /root/ipt-netflow.git/ipt_NETFLOW.c:77: /root/ipt-netflow.git/compat.h:219:15: warning: no previous prototype for 'timeval_to_jiffies' [-Wmissing-prototypes] 219 | unsigned long timeval_to_jiffies(const struct timeval *tv) | ^~~~~~~~~~~~~~~~~~ /root/ipt-netflow.git/compat.h:384:20: warning: no previous prototype for 'compat_hex_to_bin' [-Wmissing-prototypes] 384 | #define hex_to_bin compat_hex_to_bin | ^~~~~~~~~~~~~~~~~ /root/ipt-netflow.git/compat.h:386:5: note: in expansion of macro 'hex_to_bin' 386 | int hex_to_bin(char ch) | ^~~~~~~~~~ /root/ipt-netflow.git/compat.h:716:20: warning: no previous prototype for 'strtoul' [-Wmissing-prototypes] 716 | unsigned long long strtoul(const char *cp, char **endp, unsigned int base) | ^~~~~~~ /root/ipt-netflow.git/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, | ^ /root/ipt-netflow.git/ipt_NETFLOW.c:1807:35: note: (near initialization for 'netflow_sysctl_table[3].proc_handler') /root/ipt-netflow.git/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, | ^ /root/ipt-netflow.git/ipt_NETFLOW.c:1813:35: note: (near initialization for 'netflow_sysctl_table[4].proc_handler') /root/ipt-netflow.git/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, | ^ /root/ipt-netflow.git/ipt_NETFLOW.c:1820:35: note: (near initialization for 'netflow_sysctl_table[5].proc_handler') /root/ipt-netflow.git/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, | ^ /root/ipt-netflow.git/ipt_NETFLOW.c:1842:35: note: (near initialization for 'netflow_sysctl_table[7].proc_handler') /root/ipt-netflow.git/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, | ^ /root/ipt-netflow.git/ipt_NETFLOW.c:1848:35: note: (near initialization for 'netflow_sysctl_table[8].proc_handler') make[3]: *** [scripts/Makefile.build:244: /root/ipt-netflow.git/ipt_NETFLOW.o] Error 1 make[2]: *** [/usr/lib/modules/6.11.1-arch1-1/build/Makefile:1926: /root/ipt-netflow.git] Error 2 make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Leaving directory '/usr/lib/modules/6.11.1-arch1-1/build' make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions