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

Bug 498814

Summary: app-editors/xemacs-21.5.34 with sys-libs/ncurses[tinfo] - ld: cm.o: undefined reference to symbol 'tgoto'
Product: Gentoo Linux Reporter: Seong-ho Cho <darkcircle.0426>
Component: Current packagesAssignee: XEmacs team <xemacs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: info_xemacs-21.5.34.log
build_xemacs-21.5.34.log

Description Seong-ho Cho 2014-01-21 17:20:16 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o: undefined reference to symbol 'tgoto'
/lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
GNUmakefile:139: recipe for target 'xemacs' failed
Comment 1 Seong-ho Cho 2014-01-21 17:23:19 UTC
Created attachment 368358 [details]
info_xemacs-21.5.34.log
Comment 2 Seong-ho Cho 2014-01-21 17:24:20 UTC
Created attachment 368360 [details]
build_xemacs-21.5.34.log
Comment 3 Mats Lidell gentoo-dev 2014-01-22 23:29:21 UTC
This sounds as a problem with ncurses built with use flag tinfo causing two separate libraries to be created. The workaround is not to build ncurses with that use flag (but of course other packages might require it.) See bug 494518 with some discussion about it.

Odd enough I have earlier tried to recreate this problem but with no luck. I will  give it another try.
Comment 4 Mats Lidell gentoo-dev 2014-01-23 07:31:37 UTC
I was able to recreate the problem by rebuilding ncurses with the use flag tinfo set.
Comment 5 Mats Lidell gentoo-dev 2014-02-03 19:20:09 UTC
A new ebuild xemacs-21.5.34-r1 is available that fixes the problem. 

Since ncurses is required by xemacs-21.5 in gentoo the patch lets configure find what libs to link with using pkg-config.
Comment 6 Mats Lidell gentoo-dev 2014-08-01 20:13:34 UTC
Fixed in xemacs-21.5.34-r1.