WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* RHEL8 package install or build fail
@ 2019-06-26 13:18 Michael
  2019-06-28 12:03 ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Michael @ 2019-06-26 13:18 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1249 bytes --]

folks, current wireguard seems not to install or build on RHEL 8.0

(1) via yum and the wireguard repo at
https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/epel-7-$basearch/

[root@<>]# yum install wireguard-dkms wireguard-tools
...
Copr repo for wireguard owned by jdoss
          1.7 kB/s | 3.5 kB     00:01
Error:
 Problem 1: conflicting requests
  - nothing provides dkms needed by
wireguard-dkms-1:0.0.20190601-1.el7.noarch
 Problem 2: package wireguard-tools-1:0.0.20190601-1.el7.x86_64 requires
wireguard-dkms, but none of the providers can be installed

and (2) building without much trying albeit -

[root@<> src]# make
  CC [M]  /root/WireGuard/src/main.o
In file included from <command-line>:
/root/WireGuard/src/compat/compat.h:828: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 /root/WireGuard/src/compat/compat.h:787,
                 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)
                    ^~~~~~~~~~~~~~~~~~~~

Thanks in advance for hints,

-- Mike

[-- Attachment #1.2: Type: text/html, Size: 1744 bytes --]

<div dir="ltr"><div>folks, current wireguard seems not to install or build on RHEL 8.0</div><div><br></div><div>(1) via yum and the wireguard repo at <a href="https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/epel-7-$basearch/">https://copr-be.cloud.fedoraproject.org/results/jdoss/wireguard/epel-7-$basearch/</a><br></div><div><br></div><div>[root@&lt;&gt;]# yum install wireguard-dkms wireguard-tools<br>...<br>Copr repo for wireguard owned by jdoss                                               1.7 kB/s | 3.5 kB     00:01    <br>Error: <br> Problem 1: conflicting requests<br>  - nothing provides dkms needed by wireguard-dkms-1:0.0.20190601-1.el7.noarch<br> Problem 2: package wireguard-tools-1:0.0.20190601-1.el7.x86_64 requires wireguard-dkms, but none of the providers can be installed<br></div><div><br></div><div>and (2) building without much trying albeit - </div><div><br></div><div>[root@&lt;&gt; src]# make<br>  CC [M]  /root/WireGuard/src/main.o<br>In file included from &lt;command-line&gt;:<br>/root/WireGuard/src/compat/compat.h:828:20: error: redefinition of &#39;skb_mark_not_on_list&#39;<br> static inline void skb_mark_not_on_list(struct sk_buff *skb)<br>                    ^~~~~~~~~~~~~~~~~~~~<br>In file included from /root/WireGuard/src/compat/compat.h:787,<br>                 from &lt;command-line&gt;:<br>./include/linux/skbuff.h:1362:20: note: previous definition of &#39;skb_mark_not_on_list&#39; was here<br> static inline void skb_mark_not_on_list(struct sk_buff *skb)<br>                    ^~~~~~~~~~~~~~~~~~~~<br></div><div><br></div><div>Thanks in advance for hints,</div><div><br></div><div>-- Mike</div><div><br></div></div>

[-- 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] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-26 13:18 RHEL8 package install or build fail Michael
@ 2019-06-28 12:03 ` Jason A. Donenfeld
  2019-06-28 12:05   ` Christopher Bachner
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2019-06-28 12:03 UTC (permalink / raw)
  To: Michael; +Cc: WireGuard mailing list

Hi Mike,

While RHEL8 is out, it looks like CentOS 8 is not yet, so I don't have
much of a way to make sure our compat layer works well for RHEL8. Do
you have any suggestions on how I could obtain access to a running
RHEL8 box and its kernel sources?

Jason
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 12:03 ` Jason A. Donenfeld
@ 2019-06-28 12:05   ` Christopher Bachner
  2019-06-28 12:07     ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Christopher Bachner @ 2019-06-28 12:05 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 660 bytes --]

Hi Jason,

You can get free developer access to RHEL.

https://developers.redhat.com/blog/2018/01/19/command-line-heros-podcast/

Greetings,

Christopher


On Fri, 28 Jun 2019 at 14:03 Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Mike,
>
> While RHEL8 is out, it looks like CentOS 8 is not yet, so I don't have
> much of a way to make sure our compat layer works well for RHEL8. Do
> you have any suggestions on how I could obtain access to a running
> RHEL8 box and its kernel sources?
>
> Jason
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 1441 bytes --]

<div><div dir="auto">Hi Jason,</div></div><div dir="auto"><br></div><div dir="auto">You can get free developer access to RHEL. </div><div dir="auto"><br><div dir="auto"><a href="https://developers.redhat.com/blog/2018/01/19/command-line-heros-podcast/">https://developers.redhat.com/blog/2018/01/19/command-line-heros-podcast/</a></div><div dir="auto"><br></div><div dir="auto">Greetings,</div><div dir="auto"><br></div><div dir="auto">Christopher </div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 Jun 2019 at 14:03 Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike,<br>
<br>
While RHEL8 is out, it looks like CentOS 8 is not yet, so I don&#39;t have<br>
much of a way to make sure our compat layer works well for RHEL8. Do<br>
you have any suggestions on how I could obtain access to a running<br>
RHEL8 box and its kernel sources?<br>
<br>
Jason<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div></div>

[-- 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] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 12:05   ` Christopher Bachner
@ 2019-06-28 12:07     ` Jason A. Donenfeld
  2019-06-28 12:32       ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2019-06-28 12:07 UTC (permalink / raw)
  To: Christopher Bachner; +Cc: WireGuard mailing list

Thanks for the heads up. I should have this settled shortly then.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 12:07     ` Jason A. Donenfeld
@ 2019-06-28 12:32       ` Jason A. Donenfeld
  2019-06-28 14:41         ` Michael
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2019-06-28 12:32 UTC (permalink / raw)
  To: Christopher Bachner; +Cc: WireGuard mailing list

This commit fixes it and will be included in the next snapshot:
https://git.zx2c4.com/WireGuard/commit/?id=80f006d3656ce2858675020a23879e916ea8a4fc

[ec2-user@ip-172-31-24-82 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.0 (Ootpa)
[ec2-user@ip-172-31-24-82 ~]$ uname -a
Linux ip-172-31-24-82.eu-west-1.compute.internal
4.18.0-80.4.2.el8_0.x86_64 #1 SMP Fri Jun 14 13:20:24 UTC 2019 x86_64
x86_64 x86_64 GNU/Linux
[ec2-user@ip-172-31-24-82 ~]$ sudo ip link add wg0 type wireguard
[ec2-user@ip-172-31-24-82 ~]$ sudo wg
interface: wg0
[ec2-user@ip-172-31-24-82 ~]$ dmesg | grep wireguard
[  693.365784] wireguard: loading out-of-tree module taints kernel.
[  693.382433] wireguard: module verification failed: signature and/or
required key missing - tainting kernel
[  693.390216] wireguard: WireGuard 0.0.20190601-8-g9e71cce-dirty
loaded. See www.wireguard.com for information.
[  693.397561] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld
<Jason@zx2c4.com>. All Rights Reserved.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 12:32       ` Jason A. Donenfeld
@ 2019-06-28 14:41         ` Michael
  2019-06-28 14:52           ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Michael @ 2019-06-28 14:41 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 1531 bytes --]

Hello Jason,
applying the patch for compat.h resolves - compiling works fine. However
the Netlink headers libmnl.h were missing, seems there is no standard
RHEL8-dev package for the library, had to take it from netfilter.org/Fedora.
Then OK:

[ 9386.069776] wireguard: WireGuard 0.0.20190601-7-g44070b9-dirty loaded.
See www.wireguard.com for information.

[root@paris src]# wg show
interface: wg0

-- Mike


On Fri, Jun 28, 2019 at 2:32 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> This commit fixes it and will be included in the next snapshot:
>
> https://git.zx2c4.com/WireGuard/commit/?id=80f006d3656ce2858675020a23879e916ea8a4fc
>
> [ec2-user@ip-172-31-24-82 ~]$ cat /etc/redhat-release
> Red Hat Enterprise Linux release 8.0 (Ootpa)
> [ec2-user@ip-172-31-24-82 ~]$ uname -a
> Linux ip-172-31-24-82.eu-west-1.compute.internal
> 4.18.0-80.4.2.el8_0.x86_64 #1 SMP Fri Jun 14 13:20:24 UTC 2019 x86_64
> x86_64 x86_64 GNU/Linux
> [ec2-user@ip-172-31-24-82 ~]$ sudo ip link add wg0 type wireguard
> [ec2-user@ip-172-31-24-82 ~]$ sudo wg
> interface: wg0
> [ec2-user@ip-172-31-24-82 ~]$ dmesg | grep wireguard
> [  693.365784] wireguard: loading out-of-tree module taints kernel.
> [  693.382433] wireguard: module verification failed: signature and/or
> required key missing - tainting kernel
> [  693.390216] wireguard: WireGuard 0.0.20190601-8-g9e71cce-dirty
> loaded. See www.wireguard.com for information.
> [  693.397561] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld
> <Jason@zx2c4.com>. All Rights Reserved.
>

[-- Attachment #1.2: Type: text/html, Size: 2394 bytes --]

<div dir="ltr"><div dir="ltr">Hello Jason,<div>applying the patch for compat.h resolves - compiling works fine. However the Netlink headers libmnl.h were missing, seems there is no standard RHEL8-dev package for the library, had to take it from <a href="http://netfilter.org/Fedora" target="_blank">netfilter.org/Fedora</a>. Then OK:<br></div><div><br></div><div>[ 9386.069776] wireguard: WireGuard 0.0.20190601-7-g44070b9-dirty loaded. See <a href="http://www.wireguard.com" target="_blank">www.wireguard.com</a> for information.<br></div><div><br></div><div>[root@paris src]# wg show<br>interface: wg0<br></div><div><br></div><div>-- Mike<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 2:32 PM Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This commit fixes it and will be included in the next snapshot:<br>
<a href="https://git.zx2c4.com/WireGuard/commit/?id=80f006d3656ce2858675020a23879e916ea8a4fc" rel="noreferrer" target="_blank">https://git.zx2c4.com/WireGuard/commit/?id=80f006d3656ce2858675020a23879e916ea8a4fc</a><br>
<br>
[ec2-user@ip-172-31-24-82 ~]$ cat /etc/redhat-release<br>
Red Hat Enterprise Linux release 8.0 (Ootpa)<br>
[ec2-user@ip-172-31-24-82 ~]$ uname -a<br>
Linux ip-172-31-24-82.eu-west-1.compute.internal<br>
4.18.0-80.4.2.el8_0.x86_64 #1 SMP Fri Jun 14 13:20:24 UTC 2019 x86_64<br>
x86_64 x86_64 GNU/Linux<br>
[ec2-user@ip-172-31-24-82 ~]$ sudo ip link add wg0 type wireguard<br>
[ec2-user@ip-172-31-24-82 ~]$ sudo wg<br>
interface: wg0<br>
[ec2-user@ip-172-31-24-82 ~]$ dmesg | grep wireguard<br>
[  693.365784] wireguard: loading out-of-tree module taints kernel.<br>
[  693.382433] wireguard: module verification failed: signature and/or<br>
required key missing - tainting kernel<br>
[  693.390216] wireguard: WireGuard 0.0.20190601-8-g9e71cce-dirty<br>
loaded. See <a href="http://www.wireguard.com" rel="noreferrer" target="_blank">www.wireguard.com</a> for information.<br>
[  693.397561] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld<br>
&lt;<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>&gt;. All Rights Reserved.<br>
</blockquote></div></div>

[-- 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] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 14:41         ` Michael
@ 2019-06-28 14:52           ` Jason A. Donenfeld
  2019-07-02 19:51             ` Joe Doss
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2019-06-28 14:52 UTC (permalink / raw)
  To: Michael; +Cc: WireGuard mailing list

On Fri, Jun 28, 2019 at 4:48 PM Michael <gravitygrazer@gmail.com> wrote:
>
> Hello Jason,
> applying the patch for compat.h resolves - compiling works fine. However the Netlink headers libmnl.h were missing, seems there is no standard RHEL8-dev package for the library, had to take it from netfilter.org/Fedora. Then OK:
>
> [ 9386.069776] wireguard: WireGuard 0.0.20190601-7-g44070b9-dirty loaded. See www.wireguard.com for information.
>
> [root@paris src]# wg show
> interface: wg0

Apparently you have to add the "codeready" repository in RHEL8, as
libmnl-devel was removed from the main repo according to the release
notes.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: RHEL8 package install or build fail
  2019-06-28 14:52           ` Jason A. Donenfeld
@ 2019-07-02 19:51             ` Joe Doss
  0 siblings, 0 replies; 8+ messages in thread
From: Joe Doss @ 2019-07-02 19:51 UTC (permalink / raw)
  To: Jason A. Donenfeld, Michael; +Cc: WireGuard mailing list

On 6/28/19 9:52 AM, Jason A. Donenfeld wrote:
> Apparently you have to add the "codeready" repository in RHEL8, as
> libmnl-devel was removed from the main repo according to the release
> notes.

It looks like you can enable other repos for Copr builds but it isn't 
working when I enable:

https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/codeready-builder/os

I will see if I can get the maintainers of Copr to enable this repo by 
default for RHEL8 buildroots.

Joe



-- 
Joe Doss
joe@solidadmin.com
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-26 13:18 RHEL8 package install or build fail Michael
2019-06-28 12:03 ` Jason A. Donenfeld
2019-06-28 12:05   ` Christopher Bachner
2019-06-28 12:07     ` Jason A. Donenfeld
2019-06-28 12:32       ` Jason A. Donenfeld
2019-06-28 14:41         ` Michael
2019-06-28 14:52           ` Jason A. Donenfeld
2019-07-02 19:51             ` Joe Doss

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox