Gentoo Archives: gentoo-user

From: Fernando Rodriguez <cyklonite@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Upgrade of gdb this morning failed to compile
Date: Sat, 29 Oct 2016 14:50:31
Message-Id: f4b122ca-3e50-15b7-031b-9a9cba1d5803@gmail.com
In Reply to: [gentoo-user] Upgrade of gdb this morning failed to compile by Meino.Cramer@gmx.de
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 10/28/2016 11:03 PM, Meino.Cramer@×××.de wrote:
5 >
6 > Hi,
7 >
8 > the daily update I usually do failed while compiling gdb:
9 >
10 > Before I post every bit/log of the compilation process...
11 >
12 > Here are the last lines. Is there already known, how to fix that?
13 >
14 >
15 > libdecnumber.a -ldl -ldl -ltermcap -lncurses -lm -ldl -lpthread
16 > -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic
17 > ../libiberty/libiberty.a build-gnulib/import/libgnu.a -ldl
18 > -Wl,--dynamic-list=./proc-service.list
19 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld:
20 >
21 >
22 >
23 warning: libncurses.so.5, needed by /lib64/libreadline.so.6, may
24 > conflict with libncurses.so.6
25 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld:
26 >
27 >
28 >
29 tui-io.o: undefined reference to symbol 'resetty'
30 > /lib64/libtinfo.so.6: error adding symbols: DSO missing from command
31 > line collect2: error: ld returned 1 exit status Makefile:1405:
32 > recipe for target 'gdb' failed make[2]: *** [gdb] Error 1 make[2]:
33 > Leaving directory
34 > '/var/tmp/portage/sys-devel/gdb-7.10.1/work/gdb-7.10.1/gdb'
35 > Makefile:8119: recipe for target 'all-gdb' failed make[1]: ***
36 > [all-gdb] Error 2 make[1]: Leaving directory
37 > '/var/tmp/portage/sys-devel/gdb-7.10.1/work/gdb-7.10.1' Makefile:845:
38 > recipe for target 'all' failed make: *** [all] Error 2 * ERROR:
39 > sys-devel/gdb-7.10.1::gentoo failed (compile phase): * emake failed
40 >
41 > Cheers, Meino
42
43 Looks like gdb is linking againt libreadline but libreadline is linked
44 against ncurses 5 and you're trying to link gdb against ncurses 6. So rebuild
45 libreadline which should cause it to link against version 6 and try again.
46
47 Also you may want to disable the tinfo flag for ncurses 6 because it's
48 problematic and mostly needed by binary packages and I don't think you have
49 any linked against ncurses 6.
50
51
52 - --
53
54 Fernando Rodriguez
55 -----BEGIN PGP SIGNATURE-----
56 Version: GnuPG v2
57
58 iQIcBAEBCAAGBQJYFLe6AAoJEPbOFX/5Ulwc/00P/jPMf4tVQoRM13EK0HrWoZGz
59 vWwqz6uHRx/7JxVl+vbZ9q9NjAOJYujJABBHfsTy2dYuM/hV8XqcMQUD9fzQX/Ug
60 b3MJnCHh92AD7f1kInfxtFOF7Av6iSpwu/orj/H2UkGgAhGMoPK0M9RoTpGo9SaA
61 UZGn7M/U66k22PnoeyV2ekdnwBp/kWOXJe90vNeXEiAlteYV3bd7onCkRRRRQtbQ
62 t2HfmLxP8x5XLM6aZ3ZQg7pV5GgHC2vXt209twSgUETwzYckz6VcaolQcAHCrxk4
63 8TBaSU9BpudVGFOXXaEqEnh0MX8+E3oh01Mu4j0rmnZ6rVX4kXcXUa7Oh1Q8dCRO
64 M3fbyqOV88uDQlTgKSE9vtJWcOCV5m8xe7YqXC90eb3jdZ3mrVckYyIEKYSJYiri
65 i0EvZf+WNXCpoNnwRD2GQFVkqdyEWElRu498smKiXY9dTLl5MBvZVauGwzrPXWTU
66 1pVhyGHBBjIseUk79ycSUyNeIA68wgEbxAD+J9VFnzKbYGYo4/ZnrA/KQ+4DWiSy
67 En/XY8afn8lHjXmSnajI7MX4Su3QC9Gz5zCmNGC6Px1RAN0YwtZjAH3SQG3v1aWH
68 M5dK0ahS5bmwOrRRuSAGh8xNEeAjGhW4RuHF4gZd6V7IViP/EfpvNaiiVLsZZc1b
69 4LBYZwviEBTd7ynqC9SW
70 =Oy1Z
71 -----END PGP SIGNATURE-----