﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4851	Fix systemd to build with Linux-API-Headers-5.11.14 and higher	Douglas R. Reno	Douglas R. Reno	"As John Burrell reported here ( [https://lists.linuxfromscratch.org/sympa/arc/lfs-dev/2021-04/msg00000.html] ), the systemd build will fail with Linux-API-Headers-5.11.14 and higher. This seems to be due to a change in the RFKILL API.

The exact error message is:

{{{
FAILED: systemd-rfkill.p/src_rfkill_rfkill.c.o

and then:

../src/rfkill/rfkill.c:339:23: warning: comparison of integer
expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and
‘long unsigned int’ [-Wsign-compare]
339 | if (l < RFKILL_EVENT_SIZE_V1)
| ^
In file included from ../src/basic/macro.h:657,
from ../src/basic/alloc-util.h:9,
from ../src/rfkill/rfkill.c:13:
../src/rfkill/rfkill.c:340:70: error: format ‘%d’ expects argument of
type ‘int’, but argument 8 has type ‘long unsigned int’
[-Werror=format=]
340 | return
log_error_errno(SYNTHETIC_ERRNO(EIO), ""Short read of struct
rfkill_event: (%zd < %d)"",

and finally:

cc1: some warnings being treated as errors
[791/1466] Compiling C object
src/resolve/libsystemd-resolve-core.a.p/resolved-dns-packet.c.o
ninja: build stopped: subcommand failed.
}}}

As Xi mentioned, the patch will need to be applied for 248 as well.

I'm going to get a patch for 247 going using the following commit: [https://github.com/systemd/systemd/commit/ab1aa6368a883bce88e3162fee2bea14aacedf23] - when we go to 248, I will do the same."	enhancement	closed	normal	11.0	Book	git	normal	fixed		
