Error to compile Wireguard for SUSE LES 15 SP3

Chi Wing Wong hklbj at icloud.com
Tue Sep 21 11:16:39 UTC 2021


> 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



More information about the WireGuard mailing list