Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Upstream patch on devel branch is essentially the same. The commit log is misleading though. strotold() is not broken on Debian, it's the test that bash's configure does that is broken (another bug). Commented Sep 18, 2024 at 18:30
  • and looks like it has been broken since 3.0; it was apparently trying to cover for HP/UX whose strtold used to return a struct, but it's calling strtold with parameters of the wrong type (char bar should have been char *bar), that used to cause only a warning, but with newer gcc, that's an error, so strtold is deemed broken, on any system. Commented Sep 18, 2024 at 19:17
  • (an error since gcc 14) Commented Sep 18, 2024 at 19:36
  • IOW, building with gcc 13 or earlier would also work around the bug and avoid printf working with double instead of long double. Or you'd need to also apply that patch. Note that you also need your build system to have a en_US.UTF-8 locale available or some configure tests won't work properly. Commented Sep 18, 2024 at 19:53
  • 1
    So correcting my comment above, that patch and that is essentially the same as the one on the mailling list that you link is (should be) really only relevant to systems with broken strtold() (which you likely won't find these days), the more important patch to apply is that latter one to fix the build system. Commented Sep 18, 2024 at 19:58