[PATCH v2] Use LFS and 64 bit time for installed programs (BZ #15333)

Florian Weimer fweimer@redhat.com
Tue Dec 28 20:37:36 GMT 2021


* Adhemerval Zanella via Libc-alpha:

> The installed programs are built with a combination of different
> values for MODULE_NAME, as below.  To enable both Long File Support
> and 64 bt time, -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 is added for
> nonlibi, nscd, lddlibc4, libresolv, ldconfig, locale_programs,
> iconvprogs, libnss_files, libnss_compat, libnss_db, libnss_hesiod,
> libutil, libpcprofile, and libSegFault.

-D_TIME_BITS=64 does not work for building glibc because the internal
aliases such as __fstat64 do not follow _TIME_BITS and are hard-wired to
32-bit time.  A symptom is a broken ldconfig, e.g.:

$ elf/ldconfig -p
elf/ldconfig: mmap of cache file failed.
: Invalid argument

Thanks,
Florian



More information about the Libc-alpha mailing list