[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logic in m4/strtoimax.m4 inverted

From: Emanuel Haupt
Subject: Re: logic in m4/strtoimax.m4 inverted
Date: Tue, 4 Oct 2022 09:24:34 +0200

Chet Ramey <chet.ramey@case.edu> wrote:
> On 10/1/22 6:38 AM, Emanuel Haupt wrote:
> > Static build of 5.2 fails to build on FreeBSD 13.1-RELEASE (amd64).
> > 
> > The logic in m4/strtoimax.m4 is inverted. The following patch
> > replaces strtoimax() if and only if it is present and functional.
> Thanks for the report. You're right, of course.
> I wonder why it fails to link, though. FreeBSD must have another
> function (probably strtoll) that bash uses defined in that same
> source file. Otherwise, wouldn't static linking skip the libc
> definition?

FreeBSD has both:

Here is what's happening without the patch.

Full sandboxed build log:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]