Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pal9000 ~/source/azerothcore-wotlk/build # make -j1
- [ 0%] Building CXX object modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:2:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:59:24: error: use of undeclared
- identifier 'urand'
- return urand(1, 10);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:61:20: error: use of undeclared
- identifier 'urand'
- return urand(1, 4) * maxStackSize / 5;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:89:32: error: use of undeclared
- identifier 'urand'
- maxStackSize = urand(1, 10);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:92:32: error: use of undeclared
- identifier 'urand'
- maxStackSize = urand(1, 20);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:126:24: error: use of undeclared
- identifier 'urand'
- return urand(1, maxStack);
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:7:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:14:28: error: attempt to use a
- deleted function
- static AhBotConfig instance;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:87:15: note: destructor of
- 'AhBotConfig' is implicitly deleted because field 'config' has an inaccessible destructor
- ConfigMgr config;
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:11:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:15:34: error:
- attempt to use a deleted function
- static PlayerbotAIConfig instance;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:90:15: note:
- destructor of 'PlayerbotAIConfig' is implicitly deleted because field 'config' has an
- inaccessible destructor
- ConfigMgr config;
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:27:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIAware.h:8:26: error:
- unknown type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
- PlayerbotAIAware(PlayerbotAI* const ai) : ai(ai) { }
- ^~~~~~~~~~~
- PlayerbotMgr
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:6:7: note:
- 'PlayerbotMgr' declared here
- class PlayerbotMgr;
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:27:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIAware.h:11:9: error:
- unknown type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
- PlayerbotAI* ai;
- ^~~~~~~~~~~
- PlayerbotMgr
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:6:7: note:
- 'PlayerbotMgr' declared here
- class PlayerbotMgr;
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:30:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/ChatHelper.h:15:20: error: unknown
- type name 'PlayerbotAI'; did you mean 'PlayerbotMgr'?
- ChatHelper(PlayerbotAI* ai);
- ^~~~~~~~~~~
- PlayerbotMgr
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotMgr.h:49:7: note:
- 'PlayerbotMgr' declared here
- class PlayerbotMgr : public PlayerbotHolder
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:18:94: error:
- cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
- 'PlayerbotMgr *'
- ...Strategy* GetStrategy(string name) { return strategyContexts.GetObject(name, ai); }
- ^~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
- passing argument to parameter 'ai' here
- T* GetObject(string name, PlayerbotAI* ai)
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:20:91: error:
- cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
- 'PlayerbotMgr *'
- virtual Trigger* GetTrigger(string name) { return triggerContexts.GetObject(name, ai); }
- ^~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
- passing argument to parameter 'ai' here
- T* GetObject(string name, PlayerbotAI* ai)
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:21:88: error:
- cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
- 'PlayerbotMgr *'
- virtual Action* GetAction(string name) { return actionContexts.GetObject(name, ai); }
- ^~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
- passing argument to parameter 'ai' here
- T* GetObject(string name, PlayerbotAI* ai)
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:6:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/AiObjectContext.h:22:99: error:
- cannot initialize a parameter of type 'PlayerbotAI *' with an lvalue of type
- 'PlayerbotMgr *'
- ...UntypedValue* GetUntypedValue(string name) { return valueContexts.GetObject(name, ai); }
- ^~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/NamedObjectContext.h:144:48: note:
- passing argument to parameter 'ai' here
- T* GetObject(string name, PlayerbotAI* ai)
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:12:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/playerbot.h:31:
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAI.h:9:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/ChatFilter.h:10:39: error: no
- matching constructor for initialization of 'BotAI::PlayerbotAIAware'
- ChatFilter(PlayerbotAI* ai) : PlayerbotAIAware(ai) {}
- ^ ~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:5:11: note:
- candidate constructor (the implicit copy constructor) not viable: cannot convert argument
- of incomplete type 'PlayerbotAI *' to 'const BotAI::PlayerbotAIAware' for 1st argument
- class PlayerbotAIAware
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:5:11: note:
- candidate constructor (the implicit move constructor) not viable: cannot convert argument
- of incomplete type 'PlayerbotAI *' to 'BotAI::PlayerbotAIAware' for 1st argument
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/strategy/../PlayerbotAIAware.h:8:9: note:
- candidate constructor not viable: cannot convert argument of incomplete type
- 'PlayerbotAI *' to 'PlayerbotMgr *const' for 1st argument
- PlayerbotAIAware(PlayerbotAI* const ai) : ai(ai) { }
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:16:14: error: out-of-line definition
- of 'MinimalLoadFromDB' does not match any declaration in 'Player'
- bool Player::MinimalLoadFromDB( QueryResult result, uint32 guid )
- ^~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:293:92: warning: format specifies type
- 'int' but the argument has type 'int64' (aka 'long') [-Wformat]
- ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], curPrice, availableMoney);
- ^~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:319:82: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], buytime - time(0));
- ^~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:472:64: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- proto->Name1.c_str(), auctionIds[auction], sellTime - time(0));
- ^~~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:478:64: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- proto->Name1.c_str(), auctionIds[auction], time(0) - sellTime);
- ^~~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:536:37: error: no member named
- 'GetGUIDObject' in 'Item'
- auctionEntry->item_guidlow = item->GetGUIDObject().GetCounter();
- ~~~~ ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: warning: format string is not
- a string literal (potentially insecure) [-Wformat-security]
- sLog->outBasic(out.str().c_str());
- ^~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: note: treat the string as an
- argument to avoid this
- sLog->outBasic(out.str().c_str());
- ^
- "%s",
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:55: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(...
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:74: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(), b...
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:93: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- ...%d} bidders loaded", bidders[1].size(), bidders[2].size(), bidders[3].size());
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- 8 warnings and 17 errors generated.
- make[2]: *** [modules/bot/CMakeFiles/bot.dir/build.make:63: modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o] Error 1
- make[1]: *** [CMakeFiles/Makefile2:123: modules/bot/CMakeFiles/bot.dir/all] Error 2
- make: *** [Makefile:130: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement