wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Markus Grundmann <markus@activezone.de>
To: wireguard@lists.zx2c4.com
Subject: Debian 4.9.0.9-amd64 :: DMKS failed
Date: Mon, 19 Aug 2019 14:06:37 +0200	[thread overview]
Message-ID: <a8490bd3-e273-6431-6ca5-5fc4bba0ce19@activezone.de> (raw)

This is a new debian VM running on BHYVE. After the installation and
upgrading operating system the following DKMS fails.

Installation procedure:
1) Modifying the files described on wireguard.com
2) apt update
3) apt install wireguard

[FAIL]

// Linux raspivm 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5
(2019-08-11) x86_64 GNU/Linux

### Manual removing of 'wireguard-dkms'

root@raspivm:/# apt remove wireguard-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  dkms fakeroot gcc libfakeroot linux-headers-amd64 sudo wireguard-tools
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  wireguard-dkms
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1,780 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 64696 files and directories currently installed.)
Removing wireguard-dkms (0.0.20190702-1) ...

------------------------------
Deleting module version: 0.0.20190702
completely from the DKMS tree.
------------------------------
Done.

### Try to reinstall 'wireguard-dkms'

root@raspivm:/# apt install wireguard-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  wireguard-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 263 kB of archives.
After this operation, 1,780 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian unstable/main amd64 wireguard-dkms
all 0.0.20190702-1 [263 kB]
Fetched 263 kB in 0s (3,246 kB/s)
Selecting previously unselected package wireguard-dkms.
(Reading database ... 64553 files and directories currently installed.)
Preparing to unpack .../wireguard-dkms_0.0.20190702-1_all.deb ...
Unpacking wireguard-dkms (0.0.20190702-1) ...
Setting up wireguard-dkms (0.0.20190702-1) ...
Loading new wireguard-0.0.20190702 DKMS files...
Building for 4.9.0-9-amd64
Building initial module for 4.9.0-9-amd64
//
// ERROR
//
Error! Bad return status for module build on kernel: 4.9.0-9-amd64 (x86_64)
Consult /var/lib/dkms/wireguard/0.0.20190702/build/make.log for more
information.
//
//

### I try to build manual but make fails. Error: "hsiphash_key_t unknown".

# /var/lib/dkms/wireguard/0.0.20190702/build# make

ver="#define WIREGUARD_VERSION \"\"" && \
[ "$(cat version.h 2>/dev/null)" != "$ver" ] && \
echo "$ver" > version.h || true
  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
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:309: recipe
for target '/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o' failed
make[4]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o]
Error 1
/usr/src/linux-headers-4.9.0-9-common/Makefile:1544: recipe for target
'_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
make[3]: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:32: recipe for target 'module' failed
make: *** [module] Error 2


-- 
Best regards,
Markus

Better Privacy with PGP encrypted Mail: http://activezone.de/pgp/
Fingerprint: 58C5 8BAF 6FCE B24F 1881 B5B8 F2A8 E1D0 484B 0054
Threema ID: 7ZRET2JY

„Wer die Freiheit aufgibt um Sicherheit zu gewinnen,
 der wird am Ende beides verlieren.“ -- Benjamin Franklin
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

             reply	other threads:[~2019-08-19 12:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-19 12:06 Markus Grundmann [this message]
2019-08-19 22:23 ` Debian 4.9.0.9-amd64 :: DMKS failed Daniel Kahn Gillmor
  -- strict thread matches above, loose matches on Subject: below --
2019-08-19 12:04 Markus Grundmann
2019-08-25 15:59 ` Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8490bd3-e273-6431-6ca5-5fc4bba0ce19@activezone.de \
    --to=markus@activezone.de \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).