Linux compile error

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Linux compile error

Post by John Adams » Fri Aug 10, 2012 10:45 pm

Latest SVN -

Code: Select all

$ make
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include zoneserver.cpp -o zoneserver.o
zoneserver.cpp:3610: warning: this decimal constant is unsigned only in ISO C90
zoneserver.cpp: In constructor âZoneServer::ZoneServer(const char*)â:
zoneserver.cpp:173: error: âClientLoopâ was not declared in this scope
zoneserver.cpp: In member function âvoid ZoneServer::RemoveClient(Client*)â:
zoneserver.cpp:2040: warning: suggest parentheses around assignment used as truth value
zoneserver.cpp:2053: warning: unused variable âleaderâ
make: *** [zoneserver.o] Error 1
Don't know why this is failing. Code looks similar ot the other loops. Apparently happened in Rev 1650.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Linux compile error

Post by John Adams » Sat Aug 11, 2012 4:45 pm

Found it.

zoneserver.h - simple typo

Code: Select all

#ifdef WIN32
	void ZoneLoop(void *tmp);
	void SpawnLoop(void *tmp);
	void SendInitialSpawns(void *tmp);
	void CombatLoop(void *tmp);
	void ClientLoop(void* tmp);
#else
	void *ZoneLoop(void *tmp);
	void *SpawnLoop(void *tmp);
	void *SendInitialSpawns(void *tmp);
	void *CombatLoop(void *tmp);
	void *ClinetLoop(void *tmp);  <<==
#endif

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Linux compile error

Post by Jabantiz » Sat Aug 11, 2012 5:40 pm

Figures it is something simple I overlooked...

Locked

Who is online

Users browsing this forum: No registered users and 0 guests