Summary: | games-misc/typespeed-0.6.5-r1 : /.../ld: typespeed-misc.o: undefined reference to symbol keypad | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PullRequest |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/17943 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 games-misc:typespeed-0.6.5-r1:20190801-042425.log logs.tbz2 temp.tbz2 Patch to allow compilation |
Description
Toralf Förster
2019-08-01 22:36:52 UTC
Created attachment 585392 [details]
emerge-info.txt
Created attachment 585394 [details]
emerge-history.txt
Created attachment 585396 [details]
environment
Created attachment 585398 [details]
etc.portage.tbz2
Created attachment 585400 [details]
games-misc:typespeed-0.6.5-r1:20190801-042425.log
Created attachment 585402 [details]
logs.tbz2
Created attachment 585404 [details]
temp.tbz2
Looks like a ncurses related issue. From https://bugs.gentoo.org/653028, if I run export CXXFLAGS="${CXXFLAGS} -ltinfo" export CFLAGS="${CFLAGS} -ltinfo" export LDFLAGS="${LDFLAGS} -ltinfo" emerge typespeed then there's no error. Created attachment 611732 [details, diff]
Patch to allow compilation
It's definitely a tinfo issue. ncurses and tinfo are split on gentoo. To fix, I just added a rule in configure.ac to get all the libraries needed using pkg-config, link those libraries in src/Makefile.am, and it works like a charm.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc243064474c8e4d688e7d59e5423fe0a931840 commit 0fc243064474c8e4d688e7d59e5423fe0a931840 Author: Alexey Sokolov <sokolov@google.com> AuthorDate: 2020-11-15 20:02:50 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-11-15 20:02:50 +0000 games-misc/typespeed: fix build Closes: https://bugs.gentoo.org/694840 Closes: https://bugs.gentoo.org/691256 Closes: https://bugs.gentoo.org/706518 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: David Seifert <soap@gentoo.org> .../files/typespeed-0.6.5-link-tinfo.patch | 35 +++++++ .../files/typespeed-0.6.5-use-extern.patch | 116 +++++++++++++++++++++ games-misc/typespeed/typespeed-0.6.5-r2.ebuild | 47 +++++++++ 3 files changed, 198 insertions(+) |