The debdiff in attach allows to build openvpn-dco-dkms on Questing on
both Linux 6.15 and 6.15.
$ uname -a
Linux ubuntu-questing-amd64-tester 6.15.0-4-generic #4-Ubuntu SMP
PREEMPT_DYNAMIC Fri Jul 4 14:41:53 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
$ sudo add-apt-repository ppa:mpellizzer/devel-packages && sudo apt update
$ sudo apt install -y openvpn-dco-dkms
...
Setting up openvpn-dco-dkms (0.0+git20241121-1ubuntu1) ...
Loading new ovpn-dco-0.0+git20241121 DKMS files...
Building for 6.15.0-4-generic 6.16.0-10-generic
Building initial module for 6.15.0-4-generic
Secure Boot not enabled on this system.
Done.
ovpn-dco-v2.ko.zst:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.15.0-4-generic/updates/dkms/
depmod.....
$ dkms status
ovpn-dco/0.0+git20241121, 6.15.0-4-generic, x86_64: installed
$ sudo modprobe ovpn-dco-v2
$ lsmod | grep ovpn
ovpn_dco_v2 86016 0
ip6_udp_tunnel 16384 1 ovpn_dco_v2
udp_tunnel 32768 1 ovpn_dco_v2
$ uname -a
Linux ubuntu-questing-amd64-tester 6.16.0-10-generic #10-Ubuntu SMP
PREEMPT_DYNAMIC Mon Jul 28 08:06:41 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
$ sudo add-apt-repository ppa:mpellizzer/devel-packages && sudo apt update
$ sudo apt install -y openvpn-dco-dkms
...
Setting up openvpn-dco-dkms (0.0+git20241121-1ubuntu1) ...
Loading new ovpn-dco-0.0+git20241121 DKMS files...
Building for 6.16.0-10-generic
Building initial module for 6.16.0-10-generic
Secure Boot not enabled on this system.
Done.
ovpn-dco-v2.ko.zst:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.16.0-10-generic/updates/dkms/
depmod......
$ dkms status
ovpn-dco/0.0+git20241121, 6.16.0-10-generic, x86_64: installed
$ sudo modprobe ovpn-dco-v2
$ lsmod | grep ovpn
ovpn_dco_v2 86016 0
ip6_udp_tunnel 16384 1 ovpn_dco_v2
udp_tunnel 32768 1 ovpn_dco_v2
** Description changed:
[ Impact ]
openvpn-dco-dkms does not compile from source in Questing with kernel 6.15
and 6.16:
drivers/net/ovpn-dco/peer.c: In function ‘ovpn_peer_timer_delete_all’:
drivers/net/ovpn-dco/peer.c:194:9: error: implicit declaration of function
‘del_timer_sync’; did you mean ‘dev_mc_sync’? [-Wimplicit-function-declaration]
- 194 | del_timer_sync(&peer->keepalive_xmit);
- | ^~~~~~~~~~~~~~
- | dev_mc_sync
+ 194 | del_timer_sync(&peer->keepalive_xmit);
+ | ^~~~~~~~~~~~~~
+ | dev_mc_sync
drivers/net/ovpn-dco/peer.c: In function ‘ovpn_peer_keepalive_set’:
drivers/net/ovpn-dco/peer.c:306:17: error: implicit declaration of function
‘del_timer’; did you mean ‘add_timer’? [-Wimplicit-function-declaration]
- 306 | del_timer(&peer->keepalive_xmit);
- | ^~~~~~~~~
- | add_timer
+ 306 | del_timer(&peer->keepalive_xmit);
+ | ^~~~~~~~~
+ | add_timer
drivers/net/ovpn-dco/main.c:212:35: error: initialization of ‘int (*)(struct
net_device *, struct rtnl_newlink_params *, struct netlink_ext_ack *)’ from
incompatible pointer type ‘int (*)(struct net *, struct net_device *, struct
nlattr **, struct nlattr **, struct netlink_ext_ack *)’
[-Wincompatible-pointer-types]
- 212 | .newlink = ovpn_newlink,
- | ^~~~~~~~~~~~
+ 212 | .newlink = ovpn_newlink,
+ | ^~~~~~~~~~~~
In file included from drivers/net/ovpn-dco/crypto.h:16,
- from drivers/net/ovpn-dco/addr.h:13,
- from drivers/net/ovpn-dco/peer.h:13,
- from drivers/net/ovpn-dco/ovpn.h:14,
- from drivers/net/ovpn-dco/sock.c:11:
+ from drivers/net/ovpn-dco/addr.h:13,
+ from drivers/net/ovpn-dco/peer.h:13,
+ from drivers/net/ovpn-dco/ovpn.h:14,
+ from drivers/net/ovpn-dco/sock.c:11:
/var/lib/dkms/ovpn-dco/0.0+git20241121/build/include/uapi/linux/ovpn_dco.h:241:9:
error: redeclaration of enumerator ‘IFLA_OVPN_UNSPEC’
- 241 | IFLA_OVPN_UNSPEC = 0,
- | ^~~~~~~~~~~~~~~~
+ 241 | IFLA_OVPN_UNSPEC = 0,
+ | ^~~~~~~~~~~~~~~~
/var/lib/dkms/ovpn-dco/0.0+git20241121/build/include/uapi/linux/ovpn_dco.h:242:9:
error: redeclaration of enumerator ‘IFLA_OVPN_MODE’
- 242 | IFLA_OVPN_MODE,
- | ^~~~~~~~~~~~~~
+ 242 | IFLA_OVPN_MODE,
+ | ^~~~~~~~~~~~~~
/usr/src/linux-headers-6.16.0-10-generic/include/uapi/linux/if_link.h:2003:25:
error: expected identifier before ‘(’ token
- 2003 | #define IFLA_OVPN_MAX (__IFLA_OVPN_MAX - 1)
- | ^
+ 2003 | #define IFLA_OVPN_MAX (__IFLA_OVPN_MAX - 1)
+ | ^
/var/lib/dkms/ovpn-dco/0.0+git20241121/build/include/uapi/linux/ovpn_dco.h:245:9:
note: in expansion of macro ‘IFLA_OVPN_MAX’
- 245 | IFLA_OVPN_MAX = __IFLA_OVPN_AFTER_LAST - 1,
- | ^~~~~~~~~~~~~
+ 245 | IFLA_OVPN_MAX = __IFLA_OVPN_AFTER_LAST - 1,
+ | ^~~~~~~~~~~~~
/var/lib/dkms/ovpn-dco/0.0+git20241121/build/include/uapi/linux/ovpn_dco.h:248:6:
error: redeclaration of ‘enum ovpn_mode’
- 248 | enum ovpn_mode {
- | ^~~~~~~~~
+ 248 | enum ovpn_mode {
+ | ^~~~~~~~~
/usr/src/linux-headers-6.16.0-10-generic/include/uapi/linux/if_link.h:1992:6:
note: originally defined here
- 1992 | enum ovpn_mode {
- | ^~~~~~~~~
+ 1992 | enum ovpn_mode {
+ | ^~~~~~~~~
[ Fix ]
- Patch the code to properly support Linux 6.15 and 6.16.
+ Patch the code to properly support Linux 6.15 and 6.16 by applying the
following commits from upstream:
+ - e4393e8a2a8561: ovpn-dco: port to 6.15 and add compat hacks
+ - 98a25deb5502d2: ovpn-dco: compat hack for 6.15 timer_* API renaming
+ - b1b490e220b13f: ovpn-dco: port to 6.16 and add compat hacks
+
[ Test Plan ]
- ...
+ Build and load correctly the dkms on Questing:
+
+ $ sudo apt install -y openvpn-dco-dkms
+ $ dkms status
+ $ sudo modprobe ovpn-dco-v2
+ $ lsmod | grep ovpn
** Patch added: "openvpn-questing-6.16-fix.debdiff"
https://bugs.launchpad.net/ubuntu/+source/openvpn-dco-dkms/+bug/2119129/+attachment/5894871/+files/openvpn-questing-6.16-fix.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2119129
Title:
openvpn-dco-dkms FTBFS in Questing with 6.15/6.16 kernel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openvpn-dco-dkms/+bug/2119129/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs