Rev 853 Error compiling

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

Moderator: Team Members

Post Reply
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:

Rev 853 Error compiling

Post by John Adams » Fri Sep 11, 2009 11:59 am

I am trying to compile on a brand new Linux (Ubuntu) machine, pretty sure I got all the dependencies installed, but I am getting this compiler error in SpellProcess.cpp:

Code: Select all

In file included from zoneserver.h:33,
                 from client.h:26,
                 from SpellProcess.h:22,
                 from SpellProcess.cpp:20:
Player.h: In member function âint32 CharacterInstances::FindInstanceIDByZoneID(int32)â:
Player.h:193: warning: comparison between signed and unsigned integer expressions
Player.h: In member function âbool CharacterInstances::FindInstanceByInstanceID(int32, InstanceData*)â:
Player.h:207: warning: comparison between signed and unsigned integer expressions
SpellProcess.cpp: In member function âvoid SpellProcess::Process()â:
SpellProcess.cpp:135: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp: In member function âbool SpellProcess::DeleteCasterSpell(Spawn*, LuaSpell*)â:
SpellProcess.cpp:277: error: âlua_spellâ was not declared in this scope
SpellProcess.cpp: In member function âbool SpellProcess::ProcessSpell(LuaSpell*, bool)â:
SpellProcess.cpp:303: warning: comparison between signed and unsigned integer expressions
SpellProcess.cpp:318: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp: In member function âvoid SpellProcess::SendStartCast(LuaSpell*, Client*)â:
SpellProcess.cpp:337: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp: In member function âvoid SpellProcess::SendFinishedCast(LuaSpell*, Client*)â:
SpellProcess.cpp:355: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp: In member function âvoid SpellProcess::ProcessSpell(ZoneServer*, Spell*, Entity*, Spawn*, bool)â:
SpellProcess.cpp:583: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp:589: warning: cast from type âconst char*â to type âchar*â casts away constness
SpellProcess.cpp: In member function âbool SpellProcess::CastProcessedSpell(LuaSpell*)â:
SpellProcess.cpp:650: warning: cast from type âconst char*â to type âchar*â casts away constness
make: *** [SpellProcess.o] Error 1
Specifically:

Code: Select all

SpellProcess.cpp:277: error: âlua_spellâ was not declared in this scope

Any ideas?

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: Rev 853 Error compiling

Post by John Adams » Fri Sep 11, 2009 12:14 pm

This is also failing to compile on our Dev server, so I have eliminated the new server as a cause.

SCAT!!! ;)

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: Rev 853 Error compiling

Post by John Adams » Fri Sep 11, 2009 1:15 pm

Er, I think I am going to faint.

I just fixed this myself. Woot.

Line 277

Code: Select all

               spell->caster->RemoveMaintainedSpell(lua_spell->spell);

To:

Code: Select all

               spell->caster->RemoveMaintainedSpell(spell->spell);

See, I ain't no dumbee!

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Rev 853 Error compiling

Post by Scatman » Fri Sep 11, 2009 3:06 pm

Go John, go John, it's yo buuurttdaay!! *dances*

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest