Best practices in regard to -D_TIME_BITS=64
Paul Eggert
eggert@cs.ucla.edu
Wed Jan 5 04:43:45 GMT 2022
On 1/4/22 16:53, Sam James wrote:
> FWIW, we've hit issues in Gentoo with wget/gnutls:
> https://bugs.gentoo.org/828001 <https://bugs.gentoo.org/828001>.
Thanks for the heads-up.
Yes, not surprised about that, as mixing 64-bit time_t apps with 32-bit
time_t libraries is a recipe for trouble if the APIs depend on time_t.
For apps that use such libraries, it really has to be a big bang:
configure all that stuff with --disable-year2038 -D_TIME_BITS=32 before,
and with --enable-year2038 CFLAGS=-D_TIME_BITS=64 after.
> https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
Thanks. The musl notes look helpful there.
More information about the Libc-alpha
mailing list