Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Andrey Petrov <apetrov@vmware.com>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: CentOS kernel module build failure
Date: Wed, 4 Oct 2017 14:03:19 +0000	[thread overview]
Message-ID: <CY1PR0501MB157904D69DD3E95529A3E04AC4730@CY1PR0501MB1579.namprd05.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 11364 bytes --]

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 <command-line>: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/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: 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/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: 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/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
In file included from <command-line>: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/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: 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/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/queueing.o
In file included from <command-line>: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/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
In file included from <command-line>: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/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: 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/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: 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/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/hashtables.o
In file included from <command-line>: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/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/routingtable.o
In file included from <command-line>: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/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/ratelimiter.o
In file included from <command-line>: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/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: 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/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: 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/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 ‘netlink_init’:
/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 <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: error: ‘genl_register_family_with_ops’ undeclared (first use in this function)
 #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 expansion of macro ‘genl_register_family’
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:434:33: note: each undeclared identifier is reported only once for each function it appears 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 expansion of macro ‘genl_register_family’
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:489:1: warning: control 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.

[-- Attachment #2: Type: text/html, Size: 17882 bytes --]

             reply	other threads:[~2017-10-04 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 14:03 Andrey Petrov [this message]
2017-10-05  4:37 ` Jason A. Donenfeld
2017-10-05  8:12   ` Andrey Petrov
2017-10-05 13:10     ` Jason A. Donenfeld
2017-10-05 13:22       ` 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=CY1PR0501MB157904D69DD3E95529A3E04AC4730@CY1PR0501MB1579.namprd05.prod.outlook.com \
    --to=apetrov@vmware.com \
    --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).