Re: build failure with enable-static-link

2016-09-17 Thread BenoƮt Dejean
On Sat, Sep 17, 2016 at 01:31:42PM -0400, Chet Ramey wrote: > On 9/16/16 9:12 PM, Ben wrote: > > Hello, > > > > bash-4.4 doesn't build with --enable-static-link. Buidling with an > > additional --without-bash-malloc makes it work. > > Sigh. There's another function defined in the same file where

Re: build failure with enable-static-link

2016-09-17 Thread Chet Ramey
On 9/16/16 9:12 PM, Ben wrote: > Hello, > > bash-4.4 doesn't build with --enable-static-link. Buidling with an > additional --without-bash-malloc makes it work. Sigh. There's another function defined in the same file where glibc defines malloc/realloc/free, and it's using that function internall

build failure with enable-static-link

2016-09-16 Thread Ben
Hello, bash-4.4 doesn't build with --enable-static-link. Buidling with an additional --without-bash-malloc makes it work. /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(malloc.o): In function `free': (.text+0x5f20): multiple definition of `free' ./lib/malloc/libmalloc.a(malloc.o)