mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[GH-ISSUE #12] error: implicit declaration of function ‘blake2s256_hmac’ #5
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#5
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 @UglyAnimal on GitHub (Aug 1, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/12
Getting following error when running
makeon raspberry pi 4:@Trotzky commented on GitHub (Sep 7, 2024):
Got same error on Ubuntu 22.04.4 LTS
5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
DKMS make.log for amneziawg-1.0.0 for kernel 5.15.0-119-generic (x86_64) Sat Sep 7 04:03:44 AM MSK 2024 make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build' ---cut---- patching file uapi/wireguard.h CC [M] /var/lib/dkms/amneziawg/1.0.0/build/generated/main.o CC [M] /var/lib/dkms/amneziawg/1.0.0/build/generated/noise.o /var/lib/dkms/amneziawg/1.0.0/build/generated/noise.c: In function ‘kdf’: /var/lib/dkms/amneziawg/1.0.0/build/generated/noise.c:325:9: error: implicit declaration of function ‘blake2s256_hmac’ [-Werror=implicit-function-declaration] 325 | blake2s256_hmac(secret, data, chaining_key, data_len, NOISE_HASH_LEN); | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:297: /var/lib/dkms/amneziawg/1.0.0/build/generated/noise.o] Error 1 make[1]: *** [Makefile:1911: /var/lib/dkms/amneziawg/1.0.0/build/generated] Error 2 make: *** [Makefile:93: module] Error 2 make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build'@Trotzky commented on GitHub (Sep 7, 2024):
At some point blake2s256_hmac was removed from kernel crypto library
Some info on that:
https://patchwork.kernel.org/project/netdevbpf/patch/20220111220506.742067-2-Jason@zx2c4.com/
Confirmed by reading blake2s.h
in v5.15.43 we have blake2s256_hmac at the end of blake2s.h
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/crypto/blake2s.h?h=v5.15.43
Starting from v5.15.44 it was removed!
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/crypto/blake2s.h?h=v5.15.44
amnesiawg kernel module is based on older kernel version and can't be built for kernels newer than v5.15.43 ???
@leninalive commented on GitHub (Sep 15, 2024):
@Trotzky how did you obtain kernel sources? For your kernel AmneziaWG uses patch method to build final sources for itself so you must get correct sources for your kernel before compilation.
@ushakov commented on GitHub (Sep 20, 2024):
@Trotzky
I believe this is not relevant to this issue as both you and the OP (and also me:) have 5.15.0 kernel which contains that function. However I cannot trace how amneziawg-dkms build includes, or is supposed to include, that header...
I also experience this on Ubuntu 24.04.5. My kernel sources are installed automatically by building amneziawg-dkms version
1.0.0-0~202409181554+8d1b073~ubuntu22.04.1from the PPA and they do match the running kernel.@Einheri commented on GitHub (Dec 5, 2024):
the same problem on 5.15.0-126-generic , Ubuntu 24.04.5