Compile Error Debian TrinityCore 6.x

Hey guys,

I’ve got the following errors during compiling TrinityCore 6.x on a debian 8.4 machine.

[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_list.cpp.o
In file included from /root/wow-source/trinitycore_6.x/TrinityCore/src/server/game/Achievements/AchievementMgr.h:22:0,
from /root/wow-source/trinitycore_6.x/TrinityCore/src/server/scripts/Commands/cs_guild.cpp:25:
/root/wow-source/trinitycore_6.x/TrinityCore/src/server/game/Achievements/CriteriaHandler.h:65:32: error: declaration of ‘const Criteria* CriteriaTree::Criteria’ [-fpermissive]
Criteria const* Criteria = nullptr;
^
compilation terminated due to -Wfatal-errors.
src/server/scripts/CMakeFiles/scripts.dir/build.make:468: recipe for target ‘src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_guild.cpp.o’ failed
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_guild.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs…
error: declaration of ‘const Criteria* CriteriaTree::Criteria’ [-fpermissive] error: declaration of ‘const Criteria* CriteriaTree::Criteria’ [-fpermissive]CMakeFiles/Makefile2:1246: recipe for target ‘src/server/scripts/CMakeFiles/scripts.dir/all’ failed
make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
Makefile:117: recipe for target ‘all’ failed
make: *** [all] Error 2

Installed compiler:

ii g++ 4:4.9.2-2 amd64 GNU C++ compiler
ii g+±4.9 4.9.2-10 amd64 GNU C++ compiler
ii gcc 4:4.9.2-2 amd64 GNU C compiler
ii gcc-4.9 4.9.2-10 amd64 GNU C compiler

using the following cmake command:
cmake ../ -DTOOLS=1 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0 -DSERVERS=1 -DSCRIPTS="static" -DCMAKE_INSTALL_PREFIX=/root/wow-build/trinitycore_6.x_latest -DWITH_WARNINGS=1

surely using make -j 4

— Canned message start —
This thread does not belong in this section in its current form, and should be reposted in the tracker.

Please read this thread to make your future help requests more effective.

Read This too
Search on tracker before posting any bug report.
— Canned message end —