Compile errors in most recent trinitycore build (fatal)

Issue #105 resolved
Matthew Stockfleth created an issue

[ 13%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/NpcBots/bot_shaman_ai.cpp.o In file included from /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_shaman_ai.cpp:1:0: /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_ai.h:547:44: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] uint8 const _onOffIcon(uint8 role) const; ^ /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_shaman_ai.cpp: In member function ‘void shaman_bot::shaman_botAI::CheckManaTide(uint32)’: /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_shaman_ai.cpp:343:62: error: invalid use of incomplete type ‘const struct NpcBotMap’ Creature bot = tPlayer->GetBotMap(i)->_Cre(); ^ compilation terminated due to -Wfatal-errors. make[2]: [src/server/game/CMakeFiles/game.dir/AI/NpcBots/bot_shaman_ai.cpp.o] Error 1 make[1]: [src/server/game/CMakeFiles/game.dir/all] Error 2 make: ** [all] Error 2

Comments (11)

  1. James Hoffer

    Weird, I didn't have that issue with core_ca5dafe6af, what I noticed was issues with NPC_Airen or whatever, an easy fix, and obviously there were issues with world_bots.sql "only with fresh database install" because trinity removed faction A, and faction H tables, and replaced them with just Faction. So it was an easy fix to edit that sql. Proof that it compiled and worked fine?

    http://gamerschoice.boards.net/thread/27/trinity-3-5-botcore

    When you say most recent, which revision are you talking about? There have been 6 commits in the last 2 hours.

  2. Matthew Stockfleth reporter

    In file included from /home/exaurdon/TrinityCore/src/server/shared/Utilities/Util.cpp:22:0: /home/exaurdon/TrinityCore/dep/SFMT/SFMT.h: In member function ‘void SFMTRand::RandomInit(int)’: /home/exaurdon/TrinityCore/dep/SFMT/SFMT.h:172:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ((uint32_t)state)[0] = y; ^ [ 12%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Utilities/EventProcessor.cpp.o [ 13%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Common.cpp.o [ 13%] Building CXX object src/server/shared/CMakeFiles/shared.dir/PrecompiledHeaders/sharedPCH.cpp.o Linking CXX static library libshared.a [ 13%] Built target shared Scanning dependencies of target gamePCH.cpp_dephelp [ 13%] Building CXX object src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/PrecompiledHeaders/gamePCH.cpp.o In file included from /home/exaurdon/TrinityCore/src/server/game/Server/Protocol/Opcodes.h:32:0, from /home/exaurdon/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.h:11, from /home/exaurdon/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.cpp:1: /home/exaurdon/TrinityCore/src/server/game/Server/WorldSession.h:220:44: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] uint32 const getEquips(uint8 slot) const { return equips[slot]; } ^ In file included from /home/exaurdon/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.h:13:0, from /home/exaurdon/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.cpp:1: /home/exaurdon/TrinityCore/src/server/game/Globals/ObjectMgr.h:160:9: error: ‘UNORDERED_MAP’ does not name a type typedef UNORDERED_MAP<uint32, CreatureOutfit > CreatureOutfitContainer; ^ compilation terminated due to -Wfatal-errors. make[2]: [src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/PrecompiledHeaders/gamePCH.cpp.o] Error 1 make[1]: [src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/all] Error 2 make: ** [all] Error 2

    As of 1:50 am git pull.

  3. Maxxgold

    NPC's are not working with latest updates to trinity core. Haven't looked into it very much but I tried to compile it 2 times and I got errors both times. When I didn't apply NPC Bot patch I got no errors. We are not using NPC Bots at the moment and my users miss them.

  4. Lavrentyi Tritonovich

    Um...yes. Zhyvchyk submitted proper fix. Look at error

    error: UNORDERED_MAP does not name a type typedef UNORDERED_MAP<uint32, CreatureOutfit > CreatureOutfitContainer; ^ compilation terminated due to -Wfatal-errors. make[2]:
    
  5. Maxxgold

    Well. If that works for you then that's good. LordPsyan posted the proper fixes and addressed the faction changes in the latest TC.

  6. Matthew Stockfleth reporter

    Fixed that....now: /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_druid_ai.cpp: In member function ‘void druid_bot::bot_druid_ai::CheckBattleRez(uint32)’: /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_druid_ai.cpp:829:29: error: ‘class Player’ has no member named ‘isRessurectRequested’ if (master->isRessurectRequested()) return; //ressurected ^ /home/exaurdon/TrinityCore/src/server/game/AI/NpcBots/bot_druid_ai.cpp:855:30: error: ‘class Player’ has no member named ‘isRessurectRequested’ if (tPlayer->isRessurectRequested()) continue; //ressurected ^ make[2]: [src/server/game/CMakeFiles/game.dir/AI/NpcBots/bot_druid_ai.cpp.o] Error 1 make[1]: [src/server/game/CMakeFiles/game.dir/all] Error 2 make: *** [all] Error 2

  7. Log in to comment