Gentoo Archives: gentoo-user

From: konsolebox <konsolebox@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bash failed to compile
Date: Fri, 23 Sep 2016 13:03:09
Message-Id: CAJnmqwa1aEWHbKRxAhjhYgDbR9OMhfPKMHN8LiBOCVkvMy0cxA@mail.gmail.com
In Reply to: [gentoo-user] Bash failed to compile by Meino.Cramer@gmx.de
1 On Fri, Sep 23, 2016 at 10:14 AM, <Meino.Cramer@×××.de> wrote:
2 > Hi,
3 >
4 > may be bash is missing a lib?
5 >
6 > x86_64-pc-linux-gnu-gcc -L./builtins -L./lib -L./lib -L./lib/glob -L./lib/tilde -L./lib/sh -Wl,-O1 -Wl,--as-needed -march=native -O2 -pipe -msse3 -ggdb -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lglob -lsh -lreadline -lhistory -lcurses -ltilde
7 > ./lib/sh/libsh.a(tmpfile.o): In function `sh_mktmpname':
8 > /var/tmp/portage/app-shells/bash-4.3_p46-r1/work/bash-4.3/lib/sh/tmpfile.c:129: warning: the use of `mktemp' is dangerous, better use `mkstemp'
9 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: bashline.o: undefined reference to symbol 'tputs'
10 > /usr/lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
11 > collect2: error: ld returned 1 exit status
12 > Makefile:553: recipe for target 'bash' failed
13 > make: *** [bash] Error 1
14
15 I had a solution for this. Study the second patch, then apply it to a
16 copy of app-shells/bash in a local overlay.
17
18 https://bugs.gentoo.org/show_bug.cgi?id=588486
19
20 --
21 konsolebox