Advertisement
DrArkaneX

Untitled

Apr 11th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. pal9000 ~/source/azerothcore-wotlk/build # make -j1
  2. [ 0%] Building CXX object modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o
  3. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:2:
  4. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:59:24: error: use of undeclared
  5. identifier 'urand'
  6. return urand(1, 10);
  7. ^
  8. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:61:20: error: use of undeclared
  9. identifier 'urand'
  10. return urand(1, 4) * maxStackSize / 5;
  11. ^
  12. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:89:32: error: use of undeclared
  13. identifier 'urand'
  14. maxStackSize = urand(1, 10);
  15. ^
  16. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:92:32: error: use of undeclared
  17. identifier 'urand'
  18. maxStackSize = urand(1, 20);
  19. ^
  20. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:126:24: error: use of undeclared
  21. identifier 'urand'
  22. return urand(1, maxStack);
  23. ^
  24. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:7:
  25. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:14:28: error: attempt to use a
  26. deleted function
  27. static AhBotConfig instance;
  28. ^
  29. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:87:15: note: destructor of
  30. 'AhBotConfig' is implicitly deleted because field 'config' has an inaccessible destructor
  31. ConfigMgr config;
  32. ^
  33. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:11:
  34. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:15:34: error:
  35. attempt to use a deleted function
  36. static PlayerbotAIConfig instance;
  37. ^
  38. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:90:15: note:
  39. destructor of 'PlayerbotAIConfig' is implicitly deleted because field 'config' has an
  40. inaccessible destructor
  41. ConfigMgr config;
  42. ^
  43. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  44. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:27:
  45. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIAware.h:8:26: error:
  46. unknown type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
  47. PlayerbotAIAware(PlayerbotAI* const ai) : ai(ai) { }
  48. ^~~~~~~~~~~
  49. PlayerbotMgr
  50. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:6:7: note:
  51. 'PlayerbotMgr' declared here
  52. class PlayerbotMgr;
  53. ^
  54. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  55. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:27:
  56. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIAware.h:11:9: error:
  57. unknown type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
  58. PlayerbotAI* ai;
  59. ^~~~~~~~~~~
  60. PlayerbotMgr
  61. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:6:7: note:
  62. 'PlayerbotMgr' declared here
  63. class PlayerbotMgr;
  64. ^
  65. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  66. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:30:
  67. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/ChatHelper.h:15:20: error: unknown
  68. type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
  69. ChatHelper(PlayerbotAI* ai);
  70. ^~~~~~~~~~~
  71. PlayerbotMgr
  72. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotMgr.h:49:7: note:
  73. 'PlayerbotMgr' declared here
  74. class PlayerbotMgr : public PlayerbotHolder
  75. ^
  76. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  77. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
  78. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
  79. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:18:94: error:
  80. cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
  81. 'PlayerbotMgr *'
  82. ...Strategy* GetStrategy(string name) { return strategyContexts.GetObject(name, ai); }
  83. ^~
  84. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
  85. passing argument to parameter 'ai' here
  86. T* GetObject(string name, PlayerbotAI* ai)
  87. ^
  88. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  89. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
  90. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
  91. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:20:91: error:
  92. cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
  93. 'PlayerbotMgr *'
  94. virtual Trigger* GetTrigger(string name) { return triggerContexts.GetObject(name, ai); }
  95. ^~
  96. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
  97. passing argument to parameter 'ai' here
  98. T* GetObject(string name, PlayerbotAI* ai)
  99. ^
  100. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  101. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
  102. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
  103. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:21:88: error:
  104. cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
  105. 'PlayerbotMgr *'
  106. virtual Action* GetAction(string name) { return actionContexts.GetObject(name, ai); }
  107. ^~
  108. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
  109. passing argument to parameter 'ai' here
  110. T* GetObject(string name, PlayerbotAI* ai)
  111. ^
  112. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  113. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
  114. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
  115. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:22:99: error:
  116. cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
  117. 'PlayerbotMgr *'
  118. ...UntypedValue* GetUntypedValue(string name) { return valueContexts.GetObject(name, ai); }
  119. ^~
  120. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
  121. passing argument to parameter 'ai' here
  122. T* GetObject(string name, PlayerbotAI* ai)
  123. ^
  124. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
  125. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
  126. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:9:
  127. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/ChatFilter.h:10:39: error: no
  128. matching constructor for initialization of 'BotAI::PlayerbotAIAware'
  129. ChatFilter(PlayerbotAI* ai) : PlayerbotAIAware(ai) {}
  130. ^ ~~
  131. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:5:11: note:
  132. candidate constructor (the implicit copy constructor) not viable: cannot convert argument
  133. of incomplete type 'PlayerbotAI *' to 'const BotAI::PlayerbotAIAware' for 1st argument
  134. class PlayerbotAIAware
  135. ^
  136. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:5:11: note:
  137. candidate constructor (the implicit move constructor) not viable: cannot convert argument
  138. of incomplete type 'PlayerbotAI *' to 'BotAI::PlayerbotAIAware' for 1st argument
  139. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:8:9: note:
  140. candidate constructor not viable: cannot convert argument of incomplete type
  141. 'PlayerbotAI *' to 'PlayerbotMgr *const' for 1st argument
  142. PlayerbotAIAware(PlayerbotAI* const ai) : ai(ai) { }
  143. ^
  144. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:16:14: error: out-of-line definition
  145. of 'MinimalLoadFromDB' does not match any declaration in 'Player'
  146. bool Player::MinimalLoadFromDB( QueryResult result, uint32 guid )
  147. ^~~~~~~~~~~~~~~~~
  148. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:293:92: warning: format specifies type
  149. 'int' but the argument has type 'int64' (aka 'long') [-Wformat]
  150. ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], curPrice, availableMoney);
  151. ^~~~~~~~~~~~~~
  152. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:319:82: warning: format specifies type
  153. 'int' but the argument has type 'long' [-Wformat]
  154. ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], buytime - time(0));
  155. ^~~~~~~~~~~~~~~~~
  156. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:472:64: warning: format specifies type
  157. 'int' but the argument has type 'long' [-Wformat]
  158. proto->Name1.c_str(), auctionIds[auction], sellTime - time(0));
  159. ^~~~~~~~~~~~~~~~~~
  160. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:478:64: warning: format specifies type
  161. 'int' but the argument has type 'long' [-Wformat]
  162. proto->Name1.c_str(), auctionIds[auction], time(0) - sellTime);
  163. ^~~~~~~~~~~~~~~~~~
  164. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:536:37: error: no member named
  165. 'GetGUIDObject' in 'Item'
  166. auctionEntry->item_guidlow = item->GetGUIDObject().GetCounter();
  167. ~~~~ ^
  168. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: warning: format string is not
  169. a string literal (potentially insecure) [-Wformat-security]
  170. sLog->outBasic(out.str().c_str());
  171. ^~~~~~~~~~~~~~~~~
  172. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: note: treat the string as an
  173. argument to avoid this
  174. sLog->outBasic(out.str().c_str());
  175. ^
  176. "%s",
  177. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:55: warning: format specifies type
  178. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  179. sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(...
  180. ~~ ^~~~~~~~~~~~~~~~~
  181. %zu
  182. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:74: warning: format specifies type
  183. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  184. sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(), b...
  185. ~~ ^~~~~~~~~~~~~~~~~
  186. %zu
  187. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:93: warning: format specifies type
  188. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  189. ...%d} bidders loaded", bidders[1].size(), bidders[2].size(), bidders[3].size());
  190. ~~ ^~~~~~~~~~~~~~~~~
  191. %zu
  192. 8 warnings and 17 errors generated.
  193. make[2]: *** [modules/bot/CMakeFiles/bot.dir/build.make:63: modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o] Error 1
  194. make[1]: *** [CMakeFiles/Makefile2:123: modules/bot/CMakeFiles/bot.dir/all] Error 2
  195. make: *** [Makefile:130: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement