Public bug reported:
Two errors happen when compiling to the new Kernel 7.0:
========================================================
pt_NETFLOW.c: In function ‘usock_open_sock’:
ipt_NETFLOW.c:2028:52: error: passing argument 2 of ‘sock->ops->bind’ from
incompatible pointer type [-Wincompatible-pointer-types]
2028 | if ((error = sock->ops->bind(sock, (struct sockaddr
*)&usock->saddr, salen)) < 0) {
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct sockaddr *
ipt_NETFLOW.c:2028:52: note: expected ‘struct sockaddr_unsized *’ but argument
is of type ‘struct sockaddr *’
ipt_NETFLOW.c:2038:42: error: passing argument 2 of ‘sock->ops->connect’ from
incompatible pointer type [-Wincompatible-pointer-types]
2038 | error = sock->ops->connect(sock, (struct sockaddr
*)&usock->addr, sizeof(usock->addr), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct sockaddr *
ipt_NETFLOW.c:2038:42: note: expected ‘struct sockaddr_unsized *’ but argument
is of type ‘struct sockaddr *’
make[4]: ***
[/usr/src/linux-headers-7.0.0-3-generic/scripts/Makefile.build:289:
ipt_NETFLOW.o] Error 1
make[3]: *** [/usr/src/linux-headers-7.0.0-3-generic/Makefile:2106: .] Error 2
make[2]: *** [/usr/src/linux-headers-7.0.0-3-generic/Makefile:248: __sub-make]
Error 2
make[2]: Leaving directory '/var/lib/dkms/ipt-netflow/2.6/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-7.0.0-3-generic'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2
==================================================================
To fix them, a modification to the cast to [struct sockaddr_unsized *]
instead of [struct sockaddr *] seems to be the correct action.
** Affects: iptables-netflow (Ubuntu)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: New
** Affects: iptables-netflow (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: New
** Also affects: iptables-netflow (Ubuntu Resolute)
Importance: Undecided
Status: New
** Changed in: iptables-netflow (Ubuntu Resolute)
Assignee: (unassigned) => Alessio Faina (alessiofaina)
** Changed in: iptables-netflow (Ubuntu Resolute)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143742
Title:
Failure to build in Resolute - Kernel 7.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iptables-netflow/+bug/2143742/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs