bug-bash
[Top][All Lists]
Advanced

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

build failure with enable-static-link


From: Ben
Subject: build failure with enable-static-link
Date: Sat, 17 Sep 2016 03:12:05 +0200

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):/home/benoit/bash/bash-4.4/lib/malloc/malloc.c:1273:
first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(malloc.o):
In function `malloc':
(.text+0x5160): multiple definition of `malloc'
./lib/malloc/libmalloc.a(malloc.o):/home/benoit/bash/bash-4.4/lib/malloc/malloc.c:1258:
first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(malloc.o):
In function `realloc':
(.text+0x6400): multiple definition of `realloc'
./lib/malloc/libmalloc.a(malloc.o):/home/benoit/bash/bash-4.4/lib/malloc/malloc.c:1266:
first defined here
collect2: ld returned 1 exit status
make: *** [bash] Error 1

-- 
Benoît Dejean



reply via email to

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