Raised This Month: $51 Target: $400
 12% 

VSP "unable to load plugin" error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
merhaben
Junior Member
Join Date: Jun 2016
Old 09-09-2016 , 15:36   VSP "unable to load plugin" error
Reply With Quote #1

I am working on VSP. I build my plugin with no errors and put in the addons file with .vdf file. But the plugin doesnt work and give myplugin.so: undefined symbol: KeyValuesSystem from server console.
Normally my plugin worked fine. I add code to use KeyValues class then build successfully but doesnt load and give error above.
My another questions i cant link vstdlib.
MY Makefile like this:
Code:
LDFLAGS_PLG = -lm -ldl libtier0.so libvstdlib.so  $(LIB_DIR)/mathlib_i486.a $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/interfaces_i486.a
And ldd myplugin.so
Code:
    linux-gate.so.1 =>  (0xf7739000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7570000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7553000)
    libtier0.so => not found
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf739c000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7347000)
    /lib/ld-linux.so.2 (0x565aa000)
undefined symbol: Msg    (./myplugin_i486.so)
undefined symbol: Warning    (./myplugin_i486.so)
undefined symbol: g_pMemAlloc    (./myplugin_i486.so)
undefined symbol: _Z6ConMsgPKcz    (./myplugin_i486.so)
undefined symbol: _Z11ConColorMsgRK5ColorPKcz    (./myplugin_i486.so)
undefined symbol: dlsym    (./myplugin_i486.so)
undefined symbol: dlclose    (./myplugin_i486.so)
undefined symbol: dlopen    (./myplugin_i486.so)
undefined symbol: dlerror    (./myplugin_i486.so)
undefined symbol: Plat_IsInDebugSession    (./myplugin_i486.so)
undefined symbol: CommandLine    (./myplugin_i486.so)
undefined symbol: Error    (./myplugin_i486.so)
undefined symbol: KeyValuesSystem    (./myplugin_i486.so)
undefined symbol: _Z6DevMsgPKcz    (./myplugin_i486.so)
undefined symbol: LoggingSystem_LogAssert    (./myplugin_i486.so)
undefined symbol: ShouldUseNewAssertDialog    (./myplugin_i486.so)
undefined symbol: _ExitOnFatalAssert    (./myplugin_i486.so)
undefined symbol: DoNewAssertDialog    (./myplugin_i486.so)
undefined symbol: DevMsg    (./myplugin_i486.so)
undefined symbol: _AssertValidStringPtr    (./myplugin_i486.so)
undefined symbol: _AssertValidReadPtr    (./myplugin_i486.so)
undefined symbol: _AssertValidWritePtr    (./myplugin_i486.so)
Thank you so much for your help.
merhaben is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-09-2016 , 16:44   Re: VSP "unable to load plugin" error
Reply With Quote #2

Your problem is probably that you aren't linking vstdlib but you didn't give any information on what's going wrong with linking it.
Fyren is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-10-2016 , 14:28   Re: VSP "unable to load plugin" error
Reply With Quote #3

You need to set LD_LIBRARY_PATH (like srcds_run does) before running ldd to get useful output.
__________________
asherkin is offline
merhaben
Junior Member
Join Date: Jun 2016
Old 09-10-2016 , 16:33   Re: VSP "unable to load plugin" error
Reply With Quote #4

I set LD_LIBRARY_PATH and ldd output like below:
Code:
    linux-gate.so.1 =>  (0xf77d2000)
    libstdc++.so.6 => /home/cemalege/csgoserver/bin/libstdc++.so.6 (0xf76d5000)
    libgcc_s.so.1 => /home/cemalege/csgoserver/bin/libgcc_s.so.1 (0xf76c0000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf769d000)
    libtier0.so => /home/cemalege/csgoserver/bin/libtier0.so (0xf764f000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7499000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7444000)
    /lib/ld-linux.so.2 (0x565f0000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7427000)
merhaben is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode