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...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
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: ---

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

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]

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/ 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]
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-16 06:43:03 UTC
Comment on attachment 440842 [details, diff]

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!