[WireGuard] Error building against grsec-enabled kernel

Toke Høiland-Jørgensen toke at toke.dk
Wed Oct 19 15:03:48 CEST 2016

I'm getting build errors when building WireGuard against a grsec-enabled
kernel (on Arch linux):

DKMS make.log for wireguard-0.0.20161014 for kernel (x86_64)
Wed 19 Oct 14:59:25 CEST 2016
make: Entering directory '/usr/lib/modules/'
  LD      /var/lib/dkms/wireguard/0.0.20161014/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20161014/build/main.o
/var/lib/dkms/wireguard/0.0.20161014/build/main.o: warning: objtool: mod_exit(): can't find starting instruction
  CC [M]  /var/lib/dkms/wireguard/0.0.20161014/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20161014/build/device.o
/var/lib/dkms/wireguard/0.0.20161014/build/device.c:330:29: error: constified variable ‘link_ops’ placed into writable section ".data..read_mostly"
 static struct rtnl_link_ops link_ops __read_mostly = {
make[1]: *** [scripts/Makefile.build:290: /var/lib/dkms/wireguard/0.0.20161014/build/device.o] Error 1
make: *** [Makefile:1465: _module_/var/lib/dkms/wireguard/0.0.20161014/build] Error 2
make: Leaving directory '/usr/lib/modules/'

Any idea how to fix this?


More information about the WireGuard mailing list