Skip to content

Fedora 42 Compiler Issues #240

@rwhalb

Description

@rwhalb

[root@probe ipt_netflow-2.6]# make all
Compiling 2.6-21-gd46ef26 for kernel 6.14.3-300.fc42.x86_64
make -C /lib/modules/6.14.3-300.fc42.x86_64/build M=/tmp/ipt_netflow-2.6 modules
make[1]: Entering directory '/usr/src/kernels/6.14.3-300.fc42.x86_64'
make[2]: Entering directory '/tmp/ipt_netflow-2.6'
CC [M] ipt_NETFLOW.o
In file included from ipt_NETFLOW.c:95:
compat.h:219:15: warning: no previous prototype for ‘timeval_to_jiffies’ [-Wmissing-prototypes]
219 | unsigned long timeval_to_jiffies(const struct timeval *tv)
| ^~~~~~~~~~~~~~~~~~
compat.h:384:20: warning: no previous prototype for ‘compat_hex_to_bin’ [-Wmissing-prototypes]
384 | #define hex_to_bin compat_hex_to_bin
| ^~~~~~~~~~~~~~~~~
compat.h:386:5: note: in expansion of macro ‘hex_to_bin’
386 | int hex_to_bin(char ch)
| ^~~~~~~~~~
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)
| ^~~~~~~
ipt_NETFLOW.c:1825: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]
1825 | .proc_handler = &hsize_procctl,
| ^
ipt_NETFLOW.c:1825:35: note: (near initialization for ‘netflow_sysctl_table[3].proc_handler’)
ipt_NETFLOW.c:1540:12: note: ‘hsize_procctl’ declared here
1540 | static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file filp,)
| ^~~~~~~~~~~~~
ipt_NETFLOW.c:1831: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]
1831 | .proc_handler = &sndbuf_procctl,
| ^
ipt_NETFLOW.c:1831:35: note: (near initialization for ‘netflow_sysctl_table[4].proc_handler’)
ipt_NETFLOW.c:1557:12: note: ‘sndbuf_procctl’ declared here
1557 | static int sndbuf_procctl(ctl_table *ctl, int write, BEFORE2632(struct file filp,)
| ^~~~~~~~~~~~~~
ipt_NETFLOW.c:1838: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]
1838 | .proc_handler = &destination_procctl,
| ^
ipt_NETFLOW.c:1838:35: note: (near initialization for ‘netflow_sysctl_table[5].proc_handler’)
ipt_NETFLOW.c:1592:12: note: ‘destination_procctl’ declared here
1592 | static int destination_procctl(ctl_table *ctl, int write, BEFORE2632(struct file filp,)
| ^~~~~~~~~~~~~~~~~~~
ipt_NETFLOW.c:1860: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]
1860 | .proc_handler = &flush_procctl,
| ^
ipt_NETFLOW.c:1860:35: note: (near initialization for ‘netflow_sysctl_table[7].proc_handler’)
ipt_NETFLOW.c:1699:12: note: ‘flush_procctl’ declared here
1699 | static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file filp,)
| ^~~~~~~~~~~~~
ipt_NETFLOW.c:1866: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]
1866 | .proc_handler = &protocol_procctl,
| ^
ipt_NETFLOW.c:1866:35: note: (near initialization for ‘netflow_sysctl_table[8].proc_handler’)
ipt_NETFLOW.c:1728:12: note: ‘protocol_procctl’ declared here
1728 | static int protocol_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
| ^~~~~~~~~~~~~~~~
ipt_NETFLOW.c:3556:20: error: conflicting types for ‘put_unaligned_be24’; have ‘void(u32, unsigned char *)’ {aka ‘void(unsigned int, unsigned char *)’}
3556 | static inline void put_unaligned_be24(u32 val, unsigned char *p)
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/kernels/6.14.3-300.fc42.x86_64/include/linux/etherdevice.h:24,
from ipt_NETFLOW.c:38:
/usr/src/kernels/6.14.3-300.fc42.x86_64/include/linux/unaligned.h:103:20: note: previous definition of ‘put_unaligned_be24’ with type ‘void(const u32, void *)’ {aka ‘void(const unsigned int, void *)’}
103 | static inline void put_unaligned_be24(const u32 val, void *p)
| ^~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/src/kernels/6.14.3-300.fc42.x86_64/scripts/Makefile.build:207: ipt_NETFLOW.o] Error 1
make[3]: *** [/usr/src/kernels/6.14.3-300.fc42.x86_64/Makefile:2037: .] Error 2
make[2]: *** [/usr/src/kernels/6.14.3-300.fc42.x86_64/Makefile:263: __sub-make] Error 2
make[2]: Leaving directory '/tmp/ipt_netflow-2.6'
make[1]: *** [Makefile:263: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.14.3-300.fc42.x86_64'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2
[root@probe ipt_netflow-2.6]#

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