Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671714 - app-editors/fe-2.0 - libfe.a(display.o): undefined reference to symbol 'keypad'
Summary: app-editors/fe-2.0 - libfe.a(display.o): undefined reference to symbol 'keypad'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2018-11-22 21:18 UTC by Sławomir Nizio
Modified: 2018-11-23 20:52 UTC (History)
0 users

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 Sławomir Nizio 2018-11-22 21:18:12 UTC
...
display.c: In function ‘ds_shell’:
display.c:1816:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-W
unused-result]
       write(1,"\n",1);
       ^~~~~~~~~~~~~~~
display.c:1844:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-W
unused-result]
         write(1,cont,strlen(cont));
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
display.c: In function ‘ds_suspend’:
display.c:1864:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-W
unused-result]
   write(1,"\n",1);
   ^~~~~~~~~~~~~~~
ar: creating libfe.a
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: libfe.a(display.o): undefine
d reference to symbol 'keypad'
/lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:27: fe] Error 1
 * ERROR: app-editors/fe-2.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 Sławomir Nizio 2018-11-22 21:19:18 UTC
sys-libs/ncurses-5.9-r101::gentoo was built with the following:
USE="gpm tinfo unicode" ABI_X86="32 (64) (-x32)"


sys-libs/ncurses-6.1-r2::gentoo was built with the following:
USE="cxx gpm static-libs tinfo unicode -ada -debug -doc -minimal -profile -test -threads -trace" ABI_X86="32 (64) (-x32)"

note tinfo is enabled, probably should block bug 457530.
Comment 2 Jeroen Roovers gentoo-dev 2018-11-23 13:27:47 UTC
--- a/configure.in
+++ b/configure.in
@@ -157,6 +157,8 @@
 idcok(stdscr,TRUE);
 ],AC_DEFINE(HAVE_IDCOK) AC_MSG_RESULT(yes),AC_MSG_RESULT(no))

+AC_CHECK_LIB(tinfo, noraw)
+
 AC_MSG_CHECKING(for broken realloc)
 AC_TRY_RUN([#include <sys/types.h>
 #include <signal.h>
Comment 3 Ulrich Müller gentoo-dev 2018-11-23 16:03:35 UTC
(In reply to Jeroen Roovers from comment #2)

Probably easier to work around the issue with pkg-config.
Comment 4 Larry the Git Cow gentoo-dev 2018-11-23 17:25:28 UTC
The bug has been closed via the following commit(s):

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

commit 91028af7c0b3f200076ab579f798c5826513eae4
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2018-11-23 17:23:55 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2018-11-23 17:25:12 +0000

    app-editors/fe: Fix compilation with ncurses[tinfo].
    
    Closes: https://bugs.gentoo.org/671714
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/fe/fe-2.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 5 Sławomir Nizio 2018-11-23 20:52:42 UTC
That was fast, thanks to both of you!