Summary: | app-shells/hstr-2.0 : /.../ld: hstr_curses.o: undefined reference to symbol keypad | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Patrice Clement <monsieurp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, lssndrbarbieri, main.haarp, moltonel, pia, shell-tools |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/dvorka/hstr/pull/355 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 457530 | ||
Attachments: |
emerge-info.txt
app-shells:hstr-2.0:20190719-081624.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 Use pkg-config for ncurses |
Description
Toralf Förster
2019-07-19 16:02:15 UTC
Created attachment 583642 [details]
emerge-info.txt
Created attachment 583644 [details]
app-shells:hstr-2.0:20190719-081624.log
Created attachment 583646 [details]
emerge-history.txt
Created attachment 583648 [details]
environment
Created attachment 583650 [details]
etc.portage.tbz2
Created attachment 583652 [details]
logs.tbz2
Created attachment 583654 [details]
temp.tbz2
Looks like configure isn't picking up the libs from pkg-config for some reason: Makefile.in NCURSESW_LIBS = @NCURSESW_LIBS@ Makefile NCURSESW_LIBS = $ pkg-config --libs ncursesw -lncursesw -ltinfow My configure skills probably aren't good enough to dig much deeper. OK, I dug anyway... learnt some configure foo on the way... I *think* the problem is two parts: a) configure.ac 50-82 only uses pkg-config for ncurses if killwchar isn't in either libncursesw or libncurses (which it is) b) src/Makefile.am 40 uses NCURSES_LIBS, but configure.ac sets up NCURSESW_LIBS, so even when configure does use pkg-config, the linking problems still exist (they actually get worse) Created attachment 583662 [details, diff]
Use pkg-config for ncurses
Attached patch produces a successful build and a working hstr.
It also causes configure to produce lots of warnings along the lines of:
checking assert.h presence... no
configure: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: assert.h: proceeding with the compiler's result
checking for assert.h... yes
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50942d513fa2c878cd975a822cc3ca70b55e8b56 commit 50942d513fa2c878cd975a822cc3ca70b55e8b56 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2019-11-28 22:00:48 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2019-11-28 22:01:02 +0000 app-shells/hstr: fix ncurses configure. Patch courtesy of Dan Goodliffe <gentoo@randomdan.homeip.net>. Closes: https://bugs.gentoo.org/690232 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> .../files/hstr-2.0-fix-ncurses-configure.patch | 81 ++++++++++++++++++++++ app-shells/hstr/hstr-2.0.ebuild | 2 + 2 files changed, 83 insertions(+) |