Installation issue on centos 7 kernel 3.10

Wang Zun Tao zun-tao.wang at ubisoft.com
Wed May 3 12:03:35 CEST 2017


Hello Team,

I tried to install wireguard via source code on centos 7.
But failed, see below message.
On the wireguard homepage, it says supports 3.10.

Version of centos 7.
[root at localhost ~]# uname -r
3.10.0-514.16.1.el7.x86_64

See whole error message in attachment.

make -C /lib/modules/3.10.0-514.16.1.el7.x86_64/build M=/opt/scripts/WireGuard-0.0.20170421/src modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
  CC [M]  /opt/scripts/WireGuard-0.0.20170421/src/main.o
In file included from <command-line>:0:0:
/opt/scripts/WireGuard-0.0.20170421/src/compat/compat.h:13:2: warning: #warning "WireGuard support for kernels < 4.1 should work but is slightly experimental." [-Wcpp]
#warning "WireGuard support for kernels < 4.1 should work but is slightly experimental."
  ^
In file included from ./arch/x86/include/asm/paravirt_types.h:45:0,
                 from ./arch/x86/include/asm/ptrace.h:64,
                 from ./arch/x86/include/asm/alternative.h:8,
                 from ./arch/x86/include/asm/bitops.h:16,
                 from include/linux/bitops.h:36,
                 from include/linux/kernel.h:10,
                 from include/linux/skbuff.h:17,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /opt/scripts/WireGuard-0.0.20170421/src/compat/compat.h:62,
                 from <command-line>:0:
/opt/scripts/WireGuard-0.0.20170421/src/compat/compat.h:27:21: error: duplicate member 'data'
#define headers_end data
                     ^


Sincerely,
Wang Zun Tao
IT-GNS - Network and Systems Administrator
Tel: 86 21 5467-4545  x8397
zun-tao.wang at ubisoft.com<mailto:zun-tao.wang at ubisoft.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20170503/305b5911/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wireguard_make_error.txt
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20170503/305b5911/attachment-0001.txt>


More information about the WireGuard mailing list