Wireguard installation on Ubuntu 16.04 / kernel 4.4.0-161-generic fails
Martin Jurasik
martin.jurasik at gmx.de
Wed Sep 4 13:34:09 CEST 2019
Tried to install Wireguard on a newly setup Ubuntu 16.04 VPS.
Building initial module fails with „Error! Bad return status …“
Please see log file attached.
Thanks & Regards,
Martin
##### make.log #####
ProblemType: Package
DKMSBuildLog:
DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic (x86_64)
Wed 4 Sep 12:47:09 CEST 2019
make: Entering directory '/usr/src/linux-headers-4.4.0-161-generic'
LD /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/main.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/noise.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/device.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/peer.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/timers.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/send.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/receive.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/socket.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_remove_peer_lists’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:72:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_free_rcu’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:59:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘walk_remove_by_peer.isra.3’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:126:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’
static hsiphash_key_t key;
^
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function ‘wg_ratelimiter_allow’:
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error: implicit declaration of function ‘hsiphash_2u32’ [-Werror=implicit-function-declaration]
bucket = &table_v4[hsiphash_2u32(net_word, ip, &key) &
^
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error: implicit declaration of function ‘hsiphash_3u32’ [-Werror=implicit-function-declaration]
bucket = &table_v6[hsiphash_3u32(net_word, ip >> 32, ip, &key) &
^
cc1: some warnings being treated as errors
scripts/Makefile.build:285: recipe for target '/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o] Error 1
Makefile:1454: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-161-generic'
DKMSKernelVersion: 4.4.0-161-generic
Date: Wed Sep 4 12:47:19 2019
DuplicateSignature: dkms:wireguard-dkms:0.0.20190702-wg1~xenial:/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’
Package: wireguard-dkms 0.0.20190702-wg1~xenial
PackageVersion: 0.0.20190702-wg1~xenial
SourcePackage: wireguard
Title: wireguard-dkms 0.0.20190702-wg1~xenial: wireguard kernel module failed to build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20190904/4d457153/attachment-0001.html>
More information about the WireGuard
mailing list