Azerothcore-wotlk: enable extra logs,compilation error

Created on 16 Nov 2020  路  1Comment  路  Source: azerothcore/azerothcore-wotlk

AzerothCore revision : c32283fab782+ 2020-11-06 18:05:03 +0000 (master branch)
OS锛歶buntu 18.04.4

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/user/run/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=0 -DSCRIPTS=1 -DWITH_WARNINGS=1 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DENABLE_EXTRAS=1 -DENABLE_EXTRA_LOGS=1

error logs:

[ 38%] Building CXX object src/server/game/CMakeFiles/game.dir/Warden/WardenMac.cpp.o
/home/user/azerothcore/src/server/game/Spells/Auras/SpellAuras.cpp:75:28: fatal error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'DebugLogFilters'
            sLog->outError(LOG_FILTER_SPELLS_AURAS, "Aura: %u Effect: %d could not find empty unit visible slot", GetBase()->GetId(), GetEffectMask());
                           ^~~~~~~~~~~~~~~~~~~~~~~
/home/polly/azerothcore/src/common/Logging/Log.h:121:31: note: passing argument to parameter 'err' here
    void outError(const char* err, ...)                    ATTR_PRINTF(2, 3);
                              ^
[ 38%] Building CXX object src/server/game/CMakeFiles/game.dir/Warden/WardenWin.cpp.o
1 error generated.
src/server/game/CMakeFiles/game.dir/build.make:4602: recipe for target 'src/server/game/CMakeFiles/game.dir/Spells/Auras/SpellAuras.cpp.o' failed
make[2]: *** [src/server/game/CMakeFiles/game.dir/Spells/Auras/SpellAuras.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 38%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_hunter.cpp.o
[ 38%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_shaman.cpp.o
[ 38%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_rogue.cpp.o
[ 38%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_druid.cpp.o

[ 51%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/BlackrockMountain/BlackrockSpire/boss_the_beast.cpp.o
[ 51%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/BlackrockMountain/BlackrockSpire/boss_gizrul_the_slavener.cpp.o
CMakeFiles/Makefile2:1030: recipe for target 'src/server/game/CMakeFiles/game.dir/all' failed
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 51%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/BlackrockMountain/BlackrockSpire/boss_urok_doomhowl.cpp.o
[ 51%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/BlackrockMountain/BlackrockSpire/boss_lord_valthalak.cpp.o
[ 51%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/BlackrockMountain/BlackrockSpire/instance_blackrock_spire.cpp.o

[ 97%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/__/__/__/modules/mod-multi-client-check-master/src/mod_multilogincheck.cpp.o
[ 97%] Linking CXX static library libscripts.a
[ 97%] Built target scripts
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Invalid - CannotReproduce

Most helpful comment

CONCLUSION

I can not reproduce this issue.

@mpfans it looks like you are missing the slot variable from the method call:

sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura: %u Effect: %d put to unit visible auras slot: %u", GetBase()->GetId(), GetEffectMask(), **slot**);

TESTING

Checked the SpellAuras.cpp.

CONFIG

COMMIT: 1b156ef7
OPERATING SYSTEM: Win10 + Docker for Desktop
MODULES / CUSTOMIZATION: None

>All comments

CONCLUSION

I can not reproduce this issue.

@mpfans it looks like you are missing the slot variable from the method call:

sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura: %u Effect: %d put to unit visible auras slot: %u", GetBase()->GetId(), GetEffectMask(), **slot**);

TESTING

Checked the SpellAuras.cpp.

CONFIG

COMMIT: 1b156ef7
OPERATING SYSTEM: Win10 + Docker for Desktop
MODULES / CUSTOMIZATION: None

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zausender picture Zausender  路  27Comments

andoys picture andoys  路  27Comments

LichKing255 picture LichKing255  路  43Comments

Nephelion picture Nephelion  路  30Comments

Narcof picture Narcof  路  34Comments