musl-1.2.4 (9999 right now) will remove/removes the LFS compatibility hacks, like fopen64:
The gist is that bad configure tests (suffering from -Wimplicit-function-declaration) would build and link successfully because musl provided these symbols as aliases, despite not needing them (musl natively supports both LFS & time64).
To head this off, these aliases are now gone, but remain in libc.so for binary compatibility.
The fix is to just use the regular functions and not anything _LARGEFILE64_SOURCE.
As a workaround, we can pass -D_LARGEFILE64_SOURCE in tricky cases *for one release cycle*. musl will drop that compatibility hack entirely in the next release *after* 1.2.4.
The bug has been referenced in the following commit(s):
Author: Sam James <email@example.com>
AuthorDate: 2023-05-02 17:51:06 +0000
Commit: Sam James <firstname.lastname@example.org>
CommitDate: 2023-05-02 19:11:10 +0000
sys-libs/musl: add 1.2.4
Signed-off-by: Sam James <email@example.com>
sys-libs/musl/Manifest | 2 +
sys-libs/musl/musl-1.2.4.ebuild | 212 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 214 insertions(+)