Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC

Bug 690840

Summary: sys-process/htop-2.2.0[-unicode] fails to build
Product: Gentoo Linux Reporter: John Moore <jdmoore6>
Component: Current packagesAssignee: Christian Ruppert (idl0r) <idl0r>
Status: CONFIRMED ---    
Severity: normal CC: esigra, ivan, jaco, polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: build log
emerge --info htop

Description John Moore 2019-07-28 02:36:58 UTC
Created attachment 584858 [details]
build log

If I have USE="-unicode", emerge htop-2.2.0 fails with 
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CRT.o: undefined reference to symbol 'keypad'

Setting USE="unicode", emerge htop is successful
Comment 1 John Moore 2019-07-28 02:47:23 UTC
Created attachment 584860 [details]
emerge --info htop
Comment 2 Guillermo D. H. 2019-07-28 19:09:35 UTC
Likely a consequence of setting USE=tinfo in the profiles.

x86_64-pc-linux-gnu-gcc ... -o htop ... CRT.o ... linux/Battery.o  -lncurses -lm  
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CRT.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/ error adding symbols: DSO missing from command line

nm -D | grep keypad
0000000000013200 T keypad
0000000000013170 T _nc_keypad

And no -ltinfo in gcc's command line. Another one for bug #457530 I guess.
Comment 3 Lars Wendler (Polynomial-C) gentoo-dev 2019-08-04 11:56:35 UTC
This issue requires special attention. 
Seems like the upstream author put extra (uselessly?) complicated effort into checking for either ncurses with unicode support and ncurses without unicode support depending on the --(en|dis)able-unicode configure switch. 
He even wrote his own m4 macros for that... m(
Comment 4 Jaco Kroon 2020-01-20 10:48:23 UTC
Workaround:  LDFLAGS=-ltinfo emerge -1av htop

Would love to see some kind of fix on this.  Gettng somewhat annoying.