Jump to content

Source translation Problem!?


Recommended Posts

Hi guys!

I have some problem with this source..

When i write in putty this:

cd /usr/src/mainline/Server/game/src

gmake clean - do nothing

gmake -j

The putty start this, but didnt translate my game and db.

Putty write this:

Spoiler

/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
compile cmd_emotion.cpp
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
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 CBeltInventoryHelper::G   etBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer exp   ressions
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 typ   e
char_item.cpp:666: warning: comparison is always false due to limited range of data typ   e
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2386: warning: format '%d' expects type 'int', but argument 6 has type 'l   ong int'
char_item.cpp:2390: warning: format '%d' expects type 'int', but argument 6 has type 'l   ong int'
char_item.cpp:2402: warning: format '%d' expects type 'int', but argument 5 has type 'l   ong int'
char_item.cpp:2406: warning: format '%d' expects type 'int', but argument 5 has type 'l   ong int'
char_item.cpp:2433: warning: format '%d' expects type 'int', but argument 6 has type 'l   ong int'
char_item.cpp:2441: warning: format '%d' expects type 'int', but argument 5 has type 'l   ong int'
char_item.cpp:3617: warning: suggest parentheses around && within ||
char_item.cpp:3641: warning: suggest parentheses around && within ||
char_item.cpp:5089: warning: comparison between signed and unsigned integer expressions
compile cmd_oxevent.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5307: warning: suggest parentheses around comparison in operand of |
char_item.cpp:5161: warning: unused variable 'wDestCell'
char_item.cpp:5162: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6178: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)'   :
char_item.cpp:6242: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem   *)':
char_item.cpp:6254: 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:7440: warning: unused variable 'itemType'
char_item.cpp:7441: warning: unused variable 'itemSubType'
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
compile config.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
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
compile constants.cpp
char_skill.cpp: In member function 'bool CHARACTER::UseSkill(DWORD, CHARACTER*, bool)':
char_skill.cpp:2494: warning: suggest parentheses around && within ||
char_skill.cpp:2600: warning: suggest parentheses around && within ||
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:803: warning: suggest explicit braces to avoid ambiguous 'else'
char_state.cpp:901: warning: unused variable 'rider'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const c   har*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
compile crc32.cpp
/usr/local/include/boost/functional/hash/extensions.hpp: In member function 'size_t boo   st::hash<T>::operator()(const T&) const [with T = VID]':
/usr/local/include/boost/unordered/detail/buckets.hpp:482:   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]'
/usr/local/include/boost/unordered/detail/table.hpp:692:   instantiated from 'size_t bo   ost::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> >]'
/usr/local/include/boost/unordered/detail/table.hpp:718:   instantiated from 'boost::un   ordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::tabl   e<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unorder   ed::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int,    boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/unordered_map.hpp:1211:   instantiated from 'typenam   e 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:3569:   instantiated from here
/usr/local/include/boost/functional/hash/extensions.hpp:262: error: no matching functio   n for call to 'hash_value(const VID&)'
compile cube.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
gmake: *** [Makefile:132: OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
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 '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'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, B   YTE)':
char_item.cpp:6289: warning: 'pBuff' may be used uninitialized in this function
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = std::string]':
/usr/local/include/cryptopp/cryptlib.h:366:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
/usr/local/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePai   rs::GetValue(const char*, T&) const [with T = int]':
/usr/local/include/cryptopp/cryptlib.h:377:   instantiated from here
/usr/local/include/cryptopp/cryptlib.h:342: warning: dereferencing type-punned pointer    will break strict-aliasing rules
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
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
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
root@:/usr/src/mainline/Srcs/Server/game/src #

 

In the source i modification only statuspoints.

So somebody can help me?

Sorry for my bad English guys, and thanks a lot!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

//char.h
//search
boost::unordered_map<VID, size_t> TargetVIDMap;

//replace for normal compilers
boost::unordered_map<DWORD, size_t> TargetVIDMap;

//replace for modern compilers
/*At top of the file include <unordered_map> */
std::unordered_map<uint32_t, size_t> TargetVIDMap;

It looks like you have the problem regarding higher boost versions

 

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


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