Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661098 - app-editors/emact - curses.o: undefined reference to symbol 'raw'
Summary: app-editors/emact - curses.o: undefined reference to symbol 'raw'
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:
 
Reported: 2018-07-13 21:07 UTC by Sławomir Nizio
Modified: 2018-07-21 05:26 UTC (History)
1 user (show)

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


Attachments
Makes it build. (emact-2.58.0-libtinfo.patch,789 bytes, patch)
2018-07-13 21:07 UTC, Sławomir Nizio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2018-07-13 21:07:21 UTC
Created attachment 539442 [details, diff]
Makes it build.

sys-libs/ncurses-6.1-r2 is built with tinfo.

unicode.c:210:2: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
  (void)getcwd( abuf, EMMAXCHARCONV );
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ld emact ...
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: curses.o: undefined reference to symbol 'raw'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:110: emact] Error 1
make: *** [Makefile:52: auto] Error 2


I'll attach a patch.

Affected versions: all, 2.56.0 and 2.58.0.
Comment 1 Larry the Git Cow gentoo-dev 2018-07-20 19:03:22 UTC
The bug has been referenced in the following commit(s):

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

commit b200945e8476e0e3edbfdeff04e1315911f9604c
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2018-07-20 19:02:03 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2018-07-20 19:03:14 +0000

    app-editors/emact: Fix build failure with ncurses[tinfo].
    
    Bug: https://bugs.gentoo.org/661098
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 app-editors/emact/emact-2.58.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 2 Ulrich Müller gentoo-dev 2018-07-20 19:04:46 UTC
Fixed somewhat differently, using pkg-config.
Thanks for reporting!
Comment 3 Sławomir Nizio 2018-07-20 19:24:47 UTC
Nice, this avoid autoreconf. Thanks!