Can't load core.so

All other Source.Python topics and issues.
HighSky
Junior Member
Posts: 1
Joined: Wed Jan 15, 2014 5:30 pm

Can't load core.so

Postby HighSky » Sat Jan 18, 2014 4:55 pm

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.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sun Jan 19, 2014 11:31 am

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?
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Fri Jan 24, 2014 10:22 pm

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

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 65 guests