ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 95 forks source link

Make is failing #220

Open GMCedwick opened 7 months ago

GMCedwick commented 7 months ago

[ 70%] Building CXX object modules/CMakeFiles/modules.dir/mod-playerbots/src/PlaceholderHelper.cpp.o In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:7: In file included from /root/azerothcore-wotlk/src/server/game/Guilds/GuildMgr.h:21: /root/azerothcore-wotlk/src/server/game/Guilds/Guild.h:244:23: warning: unused parameter 'style' [-Wunused-parameter] EmblemInfo(uint32 style = 0, uint32 color = 0, uint32 borderStyle = 0, uint32 borderColor = 0, uint32 backgroundColor = 0) : ^ /root/azerothcore-wotlk/src/server/game/Guilds/Guild.h:244:41: warning: unused parameter 'color' [-Wunused-parameter] EmblemInfo(uint32 style = 0, uint32 color = 0, uint32 borderStyle = 0, uint32 borderColor = 0, uint32 backgroundColor = 0) : ^ /root/azerothcore-wotlk/src/server/game/Guilds/Guild.h:244:59: warning: unused parameter 'borderStyle' [-Wunused-parameter] EmblemInfo(uint32 style = 0, uint32 color = 0, uint32 borderStyle = 0, uint32 borderColor = 0, uint32 backgroundColor = 0) : ^ /root/azerothcore-wotlk/src/server/game/Guilds/Guild.h:244:83: warning: unused parameter 'borderColor' [-Wunused-parameter] EmblemInfo(uint32 style = 0, uint32 color = 0, uint32 borderStyle = 0, uint32 borderColor = 0, uint32 backgroundColor = 0) : ^ /root/azerothcore-wotlk/src/server/game/Guilds/Guild.h:244:107: warning: unused parameter 'backgroundColor' [-Wunused-parameter] EmblemInfo(uint32 style = 0, uint32 color = 0, uint32 borderStyle = 0, uint32 borderColor = 0, uint32 backgroundColor = 0) : ^ In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:11: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/Playerbots.h:15: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/QuestValues.h:9: /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy] WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:45:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] Guild guild = sGuildMgr->GetGuildById(guildMaster->GetGuildId()); ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:42:5: note: previous statement is here if (!player->IsFriendlyTo(guildMaster)) ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:158:17: warning: unused variable 'tradeSkills' [-Wunused-variable] uint32 tradeSkills = PlayerbotFactory::tradeSkills; ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:504:5: fatal error: unknown type name 'PlayerbotsDatabasePreparedStatement'; did you mean 'CharacterDatabasePreparedStatement'? PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAYERBOTS_SEL_GUILD_TASKS_BY_VALUE); ^~~~~~~~~~~ CharacterDatabasePreparedStatement /root/azerothcore-wotlk/src/server/database/Database/DatabaseEnvFwd.h:45:7: note: 'CharacterDatabasePreparedStatement' declared here using CharacterDatabasePreparedStatement = PreparedStatement; ^ 8 warnings and 1 error generated. make[2]: [modules/CMakeFiles/modules.dir/build.make:1084: modules/CMakeFiles/modules.dir/mod-playerbots/src/GuildTaskMgr.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:7: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/Playerbots.h:15: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/QuestValues.h:9: /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy] WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:95:28: warning: assigning field to itself [-Wself-assign-field] this->guid = guid; ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:124:36: warning: assigning field to itself [-Wself-assign-field] this->guid = guid; ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:88:29: warning: comparison of integers of different signs: 'int' and 'std::vector::size_type' (aka 'unsigned long') [-Wsign-compare] if (!items || i >= items->size()) ~ ^ ~~~~~ In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:5: /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.h:30:9: warning: definition of implicit copy assignment operator for 'LootObject' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy] LootObject(LootObject const& other); ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/LootObjectStack.cpp:296:33: note: in implicit copy assignment operator for 'LootObject' first required here sortedMap[distance] = lootObject; ^ In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/PerformanceMonitor.cpp:6: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/Playerbots.h:15: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/QuestValues.h:9: /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy] WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; } ^ In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/PlaceholderHelper.cpp:7: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/Playerbots.h:15: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11: In file included from /root/azerothcore-wotlk/modules/mod-playerbots/src/strategy/values/QuestValues.h:9: /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy] WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { } ^ /root/azerothcore-wotlk/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; } ^ 5 warnings generated. 1 warning generated. 1 warning generated. make[1]: [CMakeFiles/Makefile2:1380: modules/CMakeFiles/modules.dir/all] Error 2 make: [Makefile:136: all] Error 2