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

Bug 548358

Summary: net-analyzer/goaccess with ncurses[tinfo]: src/ui.o: undefined reference to symbol 'curs_set'
Product: Gentoo Linux Reporter: Reuben Martin <reuben.m>
Component: Current packagesAssignee: Vladimir Pavljuchenkov (SpiderX) <spiderx>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, proxy-maint, zoltan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530, 559200    
Attachments: Build log
goaccess-0.9-tinfo.patch

Description Reuben Martin 2015-05-01 19:53:51 UTC
src/ui.o: undefined reference to symbol 'curs_set'
/lib64/libtinfow.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:435: recipe for target 'goaccess' failed

Reproducible: Always
Comment 1 Andrew Savchenko gentoo-dev 2015-05-01 23:27:05 UTC
Please provide a full build.log and emerge --info output.
Comment 2 Zoltan Puskas 2015-10-28 11:35:50 UTC
Created attachment 415616 [details]
Build log

Fails to compile with ncurses6 too:

...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: src/ui.o: undefined reference to symbol 'halfdelay'
/usr/lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
Comment 3 Vladimir Pavljuchenkov (SpiderX) 2016-01-01 16:14:11 UTC
Created attachment 421496 [details, diff]
goaccess-0.9-tinfo.patch

1. Sorry for a huge delay. I have just made a pull request to goaccess' github repository, which fixes this issue.
2. Patch to fix this also attached. We should better wait a couple of days for upstream decision, before including this patch into ebuild.
Since ebuild uses epatch_user, you can flawlessly apply it using it, if you can't wait:
2.1. mkdir -p /etc/portage/patches/net-analyzer/goaccess/
2.2. nano /etc/portage/patches/net-analyzer/goaccess/goaccess-0.9-tinfo.patch
2.3. emerge -atv goaccess
3. After upstream decision, I will make an ebuild bump to its recent version, which will have this patch or backported fix from upstream.
Comment 4 Vladimir Pavljuchenkov (SpiderX) 2017-01-16 23:58:23 UTC
https://github.com/gentoo/gentoo/pull/3435