Jump to content

Recommended Posts

Spoiler

compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
OXEvent.cpp:258:19: warning: null character(s) preserved in literal
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
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:63:
PetSystem.h:163:31: warning: no newline at end of file
compile char_battle.cpp
char.cpp:7379: warning: this decimal constant is unsigned only in ISO C90
compile char_change_empire.cpp
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
compile char_horse.cpp
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
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:91:7: warning: no newline at end of file
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3136: warning: comparison between signed and unsigned integer expressions
compile char_state.cpp
char.cpp: In static member function 'static CHARACTER::PartyJoinErrCode CHARACTER::IsPartyJoinableMutableCondition(CHARACTER*, CHARACTER*)':
char.cpp:4876: warning: comparison between signed and unsigned integer expressions
char_battle.cpp: In member function 'void CHARACTER::UseArrow(CItem*, DWORD)':
char_battle.cpp:3001: warning: comparison between signed and unsigned integer expressions
compile PetSystem.cpp
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile cmd.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:641: warning: comparison is always false due to limited range of data type
char_item.cpp:667: warning: comparison is always false due to limited range of data type
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:651:2: warning: no newline at end of file
compile cmd_emotion.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2472: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2476: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2488: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2492: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2519: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2527: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5349: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5421: warning: unused variable 'wDestCell'
char_item.cpp:5422: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6484: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6548: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6560: 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:7746: warning: unused variable 'itemType'
char_item.cpp:7747: warning: unused variable 'itemSubType'
compile cmd_general.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:681: warning: control reaches end of non-void function
compile cmd_gm.cpp
compile cmd_oxevent.cpp
In file included from cmd_general.cpp:40:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:260: warning: unused variable 'bDoMoveAlone'
compile config.cpp
../../../Extern/include/boost/functional/hash/extensions.hpp: In member function 'size_t boost::hash<T>::operator()(const T&) const [with T = VID]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:   instantiated from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>, T = VID, SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:758:   instantiated from 'size_t boost::unordered::detail::table<Types>::hash(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
../../../Extern/include/boost/unordered/detail/table.hpp:784:   instantiated from 'boost::unordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::table<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1212:   instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3589:   instantiated from here
../../../Extern/include/boost/functional/hash/extensions.hpp:269: error: no matching function for call to 'hash_value(const VID&)'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:566: warning: unused variable 'petVID'
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
In file included from cmd_general.cpp:10:
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
cmd_emotion.cpp: In function 'bool CHARACTER_CanEmotion(CHARACTER&)':
cmd_emotion.cpp:133: warning: control reaches end of non-void function
config.cpp:512:31: warning: character constant too long for its type
config.cpp:529:25: warning: character constant too long for its type
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6595: warning: 'pBuff' may be used uninitialized in this function
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
config.cpp: In function 'bool GetIPInfo()':
config.cpp:482: warning: the address of 'g_szInternalIP' will always evaluate as 'true'
config.cpp:512: warning: comparison is always false due to limited range of data type
config.cpp:529: warning: comparison is always true due to limited range of data type
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:661: warning: NULL used in arithmetic
config.cpp:685: warning: NULL used in arithmetic
config.cpp:709: warning: NULL used in arithmetic
config.cpp:731: warning: unused variable 'line'
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:5528: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_costume_bonus_transfer(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4395: warning: 'cell2' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:5950: 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:5570: 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:2432: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:2432: warning: 'y' may be used uninitialized in this function

 

Im using mainline released

Anyone pls help me. what is the reason of compile error ?

Edited by Shisui
Spoiler Tag
Link to comment
https://metin2.dev/topic/10376-game-compiler-error/
Share on other sites

  • Replies 15
  • Created
  • Last Reply

Top Posters In This Topic

2 hours ago, Mr.Slime said:

There are only warning.. I don't see error.

Post screen  where there is the problem.

 

Best Regards,

Mr.Slime

Screenshot exactly same as these log (This is the whole compile log )

Probably somewhere before these lines there is an important breakpoint other than warning, so it stops compiling :

../../../Extern/include/boost/unordered/unordered_map.hpp:1212:   instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3589:   instantiated from here

gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....

Link to comment
https://metin2.dev/topic/10376-game-compiler-error/#findComment-61261
Share on other sites

2 hours ago, Mr.Slime said:

I think that it's a problem with ASCII Table.

boost/unordered/unordered_map.hpp

Go on mainline_released and copy unordered_map.hpp and char_skill.cpp. It will work ;)

Best regards,

Mr.Slime

Thanks Slime I solved the problem .It happens because of Boost version (game wants its old verison, so I installed old)
Now I have 2 new problems unsolved:

1)db/src

linking ...
/usr/local/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
gmake: *** [../db_r40250] Error 1

2)game/src

Spoiler

linking ../game_r44850_32....
linking ../test
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o:/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
OBJDIR/cipher.o: In function `StandardReallocate<unsigned char, CryptoPP::AllocatorWithCleanup<unsigned char, true> >':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::allocate(unsigned int, void const*)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
collect2: error: ld returned 1 exit status
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o:/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
OBJDIR/cipher.o: In function `StandardReallocate<unsigned char, CryptoPP::AllocatorWithCleanup<unsigned char, true> >':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::allocate(unsigned int, void const*)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
collect2: error: ld returned 1 exit status
gmake: *** [../game_r44850_32] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [../test] Error 1

Second one probably problems with CrytoPP .Thanks for helping

Link to comment
https://metin2.dev/topic/10376-game-compiler-error/#findComment-61281
Share on other sites

2 hours ago, Mr.Slime said:

Have you install MySQL?

db problem solved . in libmysql/7.x-5.1.35 and 5.x-5.1.35 there is a file named: libmysqlclient.a is missing. I put them back from some where and db compiled succesfully
So problem on src/game continue related with cryptoPP

Link to comment
https://metin2.dev/topic/10376-game-compiler-error/#findComment-61318
Share on other sites

18 hours ago, Mr.Slime said:

Uh yes i know libmysqlclient,i have read it now,sorry ahahha.

Add me on skype,i will give you fix. cryptopp.

Thanks Slime I solved this problem also .changed crytopp folder with another version and it worked.Now Im experiencing a new problem .When I enter char. core dumps and CH closes.In db syserr log there FDWATCH errors.Probabyly some map or mob downs the core

Link to comment
https://metin2.dev/topic/10376-game-compiler-error/#findComment-61366
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.