Jump to content

Zed

Inactive Member
  • Posts

    21
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Zed

  1. New Error ;

    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 'bool CItem::MoveToAuction(TItemPos, CItem*)':
    item.cpp:1979: error: no matching function for call to 'CHARACTER::SetItem(WORD&, BYTE&)'
    char.h:1059: note: candidates are: void CHARACTER::SetItem(TItemPos, CItem*)
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2016: warning: comparison between signed and unsigned integer expressions
    item.cpp:2018: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2040: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2071: warning: array subscript has type 'char'
    compile mob_manager.cpp
    
    
  2. services.h ;

     

    #define __AUCTION__

     

    Errors ;

    
    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
    In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_battle.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.cpp:62:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7217: warning: this decimal constant is unsigned only in ISO C90
    char.cpp:7286:2: warning: no newline at end of file
    compile char_change_empire.cpp
    compile char_horse.cpp
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_item.cpp
    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
    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
    compile char_resist.cpp
    compile char_skill.cpp
    compile char_state.cpp
    char_resist.cpp:327:2: warning: no newline at end of file
    compile PetSystem.cpp
    compile cmd.cpp
    char.cpp: In member function 'void CHARACTER::Disconnect(const char*)':
    char.cpp:1328: warning: format '%d' expects type 'int', but argument 5 has type          'long long int'
    char.cpp:1328: warning: format '%d' expects type 'int', but argument 5 has type          'long long int'
    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
    compile cmd_emotion.cpp
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)         ':
    char.cpp:3091: warning: comparison between signed and unsigned integer expressio         ns
    compile cmd_general.cpp
    compile cmd_gm.cpp
    In file included from char_item.cpp:47:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHe         lper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned inte         ger expressions
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile cmd_oxevent.cpp
    compile config.cpp
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT         E, int) const':
    char_item.cpp:640: warning: comparison is always false due to limited range of d         ata type
    char_item.cpp:666: warning: comparison is always false due to limited range of d         ata type
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    char_item.cpp:2392: warning: format '%d' expects type 'int', but argument 6 has          type 'long int'
    char_item.cpp:2396: warning: format '%d' expects type 'int', but argument 6 has          type 'long int'
    char_item.cpp:2408: warning: format '%d' expects type 'int', but argument 5 has          type 'long int'
    char_item.cpp:2412: warning: format '%d' expects type 'int', but argument 5 has          type 'long int'
    char_item.cpp:2439: warning: format '%d' expects type 'int', but argument 6 has          type 'long int'
    char_item.cpp:2447: warning: format '%d' expects type 'int', but argument 5 has          type 'long int'
    char_item.cpp:5110: warning: comparison between signed and unsigned integer expr         essions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5182: warning: unused variable 'wDestCell'
    char_item.cpp:5183: warning: unused variable 'bDestInven'
    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 constants.cpp
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6187: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(C         Item*)':
    char_item.cpp:6251: warning: comparison between signed and unsigned integer expr         essions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromIte         m(CItem*)':
    char_item.cpp:6263: warning: comparison between signed and unsigned integer expr         essions
    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TIt         emPos&, const TItemPos&)':
    char_item.cpp:7449: warning: unused variable 'itemType'
    char_item.cpp:7450: warning: unused variable 'itemSubType'
    compile crc32.cpp
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    compile cube.cpp
    compile db.cpp
    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
    compile desc.cpp
    compile desc_client.cpp
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT         E, int) const':
    char_item.cpp:679: warning: control reaches end of non-void function
    compile desc_manager.cpp
    compile desc_p2p.cpp
    compile dev_log.cpp
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile dungeon.cpp
    compile empire_text_convert.cpp
    compile entity.cpp
    config.cpp: In function 'void config_init(const std::string&)':
    config.cpp:441: warning: NULL used in arithmetic
    config.cpp:465: warning: NULL used in arithmetic
    config.cpp:489: warning: NULL used in arithmetic
    config.cpp:511: warning: unused variable 'line'
    compile entity_view.cpp
    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 expression         s
    compile event.cpp
    compile event_queue.cpp
    compile exchange.cpp
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4029: warning: NULL used in arithmetic
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD         , bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer exp         ressions
    compile file_loader.cpp
    compile fishing.cpp
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE,          BYTE, BYTE)':
    char_item.cpp:6298: 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
    compile input_auth.cpp
    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
    cmd_gm.cpp: In function 'void do_drop_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4573: warning: 'endPos' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4451: warning: 'cell' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4071: warning: 'n' may be used uninitialized in this function
    compile input_login.cpp
    compile input_main.cpp
    compile input_p2p.cpp
    compile input_teen.cpp
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2735:2: warning: no newline at end of file
    compile input_udp.cpp
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    compile ip_ban.cpp
    compile item.cpp
    input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, con         st char*, char*)':
    input_auth.cpp:444: warning: unused variable 'last'
    compile item_addon.cpp
    compile item_attribute.cpp
    compile item_manager.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_idrange.cpp
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile locale.cpp
    compile locale_service.cpp
    compile log.cpp
    input_db.cpp: In member function 'void CInputDB::PlayerLoad(DESC*, const char*)'         :
    input_db.cpp:421: warning: format '%d' expects type 'int', but argument 5 has ty         pe 'long long int'
    input_db.cpp:421: warning: format '%d' expects type 'int', but argument 5 has ty         pe 'long long int'
    input_db.cpp: In member function 'void CInputDB::Boot(const char*)':
    input_db.cpp:800: error: no matching function for call to 'AuctionManager::Boot(         const char*&)'
    auction_manager.h:191: note: candidates are: void AuctionManager::Boot(const cha         r*&, WORD)
    compile login_data.cpp
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*         , size_t)':
    input_main.cpp:764: warning: unused variable 'len_global'
    input_main.cpp:770: warning: unused variable 'len_global'
    input_main.cpp:774: warning: unused variable 'len_global'
    input_main.cpp:778: warning: unused variable 'len_global'
    input_main.cpp:782: warning: unused variable 'len_global'
    input_main.cpp:790: warning: unused variable 'len_global'
    input_main.cpp:794: warning: unused variable 'len_global'
    input_main.cpp:798: warning: unused variable 'len_global'
    input_main.cpp:802: warning: unused variable 'len_global'
    input_main.cpp:808: warning: unused variable 'len_global'
    In file included from item.cpp:22:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHe         lper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned inte         ger 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 expressio         ns
    item.cpp: In member function 'bool CItem::MoveToAuction()':
    item.cpp:1977: error: 'm_bCell' was not declared in this scope
    item.cpp: In member function 'void CItem::CopyToRawData(TPlayerItem*)':
    item.cpp:1991: error: 'm_bCell' was not declared in this scope
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2014: warning: comparison between signed and unsigned integer expressio         ns
    item.cpp:2016: warning: comparison between signed and unsigned integer expressio         ns
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2038: warning: comparison between signed and unsigned integer expressio         ns
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2069: warning: array subscript has type 'char'
    compile lzo_manager.cpp
    item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)'         :
    item_manager.cpp:604: warning: comparison between signed and unsigned integer ex         pressions
    gmake: *** [OBJDIR/item.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [OBJDIR/input_db.o] Error 1
    locale_service.cpp: In function 'void __CheckPlayerSlot(const std::string&)':
    locale_service.cpp:1035: warning: format '%d' expects type 'int', but argument 2          has type 'long long int'
    root@host:/usr/src/mainline/Srcs/Server2/game/src #
    root@host:/usr/src/mainline/Srcs/Server2/game/src #
    
    
  3.  

    Change libsql İn Novaline.

    I already tried but gave no result

     

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402:11: warning: statement has no effect [-Wunused-value]
      test_data;
               ^
    ClientManagerBoot.cpp:201:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:601:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp:703:6: warning: unused variable 'testValue' [-Wunused-variable]
      int testValue =  m_vec_itemTable.size();
          ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile version.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                             ^
    CsvReader.cpp:72:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                                                                       ^
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                             ^
    CsvReader.cpp:90:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                                                                       ^
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    collect2: error: ld returned 1 exit status
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    
    

     

    if I do with this makefile:

     

    MAKE = gmake
    CC = g++48
    CXX = g++48
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
    BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    
    CFLAGS = -Wall -ffat-lto-objects -flto -fuse-linker-plugin -Ofast -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE -lstdc++ -Wl,-rpath,/usr/local/lib32/metin2 -std=c++11 
    
    CFLAGS += -mtune=i686 -mssse3
    
    # boost
    INCDIR += -I../../boost
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    ifeq ($(BSD_VERSION), 7)
    INCDIR += -I../../libmysql/7.x-5.1.35
    LIBDIR += -L../../libmysql/7.x-5.1.35
    else
    INCDIR += -I../../libmysql/5.x-5.1.35
    LIBDIR += -L../../libmysql/5.x-5.1.35
    endif
    
    LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
    		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
    		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
    		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
    		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
    		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET) $(TEST_TARGET)
    	@strip $(TEST_TARGET)
    
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    	@touch version.cpp
    
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    $(OBJDIR)/version.o: version.cpp
    	@$(CC) $(CFLAGS) -D__USER__="$(USER)" -D__HOSTNAME__="$(HOSTNAME)" -D__PWD__="$(PWD)" -D__P4_VERSION__="$(P4_VERSION)" -c $< -o $@
    	@echo compile $<
    
    $(OBJDIR):
    	@mkdir $(OBJDIR)
    
    clean:
    	@rm -f $(OBJS) $(BINDIR)/db_r*
    
    dep:
    	@touch Depend
    	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    sinclude Depend
    
    

     

    how could resolve this error without deleting anything?

     

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:460:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
       std::ostringstream query;
                          ^
    ClientManagerBoot.cpp: In member function 'void CClientManager::CheckItemTable()':
    ClientManagerBoot.cpp:700:21: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
      std::ostringstream query;
                         ^
    ClientManagerBoot.cpp:729:22: error: aggregate 'std::ostringstream query2' has incomplete type and cannot be defined
       std::ostringstream query2;
                          ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:1032:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
       std::ostringstream query;
                          ^
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    gmake: *** [.obj/ClientManagerBoot.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

     

    im doing this because understand that it is possible to edit several things with new added features, such as adding new bonus vs mobs...

     

    I Dont Know Sorry :/

  4. MAKE = gmake
    CC = g++48
    CXX = g++48
    
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    
    GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
    BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    
    
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 
    
    
    CFLAGS += -mtune=i686 -mcpu=i686
    
    
    # boost
    INCDIR += -I../../boost
    
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    
    ifeq ($(BSD_VERSION), 7)
    INCDIR += -I../../libmysql/7.x-5.1.35
    LIBDIR += -L../../libmysql/7.x-5.1.35
    else
    INCDIR += -I../../libmysql/5.x-5.1.35
    LIBDIR += -L../../libmysql/5.x-5.1.35
    endif
    
    
    LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    
    SRCS =  Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
            Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
            ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
            PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
            Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
            AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    
    default: $(TARGET) $(TEST_TARGET)
        @strip $(TEST_TARGET)
    
    
    
    
    $(TARGET): $(OBJS)
        @echo linking ...
        @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
        @touch version.cpp
    
    
    $(OBJDIR)/%.o: %.cpp
        @echo compile $<
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    
    $(OBJDIR)/version.o: version.cpp
        @$(CC) $(CFLAGS) -D__USER__="$(USER)" -D__HOSTNAME__="$(HOSTNAME)" -D__PWD__="$(PWD)" -D__P4_VERSION__="$(P4_VERSION)" -c $< -o $@
        @echo compile $<
    
    
    $(OBJDIR):
        @mkdir $(OBJDIR)
    
    
    clean:
        @rm -f $(OBJS) $(BINDIR)/db_r*
    
    
    dep:
        @touch Depend
        makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    
    sinclude Depend

    Try This.

    • Love 1
  5. root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile GuildManager.cpp
    compile ClientManagerGuild.cpp
    compile HB.cpp
    In file included from ClientManagerBoot.cpp:8:
    ProtoReader.h:36:7: warning: no newline at end of file
    compile PrivManager.cpp
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    compile version.cpp
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    AuctionManager.cpp:719:7: warning: no newline at end of file
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    linking ...
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    gmake: *** [../db_r54180_striped] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

    Paste Your Makefile.

    • Love 1
  6. root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerLogin.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    In file included from ClientManagerBoot.cpp:8:
    ProtoReader.h:36:7: warning: no newline at end of file
    compile GuildManager.cpp
    compile HB.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    compile PrivManager.cpp
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    compile ClientManagerEventFlag.cpp
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    AuctionManager.cpp:719:7: warning: no newline at end of file
    compile version.cpp
    compile CsvReader.cpp
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    linking ...
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(CAsyncSQL*, bool)':
    AsyncSQL.cpp:(.text+0xf7f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0x113f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(CAsyncSQL*, bool)':
    AsyncSQL.cpp:(.text+0xf7f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0x113f): undefined reference to `pthread_create'
    gmake: *** [../db_r54180] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../db_r54180_striped] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

     

    Please Clean Objdir files. And Paste Build Log

    • Love 1
  7. 0424 11:30:42652 :: 
    networkModule.py(line:208) SetSelectCharacterPhase
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    introSelect.py(line:30) <module>
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    interfaceModule.py(line:30) <module>
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    uiGuild.py(line:11) <module>
    system.py(line:137) __pack_import
     
    networkModule.SetSelectCharacterPhase - <type 'exceptions.ImportError'>:No module named inf
     
    0424 11:30:42653 :: ============================================================================================================
    0424 11:30:42653 :: Abort!!!!
     
     
    Who Give Me İnf.pyc ?
  8. I'm using the source from vanilla that was given to us from her/him.

    I did compile db, but when I do clean I get an error.

     

    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    
    ClientManagerBoot.cpp:460:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
    
    std::ostringstream query;
    
    ^
    
    compile CsvReader.cpp
    
    ClientManagerBoot.cpp: In member function 'void CClientManager::CheckItemTable()':
    
    ClientManagerBoot.cpp:700:21: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
    
    std::ostringstream query;
    
    ^
    
    ClientManagerBoot.cpp:729:22: error: aggregate 'std::ostringstream query2' has incomplete type and cannot be defined
    
    std::ostringstream query2;
    
    ^
    
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    
    ClientManagerBoot.cpp:1032:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
    
    std::ostringstream query;
    
    ^
    
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    
    CsvReader.cpp:72:25: warning: left operand of comma operator has no effect [-Wunused-value]
    
    LogToFile(NULL, "cannot find suitable conversion for %d", index);
    
    ^
    
    CsvReader.cpp:72:67: warning: right operand of comma operator has no effect [-Wunused-value]
    
    LogToFile(NULL, "cannot find suitable conversion for %d", index);
    
    ^
    
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    
    CsvReader.cpp:90:25: warning: left operand of comma operator has no effect [-Wunused-value]
    
    LogToFile(NULL, "cannot find suitable conversion for %s", name);
    
    ^
    
    CsvReader.cpp:90:67: warning: right operand of comma operator has no effect [-Wunused-value]
    
    LogToFile(NULL, "cannot find suitable conversion for %s", name);
    
    ^
    
    gmake: *** [.obj/ClientManagerBoot.o] Error 1

    Any clue?

    Thanks.

     

    #include <sstream> Add Top On File.

    • Love 1
×
×
  • 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.