[Top][All Lists]

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

Re: [Help-bash] Bash 2.05b build failure on OSX10.4

From: Chet Ramey
Subject: Re: [Help-bash] Bash 2.05b build failure on OSX10.4
Date: Wed, 05 Nov 2014 21:10:53 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/5/14 7:46 PM, Geoff Down wrote:
>>> ls -l bash
>>> -rwxr-xr-x   1 root  xxx  1726964 Nov  5 14:00 bash
>>> size bash
>>> __TEXT  __DATA  __OBJC  others  dec     hex
>>> 589824  40960   0       1114112 1744896 1aa000
>>> otool -L bash
>>> bash:
>>>         /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0,
>>>         current version 5.4.0)
>>>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
>>>         version 88.1.12)
>>> Look good? Any other tests?
>> That should do it.
>> Chet
>> -- 
> Thanks Chet,
>  one last question - can you recommend a good online tutorial I can read
>  so I can understand what it is I just did and maybe apply it to other
>  builds?

What you did was tell the linker to *not* use its search path and whatever
builtin rules it has to find and link the readline library (-lreadline),
which involves, among other things, preferring dyamic versions of the
library to static versions.

Instead you employ the traditional Unix static linking behavior and use
the readline library (./lib/readline/libreadline.a) to satisfy unresolved
symbol references.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden

reply via email to

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