errors building 0.0.20170706 and later with Linux 3.14.0
Jaron Kent-Dobias
jaron at kent-dobias.com
Thu Jul 27 19:19:23 CEST 2017
Hello,
I cannot install the wireguard module with dkms on one of my machines
for all tagged versions past 0.0.20170628. It runs linux 3.14.0, and
complains that kvmalloc, kvzalloc, and kvfree have been redefined in
wireguard's compat.h. The full logfile for 0.0.20170706 is attached.
Thanks in advance for any help,
Jaron
-------------- next part --------------
DKMS make.log for wireguard-0.0.20170706 for kernel 3.14.0-26-ARCH (armv7l)
Mon Jul 17 20:53:41 EDT 2017
make: Entering directory '/usr/lib/modules/3.14.0-26-ARCH/build'
LD /var/lib/dkms/wireguard/0.0.20170706/build/built-in.o
CC [M] /var/lib/dkms/wireguard/0.0.20170706/build/main.o
CC [M] /var/lib/dkms/wireguard/0.0.20170706/build/noise.o
CC [M] /var/lib/dkms/wireguard/0.0.20170706/build/device.o
CC [M] /var/lib/dkms/wireguard/0.0.20170706/build/peer.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
#define netdev_alloc_pcpu_stats(type) \
In file included from include/net/ip_tunnels.h:5:0,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
#define netdev_alloc_pcpu_stats(type) \
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:329:20: error: static declaration of ?kvfree? follows non-static declaration
static inline void kvfree(const void *addr)
^~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:400:13: note: previous declaration of ?kvfree? was here
extern void kvfree(const void *addr);
^~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
#define netdev_alloc_pcpu_stats(type) \
In file included from include/net/ip_tunnels.h:5:0,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
#define netdev_alloc_pcpu_stats(type) \
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:329:20: error: static declaration of ?kvfree? follows non-static declaration
static inline void kvfree(const void *addr)
^~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:400:13: note: previous declaration of ?kvfree? was here
extern void kvfree(const void *addr);
^~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
#define netdev_alloc_pcpu_stats(type) \
In file included from include/net/ip_tunnels.h:5:0,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
#define netdev_alloc_pcpu_stats(type) \
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:329:20: error: static declaration of ?kvfree? follows non-static declaration
static inline void kvfree(const void *addr)
^~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:400:13: note: previous declaration of ?kvfree? was here
extern void kvfree(const void *addr);
^~~~~~
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170706/build/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170706/build/device.o] Error 1
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170706/build/noise.o] Error 1
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
#define netdev_alloc_pcpu_stats(type) \
In file included from include/net/ip_tunnels.h:5:0,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
#define netdev_alloc_pcpu_stats(type) \
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
static inline void *kvzalloc(size_t size, gfp_t flags)
^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:329:20: error: static declaration of ?kvfree? follows non-static declaration
static inline void kvfree(const void *addr)
^~~~~~
In file included from include/linux/scatterlist.h:6:0,
from include/linux/dmaengine.h:28,
from include/linux/skbuff.h:31,
from include/linux/ip.h:20,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from /var/lib/dkms/wireguard/0.0.20170706/build/compat/compat.h:71,
from <command-line>:0:
include/linux/mm.h:400:13: note: previous declaration of ?kvfree? was here
extern void kvfree(const void *addr);
^~~~~~
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170706/build/peer.o] Error 1
make: *** [Makefile:1298: _module_/var/lib/dkms/wireguard/0.0.20170706/build] Error 2
make: Leaving directory '/usr/lib/modules/3.14.0-26-ARCH/build'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20170727/3d3d675e/attachment-0001.asc>
More information about the WireGuard
mailing list