Advertisement
DrArkaneX

bot error

Apr 11th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. pal9000 ~/source/azerothcore-wotlk/build # make
  2. Scanning dependencies of target bot
  3. [ 0%] Building CXX object modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o
  4. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:2:
  5. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:59:24: error: use of undeclared
  6. identifier 'urand'
  7. return urand(1, 10);
  8. ^
  9. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:61:20: error: use of undeclared
  10. identifier 'urand'
  11. return urand(1, 4) * maxStackSize / 5;
  12. ^
  13. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:89:32: error: use of undeclared
  14. identifier 'urand'
  15. maxStackSize = urand(1, 10);
  16. ^
  17. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:92:32: error: use of undeclared
  18. identifier 'urand'
  19. maxStackSize = urand(1, 20);
  20. ^
  21. /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:126:24: error: use of undeclared
  22. identifier 'urand'
  23. return urand(1, maxStack);
  24. ^
  25. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:7:
  26. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:14:28: error: attempt to use a
  27. deleted function
  28. static AhBotConfig instance;
  29. ^
  30. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:87:15: note: destructor of
  31. 'AhBotConfig' is implicitly deleted because field 'config' has an inaccessible destructor
  32. ConfigMgr config;
  33. ^
  34. In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:11:
  35. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:15:34: error:
  36. attempt to use a deleted function
  37. static PlayerbotAIConfig instance;
  38. ^
  39. /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:90:15: note:
  40. destructor of 'PlayerbotAIConfig' is implicitly deleted because field 'config' has an
  41. inaccessible destructor
  42. ConfigMgr config;
  43. ^
  44. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:293:92: warning: format specifies type
  45. 'int' but the argument has type 'int64' (aka 'long') [-Wformat]
  46. ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], curPrice, availableMoney);
  47. ^~~~~~~~~~~~~~
  48. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:319:82: warning: format specifies type
  49. 'int' but the argument has type 'long' [-Wformat]
  50. ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], buytime - time(0));
  51. ^~~~~~~~~~~~~~~~~
  52. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:472:64: warning: format specifies type
  53. 'int' but the argument has type 'long' [-Wformat]
  54. proto->Name1.c_str(), auctionIds[auction], sellTime - time(0));
  55. ^~~~~~~~~~~~~~~~~~
  56. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:478:64: warning: format specifies type
  57. 'int' but the argument has type 'long' [-Wformat]
  58. proto->Name1.c_str(), auctionIds[auction], time(0) - sellTime);
  59. ^~~~~~~~~~~~~~~~~~
  60. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:536:37: error: no member named
  61. 'GetGUIDObject' in 'Item'
  62. auctionEntry->item_guidlow = item->GetGUIDObject().GetCounter();
  63. ~~~~ ^
  64. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: warning: format string is not
  65. a string literal (potentially insecure) [-Wformat-security]
  66. sLog->outBasic(out.str().c_str());
  67. ^~~~~~~~~~~~~~~~~
  68. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: note: treat the string as an
  69. argument to avoid this
  70. sLog->outBasic(out.str().c_str());
  71. ^
  72. "%s",
  73. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:55: warning: format specifies type
  74. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  75. sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(...
  76. ~~ ^~~~~~~~~~~~~~~~~
  77. %zu
  78. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:74: warning: format specifies type
  79. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  80. sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(), b...
  81. ~~ ^~~~~~~~~~~~~~~~~
  82. %zu
  83. /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:93: warning: format specifies type
  84. 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
  85. ...%d} bidders loaded", bidders[1].size(), bidders[2].size(), bidders[3].size());
  86. ~~ ^~~~~~~~~~~~~~~~~
  87. %zu
  88. 8 warnings and 8 errors generated.
  89. make[2]: *** [modules/bot/CMakeFiles/bot.dir/build.make:63: modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o] Error 1
  90. make[1]: *** [CMakeFiles/Makefile2:123: modules/bot/CMakeFiles/bot.dir/all] Error 2
  91. make: *** [Makefile:130: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement