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

serverplugin_empty compile problem (linux)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cyko
Member
Join Date: Mar 2004
Old 12-19-2005 , 13:01   serverplugin_empty compile problem (linux)
Reply With Quote #1

i have the infamous "unable to load" problem. after searching the forums, it seems the problem disappears once `ldd -d serverplugin_empty_i486.so` properly sees tier0_i486.so and vstdlib_i486.so. well, aside from this warning upon compiling:

Quote:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
i get no other error messages.

Quote:
cyko@xxx ~/plugins/serverplugin_sample $ ldd -d serverplugin_empty_i486.so
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0xb7edb000)
libdl.so.2 => /lib/libdl.so.2 (0xb7ed7000)
tier0_i486.so => ./tier0_i486.so (0xb7ea9000)
vstdlib_i486.so => ./vstdlib_i486.so (0xb7e94000)
libc.so.6 => /lib/libc.so.6 (0xb7d7f000)
/lib/ld-linux.so.2 (0x80000000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7d2c000)
undefined symbol: _Z12MathLib_Initfffibbbb (./serverplugin_empty_i486.so)
undefined symbol: _Z10Bot_RunAllv (./serverplugin_empty_i486.so)
as you can see, it does see tier0/vstdlib_i486.so fine but yet it complains about these undefined symbols. i grep'd through the sdk folder to find where the header MathLib_Init was defined at (which was mathlib.h) and added that to the serverplugin_empty.cpp and that didn't make a bit of difference. i get the same ldd output.

any suggestions on what else to try?
cyko is offline
cyko
Member
Join Date: Mar 2004
Old 12-19-2005 , 13:04  
Reply With Quote #2

I also wanted to add that I'm using the Makefile provided from:

http://forums.alliedmods.net/showthread.php?p=337308

the only changes made to this Makefile was the HL2SDK_SRC_DIR, HL2BIN_DIR & CPP_LIB (which all seem to work otherwise i wouldn't have gotten this far, heh)
cyko is offline
cyko
Member
Join Date: Mar 2004
Old 12-19-2005 , 13:29  
Reply With Quote #3

I fixed the mathlib symbol by modifying the Makefile to:

Code:
PUBLIC_OBJS = \
        $(PUBLIC_OBJ_DIR)/mathlib.o \
I still, however, get:

Quote:
undefined symbol: _Z10Bot_RunAllv (./serverplugin_empty_i486.so)
and i can't seem to find where that function is defined at
cyko is offline
showdax
Senior Member
Join Date: Dec 2004
Old 12-19-2005 , 14:40  
Reply With Quote #4

You need to compile and link serverplugin_bot.cpp as well, or remove its usage from the main plugin object.
showdax is offline
Send a message via MSN to showdax
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 07:41.


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