runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
943 stars 132 forks source link

rtd1619b arch Compile error #176

Open AlimFreight opened 1 year ago

AlimFreight commented 1 year ago

Hi there, Yesterday I tried to compile for rtd1619b arch, since it was added to 7.2. But I got this error.

In file included from <command-line>: /source/WireGuard/wireguard-linux-compat-1.0.20220627/src/compat/compat.h:41:2: error: #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required." 41 | #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required." | ^~~~~ scripts/Makefile.build:280: recipe for target '/source/WireGuard/wireguard-linux-compat-1.0.20220627/src/main.o' failed make[3]: *** [/source/WireGuard/wireguard-linux-compat-1.0.20220627/src/main.o] Error 1 Makefile:1822: recipe for target '/source/WireGuard/wireguard-linux-compat-1.0.20220627/src' failed make[2]: *** [/source/WireGuard/wireguard-linux-compat-1.0.20220627/src] Error 2 Makefile:26: recipe for target 'module' failed make[1]: *** [module] Error 2 make[1]: Leaving directory '/source/WireGuard/wireguard-linux-compat-1.0.20220627/src' Makefile:72: recipe for target 'wireguard-linux-compat-1.0.20220627/src/wireguard.ko' failed make: *** [wireguard-linux-compat-1.0.20220627/src/wireguard.ko] Error 2 [Error] Build project fail! Time cost: 00:00:12 [Build-->WireGuard] [INFO] Build WireGuard finished! ----------------- Time cost statistics ----------------- Time cost: 00:00:12 [Build-->WireGuard] ######################################################## Error(s) occurred on project "WireGuard" ########################################################

Is it any way I can I fix it?

marcelschmidtdev commented 6 months ago

Hey @AlimFreight, I managed to get it working with a patch. I created a pull request here #189