From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: apetrov@vmware.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ccabe4b8 for ; Wed, 4 Oct 2017 13:34:21 +0000 (UTC) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0040.outbound.protection.outlook.com [104.47.34.40]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3ec5d798 for ; Wed, 4 Oct 2017 13:34:20 +0000 (UTC) From: Andrey Petrov To: "wireguard@lists.zx2c4.com" Subject: CentOS kernel module build failure Date: Wed, 4 Oct 2017 14:03:19 +0000 Message-ID: Content-Type: multipart/alternative; boundary="_000_CY1PR0501MB157904D69DD3E95529A3E04AC4730CY1PR0501MB1579_" MIME-Version: 1.0 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --_000_CY1PR0501MB157904D69DD3E95529A3E04AC4730CY1PR0501MB1579_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, Up-to-date CentOS Linux release 7.4.1708 $ uname -r 3.10.0-693.2.2.el7.x86_64 Followed the official instructions at https://www.wireguard.com/install/ to= install the latest wireguard snapshot on a fully up-to-date CentOS 7.4 but= the kernel module compilation failed: $ cat /var/lib/dkms/wireguard/0.0.20171001/build/make.log DKMS make.log for wireguard-0.0.20171001 for kernel 3.10.0-693.2.2.el7.x86_= 64 (x86_64) Wed Oct 4 13:57:39 UTC 2017 make: Entering directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64' LD /var/lib/dkms/wireguard/0.0.20171001/build/built-in.o CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/main.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/noise.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/device.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/peer.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/timers.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/queueing.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/send.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/receive.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/socket.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/hashtables.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/routingtable.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/ratelimiter.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/cookie.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ CC [M] /var/lib/dkms/wireguard/0.0.20171001/build/netlink.o In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warning: = "GENL_UNS_ADMIN_PERM" redefined [enabled by default] #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM ^ In file included from include/linux/genetlink.h:4:0, from include/net/genetlink.h:4, from /var/lib/dkms/wireguard/0.0.20171001/build/compat/com= pat.h:406, from :0: include/uapi/linux/genetlink.h:24:0: note: this is the location of the prev= ious definition #define GENL_UNS_ADMIN_PERM 0x10 ^ /var/lib/dkms/wireguard/0.0.20171001/build/netlink.c: In function =91netlin= k_init=92: /var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:42: error: macro "= genl_register_family_with_ops" passed 3 arguments, but takes just 2 return genl_register_family(&genl_family); ^ In file included from :0:0: /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: error: = =91genl_register_family_with_ops=92 undeclared (first use in this function) #define genl_register_family(a) genl_register_family_with_ops(a, (struct g= enl_ops *)genl_ops, ARRAY_SIZE(genl_ops)) ^ /var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in expans= ion of macro =91genl_register_family=92 return genl_register_family(&genl_family); ^ /var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: note: ea= ch undeclared identifier is reported only once for each function it appears= in #define genl_register_family(a) genl_register_family_with_ops(a, (struct g= enl_ops *)genl_ops, ARRAY_SIZE(genl_ops)) ^ /var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in expans= ion of macro =91genl_register_family=92 return genl_register_family(&genl_family); ^ /var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:489:1: warning: contro= l reaches end of non-void function [-Wreturn-type] } ^ make[1]: *** [/var/lib/dkms/wireguard/0.0.20171001/build/netlink.o] Error 1 make: *** [_module_/var/lib/dkms/wireguard/0.0.20171001/build] Error 2 make: Leaving directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64' - A. --_000_CY1PR0501MB157904D69DD3E95529A3E04AC4730CY1PR0501MB1579_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi,


Up-to-date CentOS Linux release 7.4.1708

$ uname -r

3.10.0-693.2.2.el7.x86_64


Followed the official instructions at https://www.wireguard.com/install/ to install<= /span> the latest wiregua= rd snapshot on a fully up-to-date CentOS 7.4 but the kernel module compilation= failed:


$ cat /var/lib/dkms/wireguard/0.0.20171001/build/make.log
DKMS make.log for wireguard-0.0.20171001 for kernel 3.10.0-693.2.2.el7= .x86_64 (x86_64)
Wed Oct  4 13:57:39 UTC 2017
make: Entering directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'<= /div>
  LD      /var/lib/dkms/wireguard/0.0.20171001/bui= ld/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/main.o<= /div>
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/noise.o=
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/device.= o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/peer.o<= /div>
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/timers.= o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/queuein= g.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/send.o<= /div>
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/receive= .o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/socket.= o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/hashtab= les.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/routing= table.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/ratelim= iter.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/cookie.= o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/netlink= .o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:428:0: warn= ing: "GENL_UNS_ADMIN_PERM" redefined [enabled by default]
 #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
 ^
In file included from include/linux/genetlink.h:4:0,
                 from inc= lude/net/genetlink.h:4,
                 from /va= r/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:406,
                 from <= ;command-line>:0:
include/uapi/linux/genetlink.h:24:0: note: this is the location of the= previous definition
 #define GENL_UNS_ADMIN_PERM 0x10
 ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c: In function =91n= etlink_init=92:
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:42: error: ma= cro "genl_register_family_with_ops" passed 3 arguments, but takes= just 2
  return genl_register_family(&genl_family);
                    =                      = ; ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: err= or: =91genl_register_family_with_ops=92 undeclared (first use in this funct= ion)
 #define genl_register_family(a) genl_register_family_with_ops(a,= (struct genl_ops *)genl_ops, ARRAY_SIZE(genl_ops))
                    =              ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in e= xpansion of macro =91genl_register_family=92
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: not= e: each undeclared identifier is reported only once for each function it ap= pears in
 #define genl_register_family(a) genl_register_family_with_ops(a,= (struct genl_ops *)genl_ops, ARRAY_SIZE(genl_ops))
                    =              ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in e= xpansion of macro =91genl_register_family=92
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:489:1: warning: c= ontrol reaches end of non-void function [-Wreturn-type]
 }
 ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20171001/build/netlink.o] Er= ror 1
make: *** [_module_/var/lib/dkms/wireguard/0.0.20171001/build] Error 2=
make: Leaving directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'


- A.

--_000_CY1PR0501MB157904D69DD3E95529A3E04AC4730CY1PR0501MB1579_--