wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Dario Pilori <dario.pilori@astrogeo.va.it>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: WireGuard fails to build on CentOS 7.1908
Date: Fri, 6 Sep 2019 13:17:23 -0600	[thread overview]
Message-ID: <CAHmME9oC+rYCVqv21-nGw_vyxzY5VhTHoa0mrnbOEShcczBN-g@mail.gmail.com> (raw)
In-Reply-To: <CAMKRnFh4XvqYzPDVjy_NOpeHY+KgsRfEuHfEjWy9N1wfY9MwTg@mail.gmail.com>

Hi Dario,

Are you running the latest el7 kernel? Or are there RHEL updates you
haven't yet applied? Can you provide more info about versions?

Jason

On Fri, Sep 6, 2019 at 1:08 PM Dario Pilori <dario.pilori@astrogeo.va.it> wrote:
>
> Dear all,
>
> I just upgraded a test machine to CentOS 7.1908 (based on RHEL 7.7),
> currently on CR repository, which carries Linux kernel 3.10.0-1062.
>
> Latest WireGuard release from CentOS RPM repo (0.0.20190702) fails to
> build with the following error:
>
> DKMS make.log for wireguard-0.0.20190702 for kernel
> 3.10.0-1062.el7.x86_64 (x86_64)
> Sat Aug 31 17:51:43 CEST 2019
> make: Entering directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
>   LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c: In function
> ‘wg_packet_consume_data_done’:
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c:403:4: warning:
> passing argument 1 of ‘IP6_ECN_set_ce’ from incompatible pointer type
> [enabled by default]
>     IP6_ECN_set_ce(skb, ipv6_hdr(skb));
>     ^
> In file included from include/net/ip_tunnels.h:14:0,
>                  from
> /var/lib/dkms/wireguard/0.0.20190702/build/compat/compat.h:92,
>                  from <command-line>:0:
> include/net/inet_ecn.h:120:19: note: expected ‘struct sk_buff *’ but
> argument is of type ‘struct ipv6hdr *’
>  static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
>                    ^
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c:403:4: error: too
> few arguments to function ‘IP6_ECN_set_ce’
>     IP6_ECN_set_ce(skb, ipv6_hdr(skb));
>     ^
> In file included from include/net/ip_tunnels.h:14:0,
>                  from
> /var/lib/dkms/wireguard/0.0.20190702/build/compat/compat.h:92,
>                  from <command-line>:0:
> include/net/inet_ecn.h:120:19: note: declared here
>  static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
>                    ^
> make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/receive.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
> make: Leaving directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
>
> I am not sure if this is a known bug or not.
>
> Thanks,
> Dario
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

On Fri, Sep 6, 2019 at 1:08 PM Dario Pilori <dario.pilori@astrogeo.va.it> wrote:
>
> Dear all,
>
> I just upgraded a test machine to CentOS 7.1908 (based on RHEL 7.7),
> currently on CR repository, which carries Linux kernel 3.10.0-1062.
>
> Latest WireGuard release from CentOS RPM repo (0.0.20190702) fails to
> build with the following error:
>
> DKMS make.log for wireguard-0.0.20190702 for kernel
> 3.10.0-1062.el7.x86_64 (x86_64)
> Sat Aug 31 17:51:43 CEST 2019
> make: Entering directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
>   LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o
>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c: In function
> ‘wg_packet_consume_data_done’:
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c:403:4: warning:
> passing argument 1 of ‘IP6_ECN_set_ce’ from incompatible pointer type
> [enabled by default]
>     IP6_ECN_set_ce(skb, ipv6_hdr(skb));
>     ^
> In file included from include/net/ip_tunnels.h:14:0,
>                  from
> /var/lib/dkms/wireguard/0.0.20190702/build/compat/compat.h:92,
>                  from <command-line>:0:
> include/net/inet_ecn.h:120:19: note: expected ‘struct sk_buff *’ but
> argument is of type ‘struct ipv6hdr *’
>  static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
>                    ^
> /var/lib/dkms/wireguard/0.0.20190702/build/receive.c:403:4: error: too
> few arguments to function ‘IP6_ECN_set_ce’
>     IP6_ECN_set_ce(skb, ipv6_hdr(skb));
>     ^
> In file included from include/net/ip_tunnels.h:14:0,
>                  from
> /var/lib/dkms/wireguard/0.0.20190702/build/compat/compat.h:92,
>                  from <command-line>:0:
> include/net/inet_ecn.h:120:19: note: declared here
>  static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
>                    ^
> make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/receive.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
> make: Leaving directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
>
> I am not sure if this is a known bug or not.
>
> Thanks,
> Dario
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard



-- 
Jason A. Donenfeld
Deep Space Explorer
fr: +33 6 51 90 82 66
us: +1 513 476 1200
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

  reply	other threads:[~2019-09-06 19:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-31 16:00 WireGuard fails to build on CentOS 7.1908 Dario Pilori
2019-09-06 19:17 ` Jason A. Donenfeld [this message]
2019-09-06 21:23   ` Dario Pilori
2019-09-06 22:47     ` Jason A. Donenfeld
2019-09-07  7:41       ` Dario Pilori
2019-09-14  4:44         ` Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHmME9oC+rYCVqv21-nGw_vyxzY5VhTHoa0mrnbOEShcczBN-g@mail.gmail.com \
    --to=jason@zx2c4.com \
    --cc=dario.pilori@astrogeo.va.it \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).