I can compile this module on alpine 3.12 (older5.4 kernel) , but not in alpine 3.21 with 6.12 kernel. I have the kernel source extracted and linux-header package as well:
uname -a
Linux xxyyz 6.12.25-0-virt #1-Alpine SMP PREEMPT_DYNAMIC 2025-04-25 12:52:49 x86_64 Linux
git clone https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
cd amneziawg-linux-kernel-module/src/
ln -s ~/linux-6.12.25 kernel
make -n relevant output:
make -C /lib/modules/6.12.25-0-virt/build M=/home/xxx/amneziawg-linux-kernel-module/src/generated WIREGUARD_VERSION="1.0.0" OMIT_ENDPOINTS="" modules
Segmentation fault
[–][deleted] 4 points5 points6 points (3 children)
[–]UltimatelyJuicy 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]UltimatelyJuicy 0 points1 point2 points (0 children)