Andreas Schwab wrote: > >> In file included from boot-time.c:47: > >> readutmp.h:145:16: error: ‘__UT_USERSIZE’ undeclared here (not in a > >> function); did you mean ‘UT_USER_SIZE’? > >> 145 | char ut_user[__UT_USERSIZE]; /* Username. */ > >> | ^~~~~~~~~~~~~ > >> | UT_USER_SIZE > >> make[3]: *** [Makefile:102: boot-time.o] Error 1 > > > > On which distro or glibc version, please? > > Any.
Ah, you mean: on any 32-bit build with glibc. Fixed through this patch: 2023-08-14 Bruno Haible <[email protected]> readutmp, boot-time: Fix build on 32-bit glibc (regression 2023-08-11). Reported by Andreas Schwab <[email protected]> in <https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00125.html>. * lib/readutmp.h (struct utmpx32): Reference __UT_NAMESIZE, not __UT_USERSIZE. diff --git a/lib/readutmp.h b/lib/readutmp.h index f7cad36d44..1fbe29d86f 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -142,7 +142,7 @@ struct utmpx32 pid_t ut_pid; /* Process ID of login process. */ char ut_line[__UT_LINESIZE]; /* Devicename. */ char ut_id[4]; /* Inittab ID. */ - char ut_user[__UT_USERSIZE]; /* Username. */ + char ut_user[__UT_NAMESIZE]; /* Username. */ char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */ struct __exit_status ut_exit; /* Exit status of a process marked as DEAD_PROCESS. */
