[Top][All Lists]

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

Re: Error while building a static version of Bash 4.3.30

From: Chet Ramey
Subject: Re: Error while building a static version of Bash 4.3.30
Date: Mon, 15 Dec 2014 12:00:33 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 12/15/14, 6:59 AM, Sergey Mikhailov wrote:
> Hello,
> I've tried to build a static version of Bash 4.3.30 using these commands:
> export CFLAGS="-static -O2 -g"
> export PATH="/usr/bin:$PATH"
> ./configure --without-bash-malloc
> make
> and got this error:
> ./lib/sh/libsh.a(shmatch.o): In function `sh_regmatch':
> /home/serge/Downloads/bash-4.3.30/lib/sh/shmatch.c:111: undefined
> reference to `sh_xfree'
> /home/serge/Downloads/bash-4.3.30/lib/sh/shmatch.c:112: undefined
> reference to `sh_xfree'
> collect2: error: ld returned 1 exit status
> make: *** [bash] Error 1
> Not sure, may be I overlooked something.
> Can it be some bug or missing dependency in the Bash source code?

It looks like that's a good possibility.  I'll take a look.  In the
meantime, you can always just do a `make clean' before rebuilding with
new configure options.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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