Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 588920

Summary: app-misc/dvorakng-0.6.0 - ld: dvorakng.o: undefined reference to symbol 'curs_set'
Product: Gentoo Linux Reporter: Aline Freitas <aline>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: makefile-libs.patch
dvorakng-0.6.0.ebuild

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!