adrianmihalko / raspberrypiwireguard

Install and configure WireGuard on Raspberry Pi (and others)
840 stars 77 forks source link

Compiling fails #46

Closed simphide closed 3 years ago

simphide commented 3 years ago

When I try to compile the code I get the following error message - does anybody have an idea? I have a Pi Zero

pi@raspberry:~/WireGuard/src $ make
  CC [M]  /home/pi/WireGuard/src/main.o
In file included from /home/pi/WireGuard/src/main.c:9:
/home/pi/WireGuard/src/queueing.h: In function 'wg_reset_packet':
/home/pi/WireGuard/src/queueing.h:100:2: error: implicit declaration of function 'skb_reset_tc'; did you mean 'skb_reserve'? [-Werror=implicit-function-declaration]
  skb_reset_tc(skb);
  ^~~~~~~~~~~~
  skb_reserve
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:266: /home/pi/WireGuard/src/main.o] Error 1
make[1]: *** [Makefile:1709: /home/pi/WireGuard/src] Error 2
make: *** [Makefile:38: module] Error 2
simphide commented 3 years ago

Okay, I got the solution in the IRC.

the Git mentioned in https://github.com/adrianmihalko/raspberrypiwireguard/wiki/Install-WireGuard-on-Raspberry-Pi-1,-2-(not-v1.2),-Zero,-Zero-W is outdated. You have to use the right one (https://git.zx2c4.com/wireguard-linux-compat/)

Please fix the tutorial!