.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Enhancement Workshop > Metamod and metamod plugins
Metamod and metamod plugins Plugins and improvements for the metamod server-side mod

Reply
 
Thread Tools
Linux shall be the death of me
Old
  (#1)
FierceRecon
Member
 
Status: Offline
Posts: 2
Join Date: Sep 2005
Default Linux shall be the death of me - 01-09-2005

Ok, first of all, Hello, since I'm new here.

I made a small metamod plugin of my own, just makes an HTTP request and parses the data (for now).

I'm having a lot of troubles compiling it under linux. (I'm using VMWare, since I don't have access to a linux box)

VM is a Redhat 7.3 .
I'm using the metamod makefile with my own Config.mak .
Everything compiles fine, BUT:
Code:
[compile@compiler czlac]$ ldd -r debug.linux/czlac_i386.so libdl.so.2 => /lib/libdl.so.2 (0x4001c000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40020000) libm.so.6 => /lib/i686/libm.so.6 (0x40063000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) undefined symbol: UTIL_VarArgs__FPCce (debug.linux/czlac_i386.so) undefined symbol: PlayerAPI_Init__Fv (debug.linux/czlac_i386.so)


From torchering g++ endlessly, I've come to the conclusion that two of my files, czlac.cpp, and dllapi_post.cpp are responsible.

the functions that are "undefined" are declared as:
Code:
(in utils.h)
#ifndef _UTILS_H_
#define _UTILS_H_

void UTIL_HudMessage(edict_t *pEntity, const hudtextparms_t &textparms, char *pMessage);
void UTIL_ClientPrint( edict_t *pEntity, int msg_dest,  char *msg );
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name);
void UTIL_ShowMenu( edict_t* pEntity, int slots, int time, char *menu, int mlen );
char *UTIL_VarArgs(const char *fmt, ...);
#endif
(and the same things in utils.cpp)
This file is included last into both czlac.cpp and dllapi.cpp .
Can someone at least hint me in the right direction?

O and lastly
Code:
[compile@compiler czlac]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
  
Reply With Quote
Re: Linux shall be the death of me
Old
  (#2)
FierceRecon
Member
 
Status: Offline
Posts: 2
Join Date: Sep 2005
Default Re: Linux shall be the death of me - 02-09-2005

forget it, solved

(i had char *UTIL_VarArgs(const char *arg, ...) in utils.h and char *UTIL_VarArgs(char *arg, ...) in utils.cpp)
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com