wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* Re: Error to compile Wireguard for SUSE LES 15 SP3
       [not found] <204FE162-0DEE-47E2-B345-0DFB5FE20325@icloud.com>
@ 2021-09-21 11:16 ` Chi Wing Wong
  0 siblings, 0 replies; only message in thread
From: Chi Wing Wong @ 2021-09-21 11:16 UTC (permalink / raw)
  To: wireguard


> Hi,
> 
> I am new to wireguard and tried to install via compiling the latest version (from git) of Wireguard-Linux-compat for my SUSE Linux Enterprise server 15 SP3. However, there are 2 errors prompted during compiling. I have checked the mail archive mentioned about similar issue. However, I could not find the mentioned patch to resolve the error. Could you share any reference for me to tackle it? Many Thanks.
> 
> 
> In file included from <command-line>:0:0:
> /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:1036:20: error: redefinition of ‘skb_reset_redirect’
>  static inline void skb_reset_redirect(struct sk_buff *skb)
>                     ^~~~~~~~~~~~~~~~~~
> In file included from /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:870:0,
>                  from <command-line>:0:
> /usr/src/linux-5.3.18-59.19/include/linux/skbuff.h:4543:20: note: previous definition of ‘skb_reset_redirect’ was h
> ere
>  static inline void skb_reset_redirect(struct sk_buff *skb)
>                     ^~~~~~~~~~~~~~~~~~
> In file included from /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:870:0,
>                  from <command-line>:0:
> /usr/src/linux-5.3.18-59.19/include/linux/skbuff.h:4543:20: note: previous definition of ‘skb_reset_redirect’ was h
> ere
>  static inline void skb_reset_redirect(struct sk_buff *skb)
> 
> 
> 
> /home/optionmaker/wireguard-linux-compat/src/compat/compat.h: At top level:
> /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:1065:22: error: static declaration of ‘ip_tunnel_parse
> _protocol’ follows non-static declaration
>  static inline __be16 ip_tunnel_parse_protocol(const struct sk_buff *skb)
>                       ^~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/src/linux-5.3.18-59.19/include/net/gre.h:6:0,
>                  from /usr/src/linux-5.3.18-59.19/include/linux/netfilter/nf_conntrack_proto_gre.h:5,
>                  from /usr/src/linux-5.3.18-59.19/include/net/netfilter/nf_conntrack.h:23,
>                  from /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:947,
>                  from <command-line>:0:
> /usr/src/linux-5.3.18-59.19/include/net/ip_tunnels.h:294:8: note: previous declaration of ‘ip_tunnel_parse_protocol
> ’ was here
>  __be16 ip_tunnel_parse_protocol(const struct sk_buff *skb);
>         ^~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/src/linux-5.3.18-59.19/include/net/gre.h:6:0,
>                  from /usr/src/linux-5.3.18-59.19/include/linux/netfilter/nf_conntrack_proto_gre.h:5,
>                  from /usr/src/linux-5.3.18-59.19/include/net/netfilter/nf_conntrack.h:23,
>                  from /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:947,
>                  from <command-line>:0:
> /usr/src/linux-5.3.18-59.19/include/net/ip_tunnels.h:294:8: note: previous declaration of ‘ip_tunnel_parse_protocol
> ’ was here
>  __be16 ip_tunnel_parse_protocol(const struct sk_buff *skb);
> 
> 
> 
> In file included from <command-line>:0:0:
> /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:1078:32: error: static declaration of ‘ip_tunnel_heade
> r_ops’ follows non-static declaration
>  static const struct header_ops ip_tunnel_header_ops = { .parse_protocol = ip_tunnel_parse_protocol };
>                                 ^~~~~~~~~~~~~~~~~~~~
> In file included from /usr/src/linux-5.3.18-59.19/include/net/gre.h:6:0,
>                  from /usr/src/linux-5.3.18-59.19/include/linux/netfilter/nf_conntrack_proto_gre.h:5,
>                  from /usr/src/linux-5.3.18-59.19/include/net/netfilter/nf_conntrack.h:23,
>                  from /home/optionmaker/wireguard-linux-compat/src/compat/compat.h:947,
>                  from <command-line>:0:
> /usr/src/linux-5.3.18-59.19/include/net/ip_tunnels.h:293:32: note: previous declaration of ‘ip_tunnel_header_ops’ w
> as here
>  extern const struct header_ops ip_tunnel_header_ops;
> 
> 
> Regards,
> Wing


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-22  4:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <204FE162-0DEE-47E2-B345-0DFB5FE20325@icloud.com>
2021-09-21 11:16 ` Error to compile Wireguard for SUSE LES 15 SP3 Chi Wing Wong

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).