Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588920 - app-misc/dvorakng-0.6.0 - ld: dvorakng.o: undefined reference to symbol 'curs_set'
Summary: app-misc/dvorakng-0.6.0 - ld: dvorakng.o: undefined reference to symbol 'curs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2016-07-16 04:45 UTC by Aline Freitas
Modified: 2016-07-16 06:52 UTC (History)
1 user (show)

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


Attachments
makefile-libs.patch (makefile-libs.patch,403 bytes, patch)
2016-07-16 04:45 UTC, Aline Freitas
Details | Diff
dvorakng-0.6.0.ebuild (dvorakng-0.6.0.ebuild,733 bytes, text/plain)
2016-07-16 04:46 UTC, Aline Freitas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aline Freitas 2016-07-16 04:45:19 UTC
Created attachment 440842 [details, diff]
makefile-libs.patch

This ebuild breaks in linkage:

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -o dvorakng dvorakng.o lessons.o -lncurses
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: dvorakng.o: undefined reference to symbol 'curs_set'
/lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:33: recipe for target 'dvorakng' failed
make: *** [dvorakng] Error 1

The fix is very simple: we just need to add "-ltinfo"

Attached is a suggested patch and the corresponding ebuild.
Comment 1 Aline Freitas 2016-07-16 04:46:52 UTC
Created attachment 440844 [details]
dvorakng-0.6.0.ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-16 06:43:03 UTC
Comment on attachment 440842 [details, diff]
makefile-libs.patch

That's wrong for anyone who does /not/ have sys-libs/ncurses[tinfo].
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-16 06:52:27 UTC
Fixed without revision bump. Thanks for the report!