Raised This Month: $32 Target: $400
 8% 

Extension compiling problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 05-02-2013 , 18:42   Extension compiling problem
Reply With Quote #1

I am attempting to recompile the Sidewinder extension. It was originally compiled against vstdlib_i486.so and tier0_i486.so, thus was very old.

I tried to compile it against the new libtier0_srv.so and libvstdlib_srv.so. These are symlinked against hl2sdk-ob-valve/lib/linux/libtier0_srv.so and /hl2sdk-ob-valve/lib/linux/libvstdlib_srv.so

The Make file runs and exits with a status of 0. However, the binary fails to load.


This is the error I see when I check the binary with ldd -d
Code:
ldd -d Release.orangeboxvalve/sidewinder.ext.2.ep2v.so
        linux-gate.so.1 =>  (0xf77d3000)
        libvstdlib_srv.so => not found
        libtier0_srv.so => not found
        libm.so.6 => /lib/libm.so.6 (0xf773c000)
        libdl.so.2 => /lib/libdl.so.2 (0xf7737000)
        libc.so.6 => /lib/libc.so.6 (0xf7585000)
        /lib/ld-linux.so.2 (0x46e4a000)
undefined symbol: __cxa_guard_acquire   (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: __cxa_guard_release   (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _Z6ConMsgPKcz (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: Warning       (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: __dynamic_cast        (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _Z11ConColorMsgRK5ColorPKcz   (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: Error (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: AssertValidStringPtr  (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _AssertValidWritePtr  (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _AssertValidReadPtr   (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: GetCPUInformation     (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE     (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE      (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
undefined symbol: __gxx_personality_v0  (Release.orangeboxvalve/sidewinder.ext.2.ep2v.so)
Why am I missing binaries and what are these undefined symbols?
FunkyLoveCow is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-02-2013 , 19:55   Re: Extension compiling problem
Reply With Quote #2

Quote:
Originally Posted by FunkyLoveCow View Post
Code:
        libvstdlib_srv.so => not found
        libtier0_srv.so => not found
libvstdlib_srv.so and libtier0_srv.so were not properly linked.

Can you paste the Makefile?

Last edited by psychonic; 05-02-2013 at 19:56.
psychonic is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-02-2013 , 21:15   Re: Extension compiling problem
Reply With Quote #3

ldd will always say not found on a normal run, you need to use the same LD_LIBRARY_PATH as srcds_run.
__________________
asherkin is offline
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 05-03-2013 , 10:58   Re: Extension compiling problem
Reply With Quote #4

Quote:
Originally Posted by psychonic View Post
libvstdlib_srv.so and libtier0_srv.so were not properly linked.

Can you paste the Makefile?
http://pastebin.com/T3pwWqeY

Asherkin, do you mean I need to set LD_LIBRARY_PATH in the Makefile?
FunkyLoveCow is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-03-2013 , 11:01   Re: Extension compiling problem
Reply With Quote #5

Quote:
Originally Posted by FunkyLoveCow View Post
http://pastebin.com/T3pwWqeY

Asherkin, do you mean I need to set LD_LIBRARY_PATH in the Makefile?
No, when you use ldd.
__________________
asherkin 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 00:56.


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