mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-14 05:41:56 +00:00
[GH-ISSUE #264] Ubuntu kernel 7.0.0-38-generic broke compatibility // Не собирает проект на 7.0.0-38-generic #146
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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. Но кому хочется костыль вот решение.
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.