Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2003, 12:50 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default Compiling errors EQEMu 0.4.3

Hi i have p4 2.4
gcc 2.96-113
running on Red Hat Linux 7.3

when i try compli World i get this erreur.

gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/home/admin/local/mysql/include/mysql -I/home/admin/local/mysql/include ../common/dbcore.cpp -o ../common/dbcore.o
../common/dbcore.cpp: In method `bool DBcore::RunQuery (const char *,
unsigned int, char *, MYSQL_RES **, int32 *, int32 *, int32 *, bool)':
../common/dbcore.cpp:121: `strcpy' undeclared (first use this function)
../common/dbcore.cpp:121: (Each undeclared identifier is reported only
once for each function it appears in.)
../common/dbcore.cpp: In method `bool DBcore::Open (const char *, const
char *, const char *, const char *, char *, bool, bool)':
../common/dbcore.cpp:156: `strlen' undeclared (first use this function)
make: *** [../common/dbcore.o] Erreur 1


And For Zone i get this

gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/home/admin/local/mysql/include/mysql -I/home/admin/local/mysql/include mob.cpp -o mob.o
mob.cpp: In method `void Mob::FillSpawnStruct (NewSpawn_Struct *, Mob
*)':
mob.cpp:491: warning: assignment to `sint16' from `float'
mob.cpp:491: warning: argument to `short int' from `float'
mob.cpp: In method `void Mob::CreateHPPacket (APPLAYER *)':
mob.cpp:595: warning: assignment to `sint32' from `float'
mob.cpp:595: warning: argument to `int' from `float'
mob.cpp: In function `int32 Mob::RandomTimer (int, int)':
mob.cpp:1937: `rand' undeclared (first use this function)
mob.cpp:1937: (Each undeclared identifier is reported only once for
each function it appears in.)
make: *** [mob.o] Erreur 1


can someone help me with thats.

Thx
Reply With Quote
  #2  
Old 04-14-2003, 12:52 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

We dont test the builds on gcc < 3 anymore. None of us have linux distros with 2.9x on it anymore.

Should be fairly simple to fix though, rand missing means stdlib prolly needs to be included in mob.cpp and dbcore.cpp. You will just need to add a few include lines in most likely.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 04-14-2003, 12:58 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

Can you tell what Line i have to Add and where pls.

thx
Reply With Quote
  #4  
Old 04-14-2003, 02:53 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Try adding #include <stdlib> at the beginning of the files that are erroring...

It doesnt matter where, as long as it's near the beginning
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #5  
Old 04-14-2003, 07:47 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

Nope doesnt work
Reply With Quote
  #6  
Old 04-14-2003, 07:56 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

You can always upgrade to gcc3.2

Probably the best solution...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #7  
Old 04-14-2003, 08:00 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

When i try upgrade gcc.3.2 return me alot of warning and error.

I dont wanne take the chance.

i will thats work.

I have nice computer and nice connection allowed for that.
Reply With Quote
  #8  
Old 04-14-2003, 02:20 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

http://forums.eqemu.net/viewtopic.php?t=6882
Reply With Quote
  #9  
Old 04-16-2003, 06:24 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

I read it and i add Both lines in unix.h and World Give me alot of warning but zone return to me alot off warning and finished with an error.
Reply With Quote
  #10  
Old 04-16-2003, 08:12 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

ok thats work now. But when im starting ./world is return to me this error:



[Status] CURRENT_WORLD_VERSION:EQEMu 0.4.3
[Error] CURRENT_WORLD_VERSION:EQEMu 0.4.3
Loading Variables, zone names & items...
LoadEMuShareMemDLL::Load() failed error=
Reply With Quote
  #11  
Old 04-16-2003, 09:05 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Have you loaded an items database , at least sourced in the db.sql file ?
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #12  
Old 04-16-2003, 09:21 AM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

This

CREATE TABLE items (
id int(11) NOT NULL default '0',
raw_data blob,
PRIMARY KEY (id)
) TYPE=MyISAM;


Yes i have this
Reply With Quote
  #13  
Old 04-16-2003, 07:02 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

You also need to make sure the EmuShareMem/libEmuShareMem.so is in your LD_LIBRARY_PATH. Copy zone,world , and sharemem.so to the same directory and set your LD_LIBRARY_PATH= . :$LD_LIBRARY_PATH (no spaces) before starting world or zone.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #14  
Old 04-16-2003, 09:12 PM
Brujah
Fire Beetle
 
Join Date: May 2002
Posts: 0
Default

I cant find libEmuSharemem.so
Reply With Quote
  #15  
Old 04-16-2003, 10:31 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Did you make it?

Theres a directory called emusharemem
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
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 10:11 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3