Development discussion of WireGuard
 help / color / mirror / Atom feed
* Build wireguard-linux-compat on SLES15 (s390x)
@ 2021-10-09 10:26 Faustin Lammler
  2021-10-19 11:01 ` Faustin Lammler
  0 siblings, 1 reply; 7+ messages in thread
From: Faustin Lammler @ 2021-10-09 10:26 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 2845 bytes --]

Hi!

I am trying to compile wireguard-linux-compat on SLES15 (s390x) without
success. Maybe I should try to install it directly from packages but I
am not expert with SLES and I did not find how so far.

I managed to install wireguard-tools but the kernel does not provide
the wireguard module, see bellow:
| $ uname -r
| 5.3.18-24.83-default
| $ lsmod | grep wireguard
| $ sudo wg-quick up /etc/wireguard/wg0.conf
| [#] ip link add wg0 type wireguard
| Error: Unknown device type.
| Unable to access interface: Protocol not supported
| [#] ip link delete dev wg0
| Cannot find device "wg0"

Here is the build error:
| $ cd /tmp && git clone https://git.zx2c4.com/wireguard-linux-compat
| $ make -C wireguard-linux-compat/src -j$(nproc)
| make: Entering directory '/tmp/wireguard-linux-compat/src'
|   CC [M]  /tmp/wireguard-linux-compat/src/main.o
|   CC [M]  /tmp/wireguard-linux-compat/src/noise.o
|   CC [M]  /tmp/wireguard-linux-compat/src/device.o
|   CC [M]  /tmp/wireguard-linux-compat/src/peer.o
|   CC [M]  /tmp/wireguard-linux-compat/src/timers.o
|   CC [M]  /tmp/wireguard-linux-compat/src/queueing.o
|   CC [M]  /tmp/wireguard-linux-compat/src/send.o
|   CC [M]  /tmp/wireguard-linux-compat/src/receive.o
|   CC [M]  /tmp/wireguard-linux-compat/src/socket.o
|   CC [M]  /tmp/wireguard-linux-compat/src/peerlookup.o
|   CC [M]  /tmp/wireguard-linux-compat/src/allowedips.o
|   CC [M]  /tmp/wireguard-linux-compat/src/ratelimiter.o
|   CC [M]  /tmp/wireguard-linux-compat/src/cookie.o
|   CC [M]  /tmp/wireguard-linux-compat/src/netlink.o
|   CC [M]  /tmp/wireguard-linux-compat/src/crypto/zinc/chacha20/chacha20.o
|   CC [M]  /tmp/wireguard-linux-compat/src/crypto/zinc/poly1305/poly1305.o
|   CC [M]  /tmp/wireguard-linux-compat/src/crypto/zinc/chacha20poly1305.o
| In file included from <command-line>:
| /tmp/wireguard-linux-compat/src/compat/compat.h:859:31: error: expected identifier or ‘(’ before ‘{’ token
|   859 | #define genl_dumpit_info(cb) ({ \
|       |                               ^
| /usr/src/linux-5.3.18-24.83/include/net/genetlink.h:138:1: note: in expansion of macro ‘genl_dumpit_info’
|   138 | genl_dumpit_info(struct netlink_callback *cb)
|       | ^~~~~~~~~~~~~~~~
| make[3]: *** [/usr/src/linux-5.3.18-24.83/scripts/Makefile.build:282: /tmp/wireguard-linux-compat/src/netlink.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[2]: *** [/usr/src/linux-5.3.18-24.83/Makefile:1655: _module_/tmp/wireguard-linux-compat/src] Error 2
| make[1]: *** [../../../linux-5.3.18-24.83/Makefile:179: sub-make] Error 2
| make: *** [Makefile:26: module] Error 2
| make: Leaving directory '/tmp/wireguard-linux-compat/src'

Any help would be really appreciated.
Cheers!

-- 
Faustin
GPG: F652 BCD1 1AA8 8975 F010 48A5 390A 2F27 832A 5C79

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-09 10:26 Build wireguard-linux-compat on SLES15 (s390x) Faustin Lammler
@ 2021-10-19 11:01 ` Faustin Lammler
  2021-10-19 12:18   ` CW
  2021-10-19 23:51   ` Jason A. Donenfeld
  0 siblings, 2 replies; 7+ messages in thread
From: Faustin Lammler @ 2021-10-19 11:01 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

Hi!

FYI,
I have managed to build wireguard by removing the #define.
https://git.zx2c4.com/wireguard-linux-compat/tree/src/compat/compat.h#n859

I am not a C dev, so I am not sure what the implications are but I
understand that it's a kind of debugging structure and it's also not
defined on CENTOS8 so, I guess it should be OK.

Cheers!

--
Faustin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-19 11:01 ` Faustin Lammler
@ 2021-10-19 12:18   ` CW
  2021-10-19 23:51   ` Jason A. Donenfeld
  1 sibling, 0 replies; 7+ messages in thread
From: CW @ 2021-10-19 12:18 UTC (permalink / raw)
  To: faustin; +Cc: wireguard

Hi,
If I didn’t remember wrong, wg should be included in kernel with 15sp3.


Sent from my iPhone


> On 19 Oct 2021, at 12:05, Faustin Lammler <faustin@fala.red> wrote:
> 
> Hi!
> 
> FYI,
> I have managed to build wireguard by removing the #define.
> https://git.zx2c4.com/wireguard-linux-compat/tree/src/compat/compat.h#n859
> 
> I am not a C dev, so I am not sure what the implications are but I
> understand that it's a kind of debugging structure and it's also not
> defined on CENTOS8 so, I guess it should be OK.
> 
> Cheers!
> 
> --
> Faustin

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-19 11:01 ` Faustin Lammler
  2021-10-19 12:18   ` CW
@ 2021-10-19 23:51   ` Jason A. Donenfeld
  2021-10-20  9:00     ` Faustin Lammler
  1 sibling, 1 reply; 7+ messages in thread
From: Jason A. Donenfeld @ 2021-10-19 23:51 UTC (permalink / raw)
  To: faustin; +Cc: WireGuard mailing list

Hi Faustin,

Isn't WireGuard already in the SLES kernel?

Jason

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-19 23:51   ` Jason A. Donenfeld
@ 2021-10-20  9:00     ` Faustin Lammler
  2021-10-20 16:25       ` Samu Voutilainen
  2021-10-20 17:56       ` Jason A. Donenfeld
  0 siblings, 2 replies; 7+ messages in thread
From: Faustin Lammler @ 2021-10-20  9:00 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Hi Jason!

"Jason A. Donenfeld" <Jason@zx2c4.com>,
19/10/2021 – 17:51:01 (-0600):

> Isn't WireGuard already in the SLES kernel?

My understanding is that it should, that's why I was surprised to have
to build it. But apparently not.

This may be related to a specific kernel from IBM LinuxONE cloud
infrastructure?

| $ uname -r
| 5.3.18-24.86-default

But again, my knowledge of SLES is very limited (and s390x architecture
even more) so I don't have any idea why this was needed.

I'll be happy to help you if you need me to do some tests on the
machine.

Cheers!

-- 
Faustin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-20  9:00     ` Faustin Lammler
@ 2021-10-20 16:25       ` Samu Voutilainen
  2021-10-20 17:56       ` Jason A. Donenfeld
  1 sibling, 0 replies; 7+ messages in thread
From: Samu Voutilainen @ 2021-10-20 16:25 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Faustin Lammler kirjoitti keskiviikkona 20. lokakuuta 2021 12.00.48 EEST:
> Hi Jason!
> 
> My understanding is that it should, that's why I was surprised to have
> to build it. But apparently not.
> 
> This may be related to a specific kernel from IBM LinuxONE cloud
> infrastructure?
> 

Hi,

At least on x86_64 SLE, the module is in kernel-*-extra package, for example 
in kernel-default-extra.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: Build wireguard-linux-compat on SLES15 (s390x)
  2021-10-20  9:00     ` Faustin Lammler
  2021-10-20 16:25       ` Samu Voutilainen
@ 2021-10-20 17:56       ` Jason A. Donenfeld
  1 sibling, 0 replies; 7+ messages in thread
From: Jason A. Donenfeld @ 2021-10-20 17:56 UTC (permalink / raw)
  To: daniel.wagner; +Cc: WireGuard mailing list, faustin

Hi Daniel,

Do you think you could chime in here regarding the apparent absence of
wireguard on s390x? The thread began as a discussion of building it
yourself there, but I'm wondering why it isn't already there, seeing
as it's on the other archs.

Jason

On Wed, Oct 20, 2021 at 3:01 AM Faustin Lammler <faustin@fala.red> wrote:
>
> Hi Jason!
>
> "Jason A. Donenfeld" <Jason@zx2c4.com>,
> 19/10/2021 – 17:51:01 (-0600):
>
> > Isn't WireGuard already in the SLES kernel?
>
> My understanding is that it should, that's why I was surprised to have
> to build it. But apparently not.
>
> This may be related to a specific kernel from IBM LinuxONE cloud
> infrastructure?
>
> | $ uname -r
> | 5.3.18-24.86-default
>
> But again, my knowledge of SLES is very limited (and s390x architecture
> even more) so I don't have any idea why this was needed.
>
> I'll be happy to help you if you need me to do some tests on the
> machine.
>
> Cheers!
>
> --
> Faustin

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

end of thread, other threads:[~2021-10-20 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09 10:26 Build wireguard-linux-compat on SLES15 (s390x) Faustin Lammler
2021-10-19 11:01 ` Faustin Lammler
2021-10-19 12:18   ` CW
2021-10-19 23:51   ` Jason A. Donenfeld
2021-10-20  9:00     ` Faustin Lammler
2021-10-20 16:25       ` Samu Voutilainen
2021-10-20 17:56       ` Jason A. Donenfeld

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.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://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


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