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...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
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: ---


Attachments

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/libtinfo.so.6: 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1fd0846fa55f34ed1ed4825ec2a1a70fe159f04

commit d1fd0846fa55f34ed1ed4825ec2a1a70fe159f04
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-06-03 15:44:01 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-06-03 15:44:38 +0000

    games-board/ccgo: Fixed build with sys-libs/ncurses[tinfo]
    
    Closes: https://bugs.gentoo.org/687278
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 games-board/ccgo/ccgo-0.3.6.5-r1.ebuild         |  3 ++-
 games-board/ccgo/files/ccgo-0.3.6.5-tinfo.patch | 35 +++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)