Bug#1095635: systemd-netlogd FTBFS on 32-bit with 64-bit time_t

Adrian Bunk bunk at debian.org
Mon Feb 10 03:32:48 GMT 2025


Source: systemd-netlogd
Version: 1.4.2-1
Severity: important
Tags: ftbfs
X-Debbugs-Cc: Debian systemd Maintainers <pkg-systemd-maintainers at lists.alioth.debian.org>, Christian Göttsche <cgzones at googlemail.com>

https://buildd.debian.org/status/logs.php?pkg=systemd-netlogd&ver=1.4.2-1

...
FAILED: systemd-netlogd.p/src_netlog_netlog-protocol.c.o
cc -Isystemd-netlogd.p -I. -I.. -I../src/share -I../src/netlog -Isrc -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu11 -Werror=undef -Werror=format=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wmissing-include-dirs -Werror=old-style-definition -Werror=pointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=shadow -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Werror=sign-compare -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4 -include config.h -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/systemd-netlogd-1.4.2=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ systemd-netlogd.p/src_netlog_netlog-protocol.c.o -MF systemd-netlogd.p/src_netlog_netlog-protocol.c.o.d -o systemd-netlogd.p/src_netlog_netlog-protocol.c.o -c ../src/netlog/netlog-protocol.c
../src/netlog/netlog-protocol.c: In function ‘format_rfc3339_timestamp’:
../src/netlog/netlog-protocol.c:72:62: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘__suseconds64_t’ {aka ‘long long int’} [-Werror=format=]
   72 |                 r = snprintf(header_time, header_size, ".%06ld", tv->tv_usec);
      |                                                          ~~~~^   ~~~~~~~~~~~
      |                                                              |     |
      |                                                              |     __suseconds64_t {aka long long int}
      |                                                              long int
      |                                                          %06lld
...


More information about the Pkg-systemd-maintainers mailing list