wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / 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 --]

[-- 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 --]

[-- 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 --]

[-- 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, other threads:[~2019-07-17 20:43 UTC | newest]

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

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