Hi, The strtoimax() existence test in m4/strtoimax.m4 has been broken since its inception in September 2022. The test is supposed to check if strtoimax() is available, and provide a replacement if it isn't, but the condition is inverted, so it provides a replacement if and only if the function is already available. This means that bash a) fails to link on systems that lack strtoimax(), and b) may also fail to link on systems that do have it, depending on implementation details.
This issue was reported here on 2022-10-01, with a trivial patch (and a slightly incorrect description): https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00000.html A year and a half later, the patch has still not been committed, and downstream distributions are still having to carry their own patch: https://cgit.freebsd.org/ports/tree/shells/bash/files/patch-m4_strtoimax.m4 https://sources.debian.org/patches/bash/5.2.15-2/bash-musl.diff/ Can you please deal with this? DES -- Dag-Erling Smørgrav - d...@des.no