EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   Compiling errors EQEMu 0.4.3 (https://www.eqemulator.org/forums/showthread.php?t=6591)

Brujah 04-14-2003 12:50 AM

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

Trumpcard 04-14-2003 12:52 AM

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.

Brujah 04-14-2003 12:58 AM

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

thx

Trumpcard 04-14-2003 02:53 AM

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

Brujah 04-14-2003 07:47 AM

Nope doesnt work :?

Trumpcard 04-14-2003 07:56 AM

You can always upgrade to gcc3.2 :-)

Probably the best solution...

Brujah 04-14-2003 08:00 AM

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.

Bigpull 04-14-2003 02:20 PM

http://forums.eqemu.net/viewtopic.php?t=6882

Brujah 04-16-2003 06:24 AM

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.

Brujah 04-16-2003 08:12 AM

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=

Trumpcard 04-16-2003 09:05 AM

Have you loaded an items database , at least sourced in the db.sql file ?

Brujah 04-16-2003 09:21 AM

This

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


Yes i have this

Trumpcard 04-16-2003 07:02 PM

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.

Brujah 04-16-2003 09:12 PM

I cant find libEmuSharemem.so :?

Trumpcard 04-16-2003 10:31 PM

Did you make it?

Theres a directory called emusharemem

Brujah 04-17-2003 06:48 AM

How ?

Trumpcard 04-17-2003 06:48 AM

make

Brujah 04-17-2003 06:53 AM

im in EmuSharemem i type Make and this say missing target or files.

Brujah 04-17-2003 06:57 AM

This is what i have in the EMuShareMem folder
Code:

[cs@cgleague EMuShareMem]$ dir
DLLMain.cpp  Doors.h Items.cpp  MMF.cpp  NPCFactionLists.cpp  NPCTypes.cpp  Spells.cpp Doors.cpp EMuShareMem.dsp Items.h    MMF.h  NPCFactionLists.h NPCTypes.h Spells.h

I dont have any makefile

Trumpcard 04-17-2003 08:45 AM

Download it from cvs... Maybe they missed it when making the source zip file.

Go to the sourceforge page, browse CVS, and look for the source/EmuShareMem folder and pull it out. Or better yet, download the module 'NightDumps' from cvs using the sourceforge page cvs instructions.

Brujah 04-17-2003 12:04 PM

ok im gonna try this, and lets you know if this work or not,

Brujah 04-17-2003 02:38 PM

Wow

Now i got this

Is better them nothing
Code:

[Status] CURRENT_WORLD_VERSION:EQEMu 0.4.4-DR1
[Error] CURRENT_WORLD_VERSION:EQEMu 0.4.4-DR1
Loading Variables, zone names & items...
LoadEMuShareMemDLL::Load() failed to load library error=(null)
Error: Could not load item data. But ignoring
...done.
LoginServer.ini read.
Loading guild ranks...done.
Loading EQ time of day...done.
Deleted 0 stale player corpses from database.
Deleted -1 stale player backups from database.
You may already be a winner... of the darwin award.
TCP listening on: 65.39.161.189:9000
World server listening on: 65.39.161.189:9000
Connected to LoginServer: eqlogin1.eqemu.net:5999


Brujah 04-17-2003 03:02 PM

I see what happend here i get all files, but i only need the EMuShareMem Folders and Complied him.

But here i complied all the Version 0.4.4.


lets me try again

Brujah 04-17-2003 03:19 PM

[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=Segmentation fault



Ok here

Brujah 04-18-2003 08:46 AM

Code:

[Status] CURRENT_ZONE_VERSION: EQEMu 0.4.3
[Error] CURRENT_ZONE_VERSION: EQEMu 0.4.3
[Status] Loading Variables
[Status] Loading zone names
[Status] Loading items
EMuShareMem.dll loaded.
[Status] Loading npcs
Error: EMuShareMem: DLLLoadNPCTypes: iNPCTypeStructSize != sizeof(NPCType)
NPCType struct has changed, EMuShareMem.dll needs to be recompiled.
[Error] Loading npcs FAILED!
Warning something odd happened freeing shared memory
Segmentation fault

Ok now i got this error

Trumpcard 04-18-2003 09:31 PM

what addon database are you using?

Brujah 04-23-2003 12:28 AM

Im think i gonna Recompiling all the server again.

But this im gonna use the realease In the CVS.


All times are GMT -4. The time now is 06:12 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.