* BUG: When building on RHEL 8, duplicate function
@ 2019-05-08 19:13 D Neiroukh
0 siblings, 0 replies; only message in thread
From: D Neiroukh @ 2019-05-08 19:13 UTC (permalink / raw)
To: wireguard
[-- Attachment #1.1: Type: text/plain, Size: 1542 bytes --]
I insmod’d the UDP tunnel module for both IPv4 and IPv6 then...
During a build on RHEL 8 I came across this:
In file included from <command-line>:
/home/****/WireGuard/src/compat/compat.h:815:20: error: redefinition of ‘skb_mark_not_on_list’
static inline void skb_mark_not_on_list(struct sk_buff *skb)
^~~~~~~~~~~~~~~~~~~~
In file included from /home/****/WireGuard/src/compat/compat.h:777,
from <command-line>:
./include/linux/skbuff.h:1362:20: note: previous definition of ‘skb_mark_not_on_list’ was here
static inline void skb_mark_not_on_list(struct sk_buff *skb)
^~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:316: /home/s34cr/WireGuard/src/main.o] Error 1
make[1]: *** [Makefile:1528: _module_/home/s34cr/WireGuard/src] Error 2
make: *** [Makefile:37: module] Error 2
I nullified the first definition:
#if 0
static inline void skb_mark_not_on_list(struct sk_buff *skb)
{
skb->next = NULL;
}
#endif
And left the second (the include):
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
#include <linux/skbuff.h>
#define skb_probe_transport_header(a) skb_probe_transport_header(a, 0)
#endif
In order to build. I would like to state RHEL 8 builds with GCC 8.2.1 if that’s any help too. Seems I cannot connect, however. Will try removing the include in the second one.
Seems somewhere in between the RHEL kernel upgrade to 4.18 that function got added in.
[-- Attachment #1.2: Type: text/html, Size: 3647 bytes --]
[-- Attachment #2: Type: text/plain, Size: 148 bytes --]
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-11 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 19:13 BUG: When building on RHEL 8, duplicate function D Neiroukh
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).