Page 1 of 1

Can't load core.so

Posted: Sat Jan 18, 2014 4:55 pm
by HighSky
Hi,
I have build source-python from the latest source and i can't load it.

I copied source-python.so to the addons folder and core.so to the addons/source-python/bin folder.

And when the server try to load the plugin at startup :

Code: Select all

 failed to dlopen /home/steam/csgo_test/csgo/addons/source-python/bin/core.so error=/home/steam/csgo_test/csgo/addons/source-python/bin/core.so: undefined symbol: _ZN6AsmJit10_$
===========================================
[SP-LOADER] Could not load the /home/steam/csgo_test/csgo/addons/source-python/bin/core.so!
===========================================
Failed to load plugin "addons/source-python"



and when i try

Code: Select all

plugin_load addons/source-python
the server got a segmentation fault.

I'm trying to build source-python on ubuntu 12.04.4 64bits for csgo.

Thank you for your help.

Posted: Sun Jan 19, 2014 11:31 am
by Ayuto
That's a linking error, but I can't tell you more. I will have to test this out on my own. Did you compile in debug or release mode?

Posted: Fri Jan 24, 2014 10:22 pm
by Ayuto
After spending several hours on this I finally found the issue(s). This error already existed since I replaced DynDetours with DynamicHooks. But it wasn't just one error, but three:
1. Somehow AsmJit didn't get linked properly if we compiled for CS:GO.
2. There was an issue in the SDK for CS:GO that caused an undefined symbol error on the virtual function table symbol of IVEngineServer. That was because the method wasn't defined as a pure virtual function.
3. There was a mismatch of an extern function definition in a self defined macro (listeners macro)

All fixes are made in this revision: https://github.com/Source-Python-Dev-Team/Source.Python/commit/c9af37d88fb0986f0c2e6cbf6e7d733157c73714