sipwise / rtpengine

The Sipwise media proxy for Kamailio
GNU General Public License v3.0
785 stars 368 forks source link

Kernel module fails to build on 6.10 #1845

Closed gaaf closed 1 month ago

gaaf commented 2 months ago

rtpengine version the issue has been seen with

12.5.1.0

Used distribution and its version

Debian sid

Linux kernel version used

6.10.3

CPU architecture issue was seen on (see uname -m)

x86_64

Expected behaviour you didn't see

Clean compile

Unexpected behaviour you saw

make: Entering directory '/usr/src/linux-headers-6.10.3-amd64'
  CC [M]  /var/lib/dkms/ngcp-rtpengine/12.5.1.0/build/xt_RTPENGINE.o
/var/lib/dkms/ngcp-rtpengine/12.5.1.0/build/xt_RTPENGINE.c: In function ‘send_proxy_packet4’:
/var/lib/dkms/ngcp-rtpengine/12.5.1.0/build/xt_RTPENGINE.c:4991:14: error: too few arguments to function ‘ip_route_output’
 4991 |         rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0);
      |              ^~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.10.3-common/include/net/ip.h:30,
                 from /usr/src/linux-headers-6.10.3-common/include/net/ip6_checksum.h:27,
                 from /var/lib/dkms/ngcp-rtpengine/12.5.1.0/build/xt_RTPENGINE.c:5:
/usr/src/linux-headers-6.10.3-common/include/net/route.h:157:30: note: declared here
  157 | static inline struct rtable *ip_route_output(struct net *net, __be32 daddr,
      |                              ^~~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.10.3-common/scripts/Makefile.build:249: /var/lib/dkms/ngcp-rtpengine/12.5.1.0/build/xt_RTPENGINE.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.10.3-common/Makefile:1959: /var/lib/dkms/ngcp-rtpengine/12.5.1.0/build] Error 2
make: *** [/usr/src/linux-headers-6.10.3-common/Makefile:252: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.10.3-amd64'

Steps to reproduce the problem

Compile kernel module agains Linux 6.10.3

Additional program output to the terminal or logs illustrating the issue

No response

Anything else?

No response

rfuchs commented 2 months ago

Fix is already on internal review, to be merged soon