Hi-
I'm having difficulty building the current WireGuard Git master (c563bb275181a753853447c9c9c3a6767a6a1554) against a slightly older checkout of Linus' Git master (72cf0b07418a9c8349aa9137194b1ccba6e54a9d). The error I get is:
  CC      net/wireguard/main.o
In file included from <command-line>:
././net/wireguard/compat/compat.h:828:21: error: redeclaration of enumerator ‘NLA_UNSPEC’
 #define NLA_MIN_LEN NLA_UNSPEC
                     ^~~~~~~~~~
./include/net/netlink.h:186:2: note: in expansion of macro ‘NLA_MIN_LEN’
  NLA_MIN_LEN,
  ^~~~~~~~~~~
In file included from ./include/net/rtnetlink.h:6,
                 from ./include/net/sch_generic.h:17,
                 from ./include/linux/filter.h:25,
                 from ./include/net/sock.h:64,
                 from ./include/linux/tcp.h:23,
                 from ./include/linux/ipv6.h:87,
                 from ./include/net/ipv6.h:16,
                 from ././net/wireguard/compat/compat.h:843,
                 from <command-line>:
./include/net/netlink.h:166:2: note: previous definition of ‘NLA_UNSPEC’ was here
  NLA_UNSPEC,
  ^~~~~~~~~~
scripts/Makefile.build:278: recipe for target 'net/wireguard/main.o' failed
make[2]: *** [net/wireguard/main.o] Error 1
scripts/Makefile.build:489: recipe for target 'net/wireguard' failed
make[1]: *** [net/wireguard] Error 2
Makefile:1073: recipe for target 'net' failed
make: *** [net] Error 2

The full build log (GNU LZMA-compressed) is attached.

-Robin K.

On Fri, 2019-05-17 at 08:36 -0500, Bruno Wolff III wrote:
On Fri, May 17, 2019 at 13:12:07 +0200,
  "Jason A. Donenfeld" <
Jason@zx2c4.com
> wrote:
Thanks for getting this started. This commit should take care of it:

https://git.zx2c4.com/WireGuard/commit/?id=7a83d1e6da8aa27da8fd4d06e6b7d11198c7c049


Thanks for the fix. I'm using it with Fedora's 5.2.0-0.rc0.git8.1.fc31.x86_64 
kernel successfully. (Note not all arches built successfully with that 
kernel, but it was the latest for x86_64 I could get right now for testing 
a 5.2 kernel with the new fix.)
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com

https://lists.zx2c4.com/mailman/listinfo/wireguard