[SOLVED] undefined symbol: _ZN2GG13MOD_KEY_RCTRLE

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

[SOLVED] undefined symbol: _ZN2GG13MOD_KEY_RCTRLE

#1 Post by kroddn »

Hello there,

today I managed to get a running static freeorion, but it crashes when initializing the plugin libGiGiOgrePlugin_OIS.so.

Code: Select all

Loading library libGiGiOgrePlugin_OIS.so
main() caught exception(std::exception): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library libGiGiOgrePlugin_OIS.so.  System Error: lib/libGiGiOgrePlugin_OIS.so: undefined symbol: _ZN2GG13MOD_KEY_RCTRLE in DynLib::load at OgreDynLib.cpp (line 80)
*-*-* OGRE Shutdown
Running ldd -u libGiGiOgrePlugin_OIS.so outputs:

Code: Select all

     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG13MOD_KEY_RCTRLE (continued)
undefined symbol: _ZN2GG13MOD_KEY_RCTRLE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG12MOD_KEY_CAPSE (continued)
undefined symbol: _ZN2GG12MOD_KEY_CAPSE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG11MOD_KEY_NUME (continued)
undefined symbol: _ZN2GG11MOD_KEY_NUME	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG14MOD_KEY_RSHIFTE (continued)
undefined symbol: _ZN2GG14MOD_KEY_RSHIFTE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG13MOD_KEY_SHIFTE (continued)
undefined symbol: _ZN2GG13MOD_KEY_SHIFTE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG12MOD_KEY_LALTE (continued)
undefined symbol: _ZN2GG12MOD_KEY_LALTE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG13MOD_KEY_RMETAE (continued)
undefined symbol: _ZN2GG13MOD_KEY_RMETAE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG12MOD_KEY_RALTE (continued)
undefined symbol: _ZN2GG12MOD_KEY_RALTE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG13MOD_KEY_LMETAE (continued)
undefined symbol: _ZN2GG13MOD_KEY_LMETAE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG2Y1E (continued)
undefined symbol: _ZN2GG2Y1E	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG14MOD_KEY_LSHIFTE (continued)
undefined symbol: _ZN2GG14MOD_KEY_LSHIFTE	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG2X0E (continued)
undefined symbol: _ZN2GG2X0E	(lib/libGiGiOgrePlugin_OIS.so)
     25364:	lib/libGiGiOgrePlugin_OIS.so: error: symbol lookup error: undefined symbol: _ZN2GG13MOD_KEY_LCTRLE (continued)
undefined symbol: _ZN2GG13MOD_KEY_LCTRLE	(lib/libGiGiOgrePlugin_OIS.so)
I don't know how to solve it. But maybe tzlaine can tell something about it?

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: undefined symbol: _ZN2GG13MOD_KEY_RCTRLE

#2 Post by kroddn »

Okay, I found out what the problem is. I manually created libGiGiOgrePlugin_OIS.so using this command:

Code: Select all

g++-4.3 -o libGiGiOgrePlugin_OIS.so -pthread -shared src/Ogre/Plugins/OgreGUIInputPlugin.os src/Ogre/Plugins/OISInput.os src/WndEvent.os src/PtRect.os -L/usr/local/lib -L/usr/lib -lboost_signals-gcc43-mt -lboost_system-gcc43-mt -lboost_filesystem-gcc43-mt -lboost_thread-gcc43-mt -lGL -lGLU -lz -lfreetype -ljpeg -lpng -ltiff -lOgreMain -lOIS
So, adding the two sourcefiles src/WndEvent.os src/PtRect.os worked, the symbols are now solved.

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

Re: undefined symbol: _ZN2GG13MOD_KEY_RCTRLE

#3 Post by tzlaine »

What platform is this running on? I haven't seen anything like this on Win32 or Linux32, building the GG tutorials or FO.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: undefined symbol: _ZN2GG13MOD_KEY_RCTRLE

#4 Post by kroddn »

The problem already solved when doing a clean build. Sorry, forgot to post that.

Post Reply