after apt upgrade wireguard is unable to build kernel module

Bug #1883316 reported by Pavel Dahncke
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wireguard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 16.04.6 LTS
Release: 16.04

wireguard-dkms:
  Installed: 1.0.20200611-0ppa1~16.04
  Candidate: 1.0.20200611-0ppa1~16.04
  Version table:
 *** 1.0.20200611-0ppa1~16.04 500
        500 http://ppa.launchpad.net/wireguard/wireguard/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

Make Log:

DKMS make.log for wireguard-1.0.20200611 for kernel 4.4.0-21-generic (x86_64)
Fri Jun 12 18:23:37 CEST 2020
make: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
  LD /var/lib/dkms/wireguard/1.0.20200611/build/built-in.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/main.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/noise.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/device.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/peer.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/timers.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/queueing.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/send.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/receive.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/socket.o
/var/lib/dkms/wireguard/1.0.20200611/build/socket.c: In function ‘send6’:
/var/lib/dkms/wireguard/1.0.20200611/build/socket.c:139:18: error: ‘const struct ipv6_stub’ has no member named ‘ipv6_dst_lookup_flow’
   dst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl,
                  ^
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/wireguard/1.0.20200611/build/socket.o' failed
make[1]: *** [/var/lib/dkms/wireguard/1.0.20200611/build/socket.o] Error 1
Makefile:1396: recipe for target '_module_/var/lib/dkms/wireguard/1.0.20200611/build' failed
make: *** [_module_/var/lib/dkms/wireguard/1.0.20200611/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'

Revision history for this message
Pavel Dahncke (hermez) wrote :

we tried to build old version of wireguard-dkms 1.0.20200520, it builds without error.

Revision history for this message
Khodadad (khodadadp) wrote :

Getting the same error on (Ubuntu 16.04 LTS, Xenial). /var/crash/wireguard-dkms.0.crash contents below:

```
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for wireguard-1.0.20200611 for kernel 4.4.0-177-generic (x86_64)
 Fri Jun 12 20:09:26 EDT 2020
 make: Entering directory '/usr/src/linux-headers-4.4.0-177-generic'
   LD /var/lib/dkms/wireguard/1.0.20200611/build/built-in.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/main.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/noise.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/device.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/peer.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/timers.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/queueing.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/send.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/receive.o
   CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/socket.o
 /var/lib/dkms/wireguard/1.0.20200611/build/socket.c: In function ‘send6’:
 /var/lib/dkms/wireguard/1.0.20200611/build/socket.c:139:18: error: ‘const struct ipv6_stub’ has no member named ‘ipv6_dst_lookup_flow’
    dst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl,
                   ^
 scripts/Makefile.build:285: recipe for target '/var/lib/dkms/wireguard/1.0.20200611/build/socket.o' failed
 make[1]: *** [/var/lib/dkms/wireguard/1.0.20200611/build/socket.o] Error 1
 Makefile:1457: recipe for target '_module_/var/lib/dkms/wireguard/1.0.20200611/build' failed
 make: *** [_module_/var/lib/dkms/wireguard/1.0.20200611/build] Error 2
 make: Leaving directory '/usr/src/linux-headers-4.4.0-177-generic'
DKMSKernelVersion: 4.4.0-177-generic
Date: Fri Jun 12 20:09:36 2020
DuplicateSignature: dkms:wireguard-dkms:1.0.20200611-0ppa1~16.04:/var/lib/dkms/wireguard/1.0.20200611/build/socket.c:139:18: error: ‘const struct ipv6_stub’ has no member named ‘ipv6_dst_lookup_flow’
Package: wireguard-dkms 1.0.20200611-0ppa1~16.04
PackageVersion: 1.0.20200611-0ppa1~16.04
SourcePackage: wireguard-linux-compat
Title: wireguard-dkms 1.0.20200611-0ppa1~16.04: wireguard kernel module failed to build
```

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wireguard (Ubuntu):
status: New → Confirmed
Revision history for this message
Augustus Meyer (reinerotto) wrote :

Having the same problem:
DKMS make.log for wireguard-1.0.20200611 for kernel 4.4.0-128-generic (x86_64)
Sun Aug 30 18:55:58 CEST 2020
make: Entering directory '/usr/src/linux-headers-4.4.0-128-generic'
  LD /var/lib/dkms/wireguard/1.0.20200611/build/built-in.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/main.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/noise.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/device.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/peer.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/timers.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/queueing.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/send.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/receive.o
  CC [M] /var/lib/dkms/wireguard/1.0.20200611/build/socket.o
/var/lib/dkms/wireguard/1.0.20200611/build/socket.c: In function ‘send6’:
/var/lib/dkms/wireguard/1.0.20200611/build/socket.c:139:18: error: ‘const struct ipv6_stub’ has no member named ‘ipv6_dst_lookup_flow’
   dst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl,
                  ^
scripts/Makefile.build:277: recipe for target '/var/lib/dkms/wireguard/1.0.20200611/build/socket.o' failed
make[1]: *** [/var/lib/dkms/wireguard/1.0.20200611/build/socket.o] Error 1
Makefile:1437: recipe for target '_module_/var/lib/dkms/wireguard/1.0.20200611/build' failed
make: *** [_module_/var/lib/dkms/wireguard/1.0.20200611/build] Error 2

Revision history for this message
Colan Schwartz (colan) wrote :

This looks like a duplicate of bug #1862413.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.