Failure building on CentOS-7.4

Konstantin Ryabitsev konstantin at linuxfoundation.org
Thu Sep 21 21:43:23 CEST 2017


Hi, all:

I am getting the following error trying to build using the latest
CentOS-7.4 kernel using the 20170907 snapshot:

[root at ossna17 ~]# uname -r
3.10.0-693.2.2.el7.x86_64
[root at ossna17 ~]# cat /var/lib/dkms/wireguard/0.0.20170907/build/make.log
DKMS make.log for wireguard-0.0.20170907 for kernel 3.10.0-693.2.2.el7.x86_64 (x86_64)
Thu Sep 21 19:37:51 UTC 2017
make: Entering directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'
  LD      /var/lib/dkms/wireguard/0.0.20170907/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170907/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170907/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170907/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170907/build/peer.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:98:20: error: static declaration of ‘ipv6_mod_enabled’ follows non-static declaration
 static inline bool ipv6_mod_enabled(void)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:98:20: error: static declaration of ‘ipv6_mod_enabled’ follows non-static declaration
 static inline bool ipv6_mod_enabled(void)
                    ^
In file included from include/net/dsfield.h:11:0,
                 from include/net/ip_tunnels.h:10,
                 from /var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/ipv6.h:260:6: note: previous declaration of ‘ipv6_mod_enabled’ was here
 bool ipv6_mod_enabled(void);
      ^
In file included from include/net/dsfield.h:11:0,
                 from include/net/ip_tunnels.h:10,
                 from /var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/ipv6.h:260:6: note: previous declaration of ‘ipv6_mod_enabled’ was here
 bool ipv6_mod_enabled(void);
      ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:98:20: error: static declaration of ‘ipv6_mod_enabled’ follows non-static declaration
 static inline bool ipv6_mod_enabled(void)
                    ^
In file included from include/net/dsfield.h:11:0,
                 from include/net/ip_tunnels.h:10,
                 from /var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/ipv6.h:260:6: note: previous declaration of ‘ipv6_mod_enabled’ was here
 bool ipv6_mod_enabled(void);
      ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:98:20: error: static declaration of ‘ipv6_mod_enabled’ follows non-static declaration
 static inline bool ipv6_mod_enabled(void)
                    ^
In file included from include/net/dsfield.h:11:0,
                 from include/net/ip_tunnels.h:10,
                 from /var/lib/dkms/wireguard/0.0.20170907/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/ipv6.h:260:6: note: previous declaration of ‘ipv6_mod_enabled’ was here
 bool ipv6_mod_enabled(void);
      ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20170907/build/peer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/var/lib/dkms/wireguard/0.0.20170907/build/main.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20170907/build/device.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20170907/build/noise.o] Error 1
make: *** [_module_/var/lib/dkms/wireguard/0.0.20170907/build] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'

Best,
Konstantin


More information about the WireGuard mailing list