Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687278 - games-board/ccgo with sys-libs/ncurses[tinfo] - ld: nc.o: undefined reference to symbol 'keypad'
Summary: games-board/ccgo with sys-libs/ncurses[tinfo] - ld: nc.o: undefined reference...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
Depends on:
Blocks: tinfo
  Show dependency tree
Reported: 2019-06-03 14:49 UTC by Mārtiņš Mačs
Modified: 2019-06-03 17:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Mārtiņš Mačs 2019-06-03 14:49:25 UTC
games-board/ccgo fails to build with sys-libs/ncurses[tinfo] due to -lncurses being hardcoded in Makefiles.

x86_64-pc-linux-gnu-g++  -march=native -O2 -std=c++11 -fpermissive  -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -o nctest nctest.o nc.o arg.o debug.o ui/libui.a go/libgo.a -lncurses 
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: nc.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:634: nctest] Error 1

ccGo itself does not need ncurses, it is only used for some test programs.
Manually invoking `make --keep-going` from working directory successfully compiles ccGo.
Comment 1 Larry the Git Cow gentoo-dev 2019-06-03 15:44:44 UTC
The bug has been closed via the following commit(s):

commit d1fd0846fa55f34ed1ed4825ec2a1a70fe159f04
Author:     Lars Wendler <>
AuthorDate: 2019-06-03 15:44:01 +0000
Commit:     Lars Wendler <>
CommitDate: 2019-06-03 15:44:38 +0000

    games-board/ccgo: Fixed build with sys-libs/ncurses[tinfo]
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Lars Wendler <>

 games-board/ccgo/ccgo-         |  3 ++-
 games-board/ccgo/files/ccgo- | 35 +++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)