bug-bash
[Top][All Lists]
Advanced

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

Re: logic in m4/strtoimax.m4 inverted


From: Chet Ramey
Subject: Re: logic in m4/strtoimax.m4 inverted
Date: Tue, 4 Oct 2022 09:45:47 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

On 10/4/22 3:24 AM, Emanuel Haupt wrote:

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:
https://www.freebsd.org/cgi/man.cgi?query=strtoimax&apropos=0&sektion=3&manpath=FreeBSD+13.1-RELEASE&arch=default&format=html

OK, it's not really important. What I'm guessing is that some other
function in FreeBSD's libc calls strtoimax_l(), which causes that source
file to be linked in, which pulls in the FreeBSD strtoimax() definition,
which causes a multiply-defined symbol error.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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