#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: | medium | Keywords: | |
| Cc: |
Description
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.
Change History (3)
comment:1 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Version: | git → systemd |
comment:2 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Fixed at @115de74802181907d2cd681944c9bfed7b7b0b00