[GH-ISSUE #264] Ubuntu kernel 7.0.0-38-generic broke compatibility // Не собирает проект на 7.0.0-38-generic #146

Closed
opened 2026-10-13 21:07:01 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @BSDteam on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/264

В общем, там такая глупость, что разрабы убунты сделали патч (в 7.0.0-34-generic все работает отлично), который требует частичного применения фикса в compat/compat.h

Идея в том что на строке 1447 идет вот такой блок, и в нём нужно закомментировать только одну строку, чтобы сборка стала успешной. Полностью закоментить весь дефайн не вариант (не скомпилируется).

Проблема воспроизводится на 7.0.0-38-generic, а в 7.0.0-34-generic все работает исправно. Я НЕ знаю, как с этим справиться, косяк явно Canonical. Но кому хочется костыль вот решение.

// compat/compat.h:1447
#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 1, 5)
#include <net/udp_tunnel.h>
// #define setup_udp_tunnel_sock(net, sk, sock_cfg) setup_udp_tunnel_sock(net, sk->sk_socket, sock_cfg) // Комменть эту строку как сказано
#define udp_tunnel_sock_release(sk) udp_tunnel_sock_release(sk->sk_socket)
#endif

Basically, the situation is a bit ridiculous: the Ubuntu developers created a patch (everything works perfectly on 7.0.0-34-generic) that requires a partial fix in compat/compat.h.

The idea is that there is a specific block at line 1447, and you need to comment out just one line within it for the build to succeed. Commenting out the entire definition isn't an option (it won't compile).

The issue occurs on 7.0.0-38-generic, whereas everything works fine on 7.0.0-34-generic. I don't know how to properly resolve this—it's clearly a screw-up by Canonical—but if you're looking for a workaround, here is the solution.

Originally created by @BSDteam on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/264 В общем, там такая глупость, что разрабы убунты сделали патч (в 7.0.0-34-generic все работает отлично), который требует частичного применения фикса в compat/compat.h Идея в том что на строке 1447 идет вот такой блок, и в нём нужно закомментировать только одну строку, чтобы сборка стала успешной. Полностью закоментить весь дефайн не вариант (не скомпилируется). Проблема воспроизводится на 7.0.0-38-generic, а в 7.0.0-34-generic все работает исправно. Я НЕ знаю, как с этим справиться, косяк явно Canonical. Но кому хочется костыль вот решение. ``` // compat/compat.h:1447 #if LINUX_VERSION_CODE < KERNEL_VERSION(7, 1, 5) #include <net/udp_tunnel.h> // #define setup_udp_tunnel_sock(net, sk, sock_cfg) setup_udp_tunnel_sock(net, sk->sk_socket, sock_cfg) // Комменть эту строку как сказано #define udp_tunnel_sock_release(sk) udp_tunnel_sock_release(sk->sk_socket) #endif ``` Basically, the situation is a bit ridiculous: the Ubuntu developers created a patch (everything works perfectly on 7.0.0-34-generic) that requires a partial fix in `compat/compat.h`. The idea is that there is a specific block at line 1447, and you need to comment out just one line within it for the build to succeed. Commenting out the entire definition isn't an option (it won't compile). The issue occurs on 7.0.0-38-generic, whereas everything works fine on 7.0.0-34-generic. I don't know how to properly resolve this—it's clearly a screw-up by Canonical—but if you're looking for a workaround, here is the solution.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#146
No description provided.