Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14947 closed enhancement (fixed)

Fix systemd to build with Linux-API-Headers-5.11.14 and higher

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 11.0
Component: BOOK Version: systemd
Severity: normal Keywords:


As John Burrell reported here ( ), 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’
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
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: - when we go to 248, I will do the same.

Change History (3)

comment:1 by Douglas R. Reno, 3 years ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned
Version: gitsystemd

comment:2 by Douglas R. Reno, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Bruce Dubbs, 3 years ago

Milestone: 10.211.0

Milestone renamed

Note: See TracTickets for help on using tickets.