Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489188 - games-arcade/smc-1.9: underlinking w/ sys-devel/binutils-2.23.2: game_core.o: undefined reference to symbol 'XGetSelectionOwner'
Summary: games-arcade/smc-1.9: underlinking w/ sys-devel/binutils-2.23.2: game_core.o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 19:49 UTC by Petr Zima
Modified: 2013-10-23 22:09 UTC (History)
0 users

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


Attachments
Patch which fixes the problem. (smc-1.9-underlink.patch,809 bytes, patch)
2013-10-23 19:50 UTC, Petr Zima
Details | Diff
Ebuild which add libX11 dep, uses the patch and calls autoreconf. (smc-1.9.ebuild.patch,1006 bytes, patch)
2013-10-23 19:51 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Zima 2013-10-23 19:49:04 UTC
Install fails during compile phase due to underlinking with recent binutils:

/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: game_core.o: undefined reference to symbol 'XGetSelectionOwner'
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'XGetSelectionOwner' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

Obviously it needs -lX11. After fixing that similar error occurs with -lboost_system.

Reproducible: Always
Comment 1 Petr Zima 2013-10-23 19:50:22 UTC
Created attachment 361738 [details, diff]
Patch which fixes the problem.
Comment 2 Petr Zima 2013-10-23 19:51:17 UTC
Created attachment 361740 [details, diff]
Ebuild which add libX11 dep, uses the patch and calls autoreconf.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2013-10-23 22:09:06 UTC
in portage.  thanks for the bug report and patch