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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/