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

Bug 489188

Summary: games-arcade/smc-1.9: underlinking w/ sys-devel/binutils-2.23.2: game_core.o: undefined reference to symbol 'XGetSelectionOwner'
Product: Gentoo Linux Reporter: Petr Zima <zima>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch which fixes the problem.
Ebuild which add libX11 dep, uses the patch and calls autoreconf.

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