[wpdev-commits] Linux Crash & Compile Warnings
Brought to you by:
rip,
thiagocorrea
|
From: Richard M. (Dreoth) <Dr...@ra...> - 2003-12-22 12:21:50
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm not sure sending to this address will work, but I hope it does.
System Info=20
Gentoo Linux 2.6 kernel
Latest gcc 3.3
###########################################################
=46irst off, there is a problem after it compiles, it crashes on startup af=
ter=20
Remote Admin runs.
Here is the backtrace:
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 16384 (LWP 24132)]
0x081c9a4e in checkauto () at srvparams.h:372
372 {
(gdb) bt
#0 0x081c9a4e in checkauto () at srvparams.h:372
#1 0x081e076b in main (argc=3D1, argv=3D0x8288668) at wolfpack.cpp:580
###########################################################
Other than that, there is a bunch of compile warnings.. Just warnings, I'll=
=20
see if I can clean some up myself (I'm still learning, heh)
###########################################################
ai.cpp: In member function `virtual void Action_Wander::execute()':
ai.cpp:499: warning: passing `float' for argument 1 of `void=20
cNPC::setAICheckTime(unsigned int)'
###########################################################
This one occurs a lot through compiles now.
In file included from /usr/include/python2.3/Python.h:8,
from python/engine.h:49,
from python/utilities.h:34,
from ai.cpp:31:
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefin=
ed
In file included from /usr/include/string.h:26,
from /usr/qt/3/include/qcstring.h:46,
from /usr/qt/3/include/qstring.h:42,
from python/engine.h:40,
from python/utilities.h:34,
from ai.cpp:31:
###########################################################
ai_humans.cpp: In member function `virtual void=20
Human_Guard_Called_Fight::execute()':
ai_humans.cpp:255: warning: passing negative value `-1' for argument 2 of `
virtual void cNPC::talk(const QString&, short unsigned int, unsigned cha=
r,=20
bool, cUOSocket*)'
ai_humans.cpp:256: warning: passing negative value `-1' for argument 2 of `
virtual void cNPC::talk(const QString&, short unsigned int, unsigned cha=
r,=20
bool, cUOSocket*)'
ai_humans.cpp: In member function `virtual void Human_Guard_Fight::execute(=
)':
ai_humans.cpp:410: warning: passing negative value `-1' for argument 2 of `
virtual void cNPC::talk(const QString&, short unsigned int, unsigned cha=
r,=20
bool, cUOSocket*)'
ai_humans.cpp:411: warning: passing negative value `-1' for argument 2 of `
virtual void cNPC::talk(const QString&, short unsigned int, unsigned cha=
r,=20
bool, cUOSocket*)'
###########################################################
basechar.cpp: In member function `virtual bool cBaseChar::checkSkill(short=
=20
unsigned int, long int, long int, bool)':
basechar.cpp:932: warning: assignment to `SI32' from `double'
basechar.cpp:932: warning: argument to `long int' from `double'
###########################################################
boats.cpp: In member function `bool cBoat::leave(cUOSocket*, cItem*)':
boats.cpp:963: warning: comparison is always false due to limited range of=
=20
data=20
type
boats.cpp:969: warning: comparison is always true due to limited range of d=
ata=20
type
###########################################################
combat.cpp: In function `void Combat::checkandhit(cBaseChar*)':
combat.cpp:293: warning: passing negative value `-1' for argument 1 of `voi=
d=20
cUOTxAttackResponse::setSerial(unsigned int)'
combat.cpp: In function `void Combat::hit(cBaseChar*, cBaseChar*, bool)':
combat.cpp:765: warning: passing `double' for argument 2 of `unsigned int=20
cBaseChar::damage(eDamageType, unsigned int, cUObject*)'
combat.cpp:777: warning: passing `double' for argument 1 of `void=20
cUOTxDamage::setDamage(unsigned char)'
combat.cpp: In function `void Combat::combat(cBaseChar*)':
combat.cpp:852: warning: passing negative value `-1' for argument 1 of `voi=
d=20
cUOTxAttackResponse::setSerial(unsigned int)'
###########################################################
In file included from /usr/include/python2.3/Python.h:8,
from python/engine.h:49,
from pythonscript.h:35,
from scriptmanager.h:41,
from commands.cpp:38:
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefin=
ed
In file included=20
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/i686-pc-linux-=
gnu/bits/os_defines.h:39,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-=
v3/i686-pc-linux-gnu/bits/c++config.h:35,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-=
v3/string:45,
from structs.h:39,
from globals.h:37,
from commands.cpp:32:
/usr/include/features.h:131:1: warning: this is the location of the previou=
s=20
definition
###########################################################
coord.cpp: In member function `unsigned char Coord_cl::direction(const=20
Coord_cl&) const':
coord.cpp:164: warning: assignment of negative value `-1' to `unsigned char'
coord.cpp:164: warning: argument of negative value `-1' to `unsigned char'
coord.cpp: In member function `bool Coord_cl::lineOfSight(const Coord_cl&,=
=20
bool)':
coord.cpp:238: warning: passing `double' for argument 2 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
coord.cpp:243: warning: passing `double' for argument 2 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
coord.cpp:244: warning: passing `double' for argument 2 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
coord.cpp:263: warning: passing `double' for argument 1 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
coord.cpp:268: warning: passing `double' for argument 1 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
coord.cpp:269: warning: passing `double' for argument 1 of `
Coord_cl::Coord_cl(short unsigned int, short unsigned int, signed char,=
=20
unsigned char, unsigned char)'
###########################################################
customtags.cpp: In member function `int cVariant::toInt(bool*) const':
customtags.cpp:391: warning: return to `int' from `const double'
customtags.cpp:391: warning: argument to `int' from `const double'
customtags.cpp: In member function `cBaseChar* cVariant::toChar() const':
customtags.cpp:470: warning: passing `const double' for argument 1 of `
cBaseChar* cWorld::findChar(int) const'
customtags.cpp:473: warning: passing `double' for argument 1 of `cBaseChar*=
=20
cWorld::findChar(int) const'
customtags.cpp: In member function `cItem* cVariant::toItem() const':
customtags.cpp:494: warning: passing `const double' for argument 1 of `cIte=
m*=20
cWorld::findItem(int) const'
customtags.cpp:497: warning: passing `double' for argument 1 of `cItem*=20
cWorld::findItem(int) const'
###########################################################
maps.cpp: In member function `signed char Maps::mapAverageElevation(const=20
Coord_cl&) const':
maps.cpp:248: warning: comparison is always true due to limited range of da=
ta=20
type
maps.cpp:258: warning: comparison is always false due to limited range of d=
ata=20
type
maps.cpp:268: warning: comparison is always false due to limited range of d=
ata=20
type
maps.cpp:268: warning: comparison is always false due to limited range of d=
ata=20
type
maps.cpp: In member function `signed char Maps::height(const Coord_cl&)':
maps.cpp:338: warning: comparison is always true due to limited range of da=
ta=20
type
maps.cpp:342: warning: comparison is always true due to limited range of da=
ta=20
type
###########################################################
npc.cpp: In constructor `cNPC::cNPC()':
npc.cpp:75: warning: assignment to `UINT32' from `float'
npc.cpp:75: warning: argument to `unsigned int' from `float'
npc.cpp: In member function `void cNPC::setNextMoveTime()':
npc.cpp:233: warning: passing `double' for argument 1 of `void=20
cNPC::setNextMoveTime(unsigned int)'
npc.cpp:235: warning: passing `double' for argument 1 of `void=20
cNPC::setNextMoveTime(unsigned int)'
###########################################################
resources.cpp: In member function `virtual bool=20
cFindResource::responsed(cUOSocket*, cUORxTarget*)':
resources.cpp:1276: warning: comparison is always false due to limited rang=
e=20
of data type
resources.cpp: In member function `virtual bool=20
cConvertResource::responsed(cUOSocket*, cUORxTarget*)':
resources.cpp:1370: warning: comparison is always false due to limited rang=
e=20
of data type
###########################################################
skills.cpp: In static member function `static void=20
cSkills::RandomSteal(cUOSocket*, int)':
skills.cpp:464: warning: passing negative value `-1' for argument 2 of=20
`virtual=20
void cUObject::talk(const QString&, short unsigned int, unsigned char,=20
bool,=20
cUOSocket*)'
###########################################################
targetrequests.cpp: In member function `virtual bool=20
cAddItemTarget::responsed(cUOSocket*, cUORxTarget*)':
targetrequests.cpp:60: warning: comparison is always false due to limited=20
range of data type
targetrequests.cpp: In member function `virtual bool=20
cAddNpcTarget::responsed(cUOSocket*, cUORxTarget*)':
targetrequests.cpp:114: warning: comparison is always false due to limited=
=20
range of data type
targetrequests.cpp: In member function `virtual bool=20
cBuildMultiTarget::responsed(cUOSocket*, cUORxTarget*)':
targetrequests.cpp:162: warning: comparison is always false due to limited=
=20
range of data type
targetrequests.cpp: In member function `virtual bool=20
cSkStealing::responsed(cUOSocket*, cUORxTarget*)':
targetrequests.cpp:262: warning: passing negative value `-1' for argument 2=
of=20
`virtual void cUObject::talk(const QString&, short unsigned int, unsigne=
d=20
char, bool, cUOSocket*)'
###########################################################
Timing.cpp: In function `void checkNPC(cNPC*, unsigned int)':
Timing.cpp:329: warning: passing `float' for argument 1 of `void=20
cNPC::setAICheckTime(unsigned int)'
###########################################################
walking.cpp: In member function `void cMovement::GetBlockingMap(Coord_cl,=20
unitile_st*, int&)':
walking.cpp:801: warning: comparison is always true due to limited range of=
=20
data type
walking.cpp: In member function `void cMovement::randomNpcWalk(cNPC*, unsig=
ned=20
char, unsigned char)':
walking.cpp:1113: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1113: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1113: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1113: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1114: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1122: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1122: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp: In member function `bool cMovement::canLandMonsterMoveHere(con=
st=20
Coord_cl&) const':
walking.cpp:1515: warning: comparison is always false due to limited range =
of=20
data type
walking.cpp:1519: warning: comparison is always true due to limited range o=
f=20
data type
###########################################################
wpdefmanager.cpp: In member function `QString cElement::getValue() const':
wpdefmanager.cpp:676: warning: passing `float' for argument passing 1 of `i=
nt=20
RandomNum(int, int)'
wpdefmanager.cpp:676: warning: argument to `int' from `float'
wpdefmanager.cpp:676: warning: passing `float' for argument passing 2 of `i=
nt=20
RandomNum(int, int)'
wpdefmanager.cpp:676: warning: argument to `int' from `float'
wpdefmanager.cpp:703: warning: passing `float' for argument passing 1 of `i=
nt=20
RandomNum(int, int)'
wpdefmanager.cpp:703: warning: argument to `int' from `float'
wpdefmanager.cpp:703: warning: passing `float' for argument passing 2 of `i=
nt=20
RandomNum(int, int)'
wpdefmanager.cpp:703: warning: argument to `int' from `float'
###########################################################
network/uotxpackets.cpp: In member function `void=20
cUOTxAddContainerItem::fromItem(cItem*)':
network/uotxpackets.cpp:395: warning: passing negative value `-1' for argum=
ent=20
1 of `void cUOTxAddContainerItem::setContainer(unsigned int)'
network/uotxpackets.cpp:623:2: warning: no newline at end of file
###########################################################
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/5uHMOeYLEucUOb4RAoRxAJ9MXPvXkQx2JWzNF0OBQ0lquySqfwCgoe+v
/awlH9AYWdwxcphYVJ06kpM=3D
=3DIrD7
=2D----END PGP SIGNATURE-----
|