Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498814 - app-editors/xemacs-21.5.34 with sys-libs/ncurses[tinfo] - ld: cm.o: undefined reference to symbol 'tgoto'
Summary: app-editors/xemacs-21.5.34 with sys-libs/ncurses[tinfo] - ld: cm.o: undefined...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XEmacs team
Depends on:
Blocks: tinfo
  Show dependency tree
Reported: 2014-01-21 17:20 UTC by Seong-ho Cho
Modified: 2014-08-01 20:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

info_xemacs-21.5.34.log (info_xemacs-21.5.34.log,8.21 KB, text/plain)
2014-01-21 17:23 UTC, Seong-ho Cho
build_xemacs-21.5.34.log (build_xemacs-21.5.34.log,145.66 KB, text/plain)
2014-01-21 17:24 UTC, Seong-ho Cho

Note You need to log in before you can comment on or make changes to this bug.
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/ 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]
Comment 2 Seong-ho Cho 2014-01-21 17:24:20 UTC
Created attachment 368360 [details]
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.