PDA

View Full Version : 0.4.4DR1 - Compiling Zone (Help!)


inkubus
05-06-2003, 07:10 PM
Hey everyone. I'm having trouble compiling 'zone' from nightdumps. I know this version isn't supported but is anyone around here able to give me some help? World and emusharemem compile fine with gcc-3.0.4.

I'm running Debian (Woody) linux 2.2.20-idepci.

Thanks

InKubus


eqemu@iksar:~/eqemucvs/NightDumps/Source/zone$ make
gcc-3.0 -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/usr/include/mysql -I/usr/mysql/include client.cpp -o client.o
client.cpp: In member function `sint32 Client::GenericFocus(short unsigned int,
short unsigned int)':
client.cpp:453: warning: comparison between signed and unsigned integer
expressions
client.cpp: In member function `bool Client::QuestTroupe(const Seperator*)':
client.cpp:1868: warning: deprecated conversion from string constant to `char*'
client.cpp:2188: warning: deprecated conversion from string constant to `char*'
client.cpp: In method `bool Client::NormalGM(const Seperator*)':
client.cpp:3511: warning: unused variable `int8 charges'
client.cpp: In member function `bool Client::NormalUser(const Seperator*)':
client.cpp:4193: warning: deprecated conversion from string constant to `char*'
client.cpp:4510: name lookup of `i' changed for new ISO `for' scoping
client.cpp:4508: using obsolete binding at `i'
client.cpp: In member function `uint32 Client::HasItemInInventory(short
unsigned int, short unsigned int)':
client.cpp:5675: warning: initialization of negative value `-1' to `uint32'
client.cpp:5675: warning: argument of negative value `-1' to `unsigned int'
client.cpp:5677: warning: comparison is always true due to limited range of
data type
client.cpp: In member function `void Client::Commandlog(const Seperator*)':
client.cpp:7291: warning: assignment to non-pointer type `char' from NULL
client.cpp:7291: warning: argument to non-pointer type `char' from NULL
client.cpp:7297: warning: deprecated conversion from string constant to `char*'
client.cpp:7299: warning: deprecated conversion from string constant to `char*'
client.cpp: In member function `void Client::LogMerchant(Client*, Mob*,
Merchant_Purchase_Struct*, const Item_Struct*, bool)':
client.cpp:7325: warning: deprecated conversion from string constant to `char*'
client.cpp:7335: warning: passing `double' for argument 1 of `const char*
itoa(int, char*, int)'
client.cpp:7343: warning: deprecated conversion from string constant to `char*'
client.cpp: In member function `void Client::LogLoot(Client*, Corpse*, const
Item_Struct*)':
client.cpp:7360: warning: deprecated conversion from string constant to `char*'
client.cpp:7369: warning: deprecated conversion from string constant to `char*'
client.cpp:7371: warning: deprecated conversion from string constant to `char*'
client.cpp: In member function `bool Client::MoveItem(short unsigned int, short
unsigned int, unsigned char)':
client.cpp:7519: warning: comparison is always true due to limited range of
data type
client.cpp:7556: warning: comparison is always true due to limited range of
data type
client.cpp:7619: warning: unused variable `bool temp_bag_empty'
make: *** [client.o] Error 1
eqemu@iksar:~/eqemucvs/NightDumps/Source/zone$

Trumpcard
05-07-2003, 12:39 AM
The only gcc versions that are currently supported are 3.2+.

gcc 3.0 was buggy at best, I would recommend upgrading to the latest gnu gcc version. You could fix the compile errors specficly for 3.0. but everyone has gotten away from that version for a reason, so you would probably have to 'fix' the code everytime you compile.

The only actually error in there is

client.cpp:4510: name lookup of `i' changed for new ISO `for' scoping
client.cpp:4508: using obsolete binding at `i'

I would change that to a new variable name in that scope, say int r , then reference r in the loop.

inkubus
05-07-2003, 01:37 AM
Thanks trumpcard, i'll give it a go!