Jump to content

/usr/src/mainline/Srcs/Server/game/src ?


Recommended Posts

Hello, I tried to compile mainline game from kraizy.zip

 

All compilation output:


root@localhost:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
In file included from char.cpp:4:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile char_item.cpp
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7221: warning: this decimal constant is unsigned only in ISO C90
In file included from char_item.cpp:44:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile PetSystem.cpp
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
In file included from PetSystem.cpp:9:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
compile cmd.cpp
compile cmd_emotion.cpp
compile cmd_general.cpp
compile cmd_gm.cpp
compile cmd_oxevent.cpp
compile config.cpp
compile constants.cpp
compile crc32.cpp
compile cube.cpp
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile db.cpp
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
constants.cpp:291: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
char_item.cpp:5087: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5159: warning: unused variable 'wDestCell'
char_item.cpp:5160: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6160: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6224: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6236: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7422: warning: unused variable 'itemType'
char_item.cpp:7423: warning: unused variable 'itemSubType'
compile desc.cpp
compile desc_client.cpp
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
compile desc_manager.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
compile desc_p2p.cpp
In file included from desc_manager.cpp:15:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
compile dev_log.cpp
compile dungeon.cpp
compile empire_text_convert.cpp
cube.cpp: In function 'bool Cube_make(CHARACTER*)':
cube.cpp:544: warning: comparison between signed and unsigned integer expressions
cube.cpp: In function 'void Cube_MakeCubeInformationText()':
cube.cpp:716: warning: unused variable 'npcVNUM'
cube.cpp: In function 'bool Cube_InformationInitialize()':
cube.cpp:783: warning: comparison between signed and unsigned integer expressions
compile entity.cpp
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
compile entity_view.cpp
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:435: warning: NULL used in arithmetic
config.cpp:459: warning: NULL used in arithmetic
config.cpp:483: warning: NULL used in arithmetic
config.cpp:505: warning: unused variable 'line'
compile event.cpp
compile event_queue.cpp
compile exchange.cpp
compile file_loader.cpp
desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
compile fishing.cpp
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6271: warning: 'pBuff' may be used uninitialized in this function
compile gm.cpp
compile guild.cpp
compile guild_manager.cpp
compile guild_war.cpp
compile horse_rider.cpp
compile horsename_manager.cpp
compile input.cpp
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
compile input_auth.cpp
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
compile input_db.cpp
compile input_login.cpp
compile input_main.cpp
In file included from input_db.cpp:13:
shop_manager.h:40:7: warning: no newline at end of file
compile input_p2p.cpp
input_db.cpp:2722:2: warning: no newline at end of file
compile input_teen.cpp
compile input_udp.cpp
compile ip_ban.cpp
In file included from input_main.cpp:16:
shop_manager.h:40:7: warning: no newline at end of file
input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
input_auth.cpp:467: warning: unused variable 'last'
compile item.cpp
compile item_addon.cpp
compile item_attribute.cpp
In file included from item.cpp:22:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from item.cpp:23:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
item.cpp:2084:2: warning: no newline at end of file
compile item_manager.cpp
In file included from item_manager.cpp:21:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile item_manager_idrange.cpp
compile locale.cpp
compile locale_service.cpp
compile log.cpp
compile login_data.cpp
compile lzo_manager.cpp
compile marriage.cpp
compile matrix_card.cpp
In file included from item.cpp:22:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
item.h: In constructor 'CItem::CItem(DWORD)':
item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
item.cpp:25: warning:   when initialized here
item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
item.cpp:1725: warning: unused variable 'vnum'
item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
item.cpp:1758: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
item.cpp:2014: warning: comparison between signed and unsigned integer expressions
item.cpp:2016: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
item.cpp:2038: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GetDuration()':
item.cpp:2069: warning: array subscript has type 'char'
compile messenger_manager.cpp
compile mining.cpp
compile mob_manager.cpp
compile monarch.cpp
item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
compile motion.cpp
compile over9refine.cpp
compile p2p.cpp
compile packet_info.cpp
compile party.cpp
compile pcbang.cpp
compile passpod.cpp
monarch.cpp:276:2: warning: no newline at end of file
compile polymorph.cpp
compile priv_manager.cpp
compile pvp.cpp
compile questevent.cpp
compile questlua.cpp
compile questlua_affect.cpp
compile questlua_arena.cpp
compile questlua_ba.cpp
compile questlua_building.cpp
compile questlua_danceevent.cpp
compile questlua_dungeon.cpp
compile questlua_forked.cpp
compile questlua_game.cpp
compile questlua_global.cpp
compile questlua_guild.cpp
compile questlua_horse.cpp
compile questlua_pet.cpp
compile questlua_item.cpp
compile questlua_marriage.cpp
In file included from questlua_pet.cpp:11:
PetSystem.h:163:31: warning: no newline at end of file
questlua_pet.cpp:157:2: warning: no newline at end of file
compile questlua_mgmt.cpp
compile questlua_monarch.cpp
questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
compile questlua_npc.cpp
compile questlua_oxevent.cpp
compile questlua_party.cpp
compile questlua_pc.cpp
compile questlua_quest.cpp
In file included from questlua_npc.cpp:9:
shop_manager.h:40:7: warning: no newline at end of file
compile questlua_target.cpp
compile questmanager.cpp
compile questnpc.cpp
compile questpc.cpp
compile refine.cpp
compile regen.cpp
compile safebox.cpp
compile sectree.cpp
questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
questlua_npc.cpp:293: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
questlua_npc.cpp:309: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
questlua_npc.cpp:324: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
questlua_npc.cpp:340: warning: unused variable 'q'
compile sectree_manager.cpp
compile sequence.cpp
compile shop.cpp
compile skill.cpp
compile start_position.cpp
questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
questnpc.cpp:500: warning: unused variable 'pPC'
compile target.cpp
compile text_file_loader.cpp
compile trigger.cpp
compile utils.cpp
compile vector.cpp
compile war_map.cpp
In file included from trigger.cpp:8:
shop_manager.h:40:7: warning: no newline at end of file
utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
utils.cpp:243: warning: NULL used in arithmetic
utils.cpp:255: warning: NULL used in arithmetic
utils.cpp:269: warning: NULL used in arithmetic
compile wedding.cpp
compile xmas_event.cpp
g++: directory": No such file or directory
compile panama.cpp
<command-line>: warning: missing terminating " character
version.cpp:10: error: missing terminating " character
version.cpp: In function 'void WriteVersion()':
version.cpp:10: error: expected primary-expression before ')' token
gmake: *** [OBJDIR/version.o] Error 1
gmake: *** Waiting for unfinished jobs....
shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
shop.cpp:576: warning: comparison between signed and unsigned integer expressions
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

version.cpp: In function 'void WriteVersion()':
version.cpp:10: error: expected primary-expression before ')' token

Replace your version.cpp like that ;

void WriteVersion()
{
#ifndef __WIN32__
	FILE* fp = fopen("ver.txt", "w");

	if (fp)
	{
		fprintf(fp, "Game Server Version : VERSION_NUMBER n");
		fclose(fp);
	}
#endif
}

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.