Using the systemd development version of the book 20210326-systemd,
when compiling I get:
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.
Out of interest, I tried version 248 but that produced the same result.
jb.
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page