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 07-19-2003, 04:26 PM
OperationIvy
Fire Beetle
 
Join Date: Jul 2003
Posts: 3
Default 5.0 Compile Errors on Redhat 7.1

got these erros on redhat 7.1, gcc 2.96 when compiling zone everything else compiled fine
Code:
[eqemu@google zone]$ make
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql ../common/packet_dump_file.cpp -o ../common/packet_dump_file.o
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql zone.cpp -o zone.o
zone.cpp: In function `bool Zone::Bootup (unsigned int, bool)':
zone.cpp:99: warning: unused variable `PlayerProfile_Struct *pp'
zone.cpp:100: warning: unused variable `int char_num'
zone.cpp:101: warning: unused variable `long unsigned int *lengths'
zone.cpp:102: warning: unused variable `char errbuf[200]'
zone.cpp:1453:1: warning: no newline at end of file
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql entity.cpp -o entity.o
entity.cpp: In method `void EntityList::MessageStatus (unsigned int,
unsigned int, unsigned int, const char *, ...)':
entity.cpp:1056: warning: comparison between signed and unsigned
integer expressions
entity.cpp: In method `void EntityList::SendZoneSpawnsBulk (Client *)':
entity.cpp:1398: warning: unused variable `int32 packetsize'
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql mob.cpp -o mob.o
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql client.cpp -o client.o
client.cpp: In method `sint32 Client::GenericFocus (short unsigned int,
short unsigned int)':
client.cpp:497: warning: comparison between signed and unsigned integer
expressions
client.cpp: In method `int16 Client::GetRawItemAC ()':
client.cpp:1410: warning: unused variable `const Item_Struct *TempItem'
client.cpp: In method `bool Client::QuestTroupe (const Seperator *)':
client.cpp:1865: warning: deprecated conversion from string constant to
`char *'
client.cpp:2154: warning: deprecated conversion from string constant to
`char *'
client.cpp: In method `bool Client::NormalGM (const Seperator *)':
client.cpp:3790: warning: comparison between signed and unsigned
integer expressions
client.cpp: In method `bool Client::NormalUser (const Seperator *)':
client.cpp:4247: warning: deprecated conversion from string constant to
`char *'
client.cpp: In method `bool Client::HasItemInInventory (short unsigned
int)':
client.cpp:5639: warning: unused variable `int16 i'
client.cpp: In method `uint32 Client::HasItemInInventory (short
unsigned int, short unsigned int)':
client.cpp:5657: warning: initialization of negative value `-1' to
`uint32'
client.cpp:5657: warning: argument of negative value `-1' to `unsigned
int'
client.cpp:5656: warning: unused variable `int16 slotid'
client.cpp: In method `void Client::SummonItem (short unsigned int,
unsigned char)':
client.cpp:5765: warning: assignment of negative value `-1' to `uint32'
client.cpp:5765: warning: argument of negative value `-1' to `unsigned
int'
client.cpp: In method `uint32 Client::GetItemAt (short unsigned int)':
client.cpp:5919: warning: return of negative value `-1' to `uint32'
client.cpp:5919: warning: argument of negative value `-1' to `unsigned
int'
client.cpp: In method `bool Client::DecreaseCharges (short unsigned
int)':
client.cpp:6316: warning: unused variable `int8 newcharges'
client.cpp:6317: warning: unused variable `int16 itemid'
client.cpp: In method `void Client::Commandlog (const Seperator *)':
client.cpp:7103: warning: assignment to non-pointer type `char' from
NULL
client.cpp:7103: warning: argument to non-pointer type `char' from NULL
client.cpp:7109: warning: deprecated conversion from string constant to
`char *'
client.cpp:7111: warning: deprecated conversion from string constant to
`char *'
client.cpp: In method `void Client::LogMerchant (Client *, Mob *,
Merchant_Purchase_Struct *, const Item_Struct *, bool)':
client.cpp:7137: warning: deprecated conversion from string constant to
`char *'
client.cpp:7158: warning: deprecated conversion from string constant to
`char *'
client.cpp: In method `void Client::LogLoot (Client *, Corpse *, const
Item_Struct *)':
client.cpp:7177: warning: deprecated conversion from string constant to
`char *'
client.cpp:7186: warning: deprecated conversion from string constant to
`char *'
client.cpp:7188: warning: deprecated conversion from string constant to
`char *'
client.cpp: In method `bool Client::BindWound (Mob *, bool, bool)':
client.cpp:7275: warning: assignment to `int' from `double'
client.cpp:7275: warning: argument to `int' from `double'
client.cpp: In method `bool Client::MoveItem (MoveItem_Struct *)':
client.cpp:7321: warning: comparison between signed and unsigned
integer expressions
client.cpp:7326: warning: comparison between signed and unsigned
integer expressions
client.cpp:7363: warning: initialization of negative value `-1' to
`unsigned int'
client.cpp:7363: warning: argument of negative value `-1' to `unsigned
int'
client.cpp:7364: warning: comparison between signed and unsigned
integer expressions
client.cpp:7368: warning: initialization of negative value `-1' to
`unsigned int'
client.cpp:7368: warning: argument of negative value `-1' to `unsigned
int'
client.cpp:7369: warning: comparison between signed and unsigned
integer expressions
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql client_process.cpp -o client_process.o
client_process.cpp: In method `int Client::HandlePacket (const APPLAYER
*)':
client_process.cpp:710: warning: comparison is always true due to
limited range of data type
client_process.cpp:903: warning: comparison between signed and unsigned
integer expressions
client_process.cpp:938: warning: assignment to `int' from `double'
client_process.cpp:938: warning: argument to `int' from `double'
client_process.cpp:943: warning: assignment to `int' from `double'
client_process.cpp:943: warning: argument to `int' from `double'
client_process.cpp:991: warning: assignment to `int' from `double'
client_process.cpp:991: warning: argument to `int' from `double'
client_process.cpp:996: warning: assignment to `int' from `double'
client_process.cpp:996: warning: argument to `int' from `double'
client_process.cpp:1020: warning: assignment to `int' from `double'
client_process.cpp:1020: warning: argument to `int' from `double'
client_process.cpp:1025: warning: assignment to `int' from `double'
client_process.cpp:1025: warning: argument to `int' from `double'
client_process.cpp:1051: warning: assignment to `int' from `double'
client_process.cpp:1051: warning: argument to `int' from `double'
client_process.cpp:1056: warning: assignment to `int' from `double'
client_process.cpp:1056: warning: argument to `int' from `double'
client_process.cpp:2194: warning: unused variable `const Item_Struct
*Rangeweapon'
client_process.cpp:2253: warning: unused variable `const Item_Struct
*Rangeweapon'
client_process.cpp:2254: warning: unused variable `const Item_Struct
*Ammo'
client_process.cpp:2639: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:2639: warning: argument to non-pointer type `char'
from NULL
client_process.cpp:2663: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:2663: warning: argument to non-pointer type `char'
from NULL
client_process.cpp:2664: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:2664: warning: argument to non-pointer type `char'
from NULL
client_process.cpp:2744: warning: deprecated conversion from string
constant to `char *'
client_process.cpp:2767: warning: deprecated conversion from string
constant to `char *'
client_process.cpp:2770: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:2770: warning: argument to non-pointer type `char'
from NULL
client_process.cpp:2771: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:2771: warning: argument to non-pointer type `char'
from NULL
client_process.cpp:3090: warning: cast from `const char *' to `char *'
discards qualifiers from pointer target type
client_process.cpp:3742: warning: unused variable `int16 slot'
client_process.cpp:3772: warning: unused variable `const Item_Struct
*item'
client_process.cpp:3817: warning: unused variable `const Item_Struct
*item'
client_process.cpp:3767: warning: unused variable `Item_Struct *item2'
client_process.cpp:4500: warning: unused variable `int32 slotid'
client_process.cpp:4501: warning: unused variable `int32 realslotid'
client_process.cpp:4880: warning: comparison between signed and
unsigned integer expressions
client_process.cpp:3319: warning: `int32 temp' might be used
uninitialized in this function
client_process.cpp: In method `bool Client::FinishConnState2
(DBAsyncWork *)':
client_process.cpp:5243: warning: comparison between signed and
unsigned integer expressions
client_process.cpp:5348: `DebugBreak' undeclared (first use this
function)
client_process.cpp:5348: (Each undeclared identifier is reported only
once for each function it appears in.)
client_process.cpp: In method `void Client::CompleteConnect ()':
client_process.cpp:5546: warning: assignment to non-pointer type `char'
from NULL
client_process.cpp:5546: warning: argument to non-pointer type `char'
from NULL
client_process.cpp: In method `void Client::BulkSendInventoryItems ()':
client_process.cpp:5909: warning: unused variable `const Item_Struct
*item'
client_process.cpp: In method `void Client::BulkSendMerchantInventory
(int, short unsigned int)':
client_process.cpp:6051: warning: comparison between signed and
unsigned integer expressions
client_process.cpp:6051: warning: comparison between signed and
unsigned integer expressions
client_process.cpp: In method `void Client::OPMemorizeSpell (const
APPLAYER *)':
client_process.cpp:6210: warning: comparison between signed and
unsigned integer expressions
make: *** [client_process.o] Error 1
[eqemu@google zone]$
Reply With Quote
  #2  
Old 07-19-2003, 04:43 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

client_process.cpp:5348: `DebugBreak' undeclared (first use this
function)

comment out line 5348 of client_process.cpp, one of the windows guys left that there
Reply With Quote
  #3  
Old 07-19-2003, 05:02 PM
OperationIvy
Fire Beetle
 
Join Date: Jul 2003
Posts: 3
Default

got another error on parser.cpp
Code:
[eqemu@google zone]$ make
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=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql parser.cpp -o parser.o
parser.cpp: In function `int GetArgs (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)':
parser.cpp:57: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:71: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In function `int calc (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)':
parser.cpp:94: request for member `base' in `iterator', which is of
non-aggregate type `char *'
parser.cpp:98: request for member `base' in `iterator', which is of
non-aggregate type `char *'
parser.cpp:102: request for member `base' in `iterator', which is of
non-aggregate type `char *'
parser.cpp:106: request for member `base' in `iterator', which is of
non-aggregate type `char *'
parser.cpp:114: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In function `char *itoa (int)':
parser.cpp:136: new declaration `char *itoa (int)'
../common/MiscFunctions.h:59: ambiguates old declaration `const char
*itoa (int)'
parser.cpp: In function `char *itoa (int)':
parser.cpp:136: cannot convert `const char *' to `char *' in return
parser.cpp: In function `string strlwr (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)':
parser.cpp:137: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp: In function `string gettok (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >, int)':
parser.cpp:152: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::MakeVars (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, unsigned
int)':
parser.cpp:169: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:172: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::MakeParms (const char *, unsigned
int)':
parser.cpp:237: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:240: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp: In method `int Parser::GetItemCount (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, unsigned
int)':
parser.cpp:255: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::SendCommands (const char *,
unsigned int, Mob *, Mob *)':
parser.cpp:415: warning: comparison between signed and unsigned integer
expressions
parser.cpp: In method `void Parser::ExCommands (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >, int, unsigned int, Mob *, Mob *)':
parser.cpp:542: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:570: warning: unused variable `int8 guildwarset'
parser.cpp:738: warning: cast to pointer from integer of different size
parser.cpp:746: warning: cast to pointer from integer of different size
parser.cpp:772: warning: NULL used in arithmetic
parser.cpp: In method `int Parser::LoadScript (int, const char *)':
parser.cpp:925: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:937: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::Replace (string &,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, int)':
parser.cpp:961: warning: comparison between signed and unsigned integer
expressions
parser.cpp: In method `string Parser::GetVar (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, unsigned
int)':
parser.cpp:986: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::DelChatAndItemVars (unsigned int)':
parser.cpp:1009: warning: unused variable `MyListItem<vars> *Ptr'
parser.cpp: In method `void Parser::AddVar (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >)':
parser.cpp:1037: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `void Parser::HandleVars (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >, string &, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, unsigned
int, Mob *)':
parser.cpp:1070: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1075: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1093: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1109: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1115: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1122: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1123: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1125: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1128: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1131: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1140: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1159: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1180: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1191: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1194: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1201: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1204: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1207: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp: In method `void Parser::ParseVars (string &, unsigned int,
Mob *)':
parser.cpp:1220: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1220: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1225: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1529:1: warning: no newline at end of file
parser.cpp:1245: warning: comparison between signed and unsigned
integer expressions
parser.cpp:1264: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1274: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1275: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1276: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1277: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In function `char *fixstring (char *)':
parser.cpp:1301: warning: comparison between signed and unsigned
integer expressions
parser.cpp: In function `int DoCompare (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)':
parser.cpp:1317: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1317: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1321: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1321: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1325: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1325: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1329: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1329: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp: In method `int Parser::ParseIf (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)':
parser.cpp:1365: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1366: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1375: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1376: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1386: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1392: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1393: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1394: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1400: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp: In method `int Parser::ParseCommands (basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >, int,
int, unsigned int, Mob *, Mob *)':
parser.cpp:1443: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1459: no matching function for call to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::clear
()'
parser.cpp:1460: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1475: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1513: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
parser.cpp:1513: warning: cast from `const char *' to `char *' discards
qualifiers from pointer target type
make: *** [parser.o] Error 1
[eqemu@google zone]$
Reply With Quote
  #4  
Old 07-19-2003, 06:06 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

your libstdc++ (and friends) are too old
Reply With Quote
  #5  
Old 07-20-2003, 06:50 AM
krusher
Sarnak
 
Join Date: Jan 2003
Location: Grand Rapids, MI
Posts: 90
Default

I was informed that ONLY gcc 3.2.x was supported for linux compiles.
Reply With Quote
  #6  
Old 07-20-2003, 09:28 AM
mutombo
Sarnak
 
Join Date: Mar 2003
Posts: 30
Default

damn, im using debian sid and its build on gcc-3.3, i can install gcc-3.2 but there still the shared libstdc++ and its the 3.3 version. i cant find a way to change completely to 3.2.
Reply With Quote
  #7  
Old 07-20-2003, 10:04 AM
OperationIvy
Fire Beetle
 
Join Date: Jul 2003
Posts: 3
Default

Using gcc 3.2.2 now and still getting the same sort of errors on parser.cpp
Code:
[eqemu@localhost zone]$ make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Ws
trict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggd
b -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DDEBUG=5 -DC
ATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/include/mysql parse
r.cpp -o parser.o
parser.cpp: In function `char* itoa(int)':
parser.cpp:136: new declaration `char* itoa(int)'
../common/MiscFunctions.h:59: ambiguates old declaration `const char* itoa(int)
   '
parser.cpp: In function `char* itoa(int)':
parser.cpp:136: invalid conversion from `const char*' to `char*'
parser.cpp: In function `std::string strlwr(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >)':
parser.cpp:137: warning: cast from `const char*' to `char*' discards qualifiers
   from pointer target type
parser.cpp: In member function `void Parser::MakeParms(const char*, unsigned
   int)':
parser.cpp:237: warning: cast from `const char*' to `char*' discards qualifiers
   from pointer target type
parser.cpp:240: warning: cast from `const char*' to `char*' discards qualifiers
   from pointer target type
parser.cpp: In member function `void Parser::SendCommands(const char*, unsigned
   int, Mob*, Mob*)':
parser.cpp:415: warning: comparison between signed and unsigned integer
   expressions
parser.cpp: In member function `void Parser::ExCommands(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, int, unsigned int, Mob*,
   Mob*)':
parser.cpp:570: warning: unused variable `int8 guildwarset'
parser.cpp:738: warning: cast to pointer from integer of different size
parser.cpp:746: warning: cast to pointer from integer of different size
parser.cpp:772: warning: NULL used in arithmetic
parser.cpp: In member function `void Parser::Replace(std::string&,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
   int)':
parser.cpp:961: warning: comparison between signed and unsigned integer
   expressions
parser.cpp: In member function `void Parser::DelChatAndItemVars(unsigned int)':
parser.cpp:1009: warning: unused variable `MyListItem<vars>*Ptr'
parser.cpp: In member function `void Parser::HandleVars(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::string&,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
   unsigned int, Mob*)':
parser.cpp:1075: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1093: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1109: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1115: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1122: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1123: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1125: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1128: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1131: warning: comparison between signed and unsigned integer
   expressions
parser.cpp:1140: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1159: warning: comparison between signed and unsigned integer
   expressions
parser.cpp:1180: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1191: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1194: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1201: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1204: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1207: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp: In member function `void Parser::ParseVars(std::string&, unsigned
   int, Mob*)':
parser.cpp:1220: warning: comparison between signed and unsigned integer
   expressions
parser.cpp:1220: warning: comparison between signed and unsigned integer
   expressions
parser.cpp:1225: warning: comparison between signed and unsigned integer
   expressions
parser.cpp:1245: warning: comparison between signed and unsigned integer
   expressions
parser.cpp: In function `char* fixstring(char*)':
parser.cpp:1301: warning: comparison between signed and unsigned integer
   expressions
parser.cpp: In function `int DoCompare(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >)':
parser.cpp:1317: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1317: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1321: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1321: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1325: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1325: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1329: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1329: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp: In member function `int
   Parser::ParseCommands(std::basic_string<char, std::char_traits<char>,
   std::allocator<char> >, int, int, unsigned int, Mob*, Mob*)':
parser.cpp:1460: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1475: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1513: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1513: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
parser.cpp:1529:2: warning: no newline at end of file
make: *** [parser.o] Error 1
[eqemu@localhost zone]$ gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[eqemu@localhost zone]$
Reply With Quote
  #8  
Old 07-20-2003, 10:25 AM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Check out my linux changes:

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

Regards,

krich
Reply With Quote
  #9  
Old 07-20-2003, 11:05 AM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

parser.cpp:136: new declaration `char* itoa(int)'
../common/MiscFunctions.h:59: ambiguates old declaration `const char* itoa(int)

Comment out line 136 too, tought i'd mentioned that, but guess i assumed you saw it elsewhere
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 01:03 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