EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   Compiling issues under RedHat Linux 9. (https://www.eqemulator.org/forums/showthread.php?t=10658)

moonphoenix 12-06-2003 01:41 PM

Compiling issues under RedHat Linux 9.
 
Compiling world I get the following error. Could somebody please shed some light on what needs to happen as although I know what I'm doing compiling on windows, I'm rather new to Linux

Thanx


Code:

[root@p15147019 world]# make
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wstrict-prototypes -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -I/usr/include/mysql -I/usr/mysql/include -c ../common/debug.cpp  -o .obj/debug.o
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wstrict-prototypes -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -I/usr/include/mysql -I/usr/mysql/include -c ../common/database.cpp  -o .obj/database.o
../common/database.cpp: In member function `void
  Database::LoadWorldContainer(unsigned int, ItemContainerInst*)':
../common/database.cpp:1672: warning: unused variable `const Item_Struct*item'
../common/database.cpp:1673: warning: unused variable `ItemInst*inst'
../common/database.cpp: In member function `uint32 Database::AddObject(unsigned
  int, unsigned int, const Object_Struct&, const ItemInst*)':
../common/database.cpp:1782: warning: cast from `const ItemInst*' to `
  ItemContainerInst*' discards qualifiers from pointer target type
../common/database.cpp: In member function `void
  Database::UpdateObject(unsigned int, unsigned int, unsigned int, const
  Object_Struct&, const ItemInst*)':
../common/database.cpp:1824: warning: cast from `const ItemInst*' to `
  ItemContainerInst*' discards qualifiers from pointer target type
../common/database.cpp: In member function `Ground_Spawns*
  Database::LoadGroundSpawns(unsigned int, Ground_Spawns*)':
../common/database.cpp:1841: warning: suggest parentheses around assignment
  used as truth value
../common/database.cpp: In member function `bool
  Database::CreateCharacter(unsigned int, PlayerProfile_Struct*, Inventory*)':
../common/database.cpp:2133: warning: `char**row' might be used uninitialized
  in this function
../common/database.cpp: In member function `GuildMember_Struct*
  Database::GetGuildMembers(unsigned int)':
../common/database.cpp:3143: warning: suggest parentheses around assignment
  used as truth value
../common/database.cpp: In member function `void Database::ConvertItemBlob()':
../common/database.cpp:6983: warning: statement with no effect
../common/database.cpp:6991: warning: statement with no effect
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wstrict-prototypes -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -I/usr/include/mysql -I/usr/mysql/include -c ../common/Item.cpp  -o .obj/Item.o
../common/Item.cpp: In member function `void
  ItemContainerInst::PutItem(unsigned char, const ItemInst&)':
../common/Item.cpp:325: warning: comparison is always false due to limited
  range of data type
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wstrict-prototypes -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -I/usr/include/mysql -I/usr/mysql/include  ../common/EQNetwork.o ../common/timer.o ../common/packet_dump.o ../common/races.o ../common/unix.o ../common/Mutex.o ../common/MiscFunctions.o ../common/serverinfo.o ../common/packet_functions.o ../common/classes.o ../common/TCPConnection.o ../common/eqtime.o ../common/crc32.o client.o net.o console.o zoneserver.o LoginServer.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/misc.o .obj/debug.o .obj/database.o .obj/Item.o -rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/mysql/lib -l mysqlclient -ldl -o world


krich 12-06-2003 05:50 PM

Aside from a bunch of whining...er...umm...i mean warnings from the compiler, this looks to be a successful comple. What errors are you specifically talking about?

You should see a compiled world executable in the same directory. It'll be called 'world' with no .exe suffix and may sometimes show up green in your directory listing.

Regards,

krich

kathgar 12-07-2003 01:28 AM

haha you are compiling as root
and again.. no errors that I see...

moonphoenix 12-07-2003 01:43 AM

I've got it running now :D


All times are GMT -4. The time now is 06:39 AM.

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