I am running Fedora 16 (x64) and I keep getting the following error when I go to compile:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- GCC: SSE2 flags forced
-- GCC: All warnings disabled
-- Found ACE library: /usr/local/lib/libACE.so
-- Found ACE headers: /usr/local/include
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib64/mysql/libmysqlclient.so
-- Found MySQL headers: /usr/include/mysql
-- Found Readline library: /usr/lib64/libreadline.so
-- Include dir is: /usr/include
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5")
-- Found BZip2: /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
* TrinityCore rev. hash : 26ff19dbf82a
* TrinityCore rev. date : 2012-04-11 13:40:17 +0200
* TrinityCore buildtype : Release
* Install core to : /home/trinity/server2
* Install libraries to : /home/trinity/server2/lib
* Install configs to : /home/trinity/server2/etc
* Build world/auth : Yes (default)
* Build with scripts : Yes (default)
* Build map/vmap tools : No (default)
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
-- SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: Examples
-> Prepared: Custom
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-- SCRIPT PREPARATION COMPLETE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/trinity/build
======================================
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Server/Protocol/Handlers/PetHandler.cpp.o
/home/trinity/TrinityCore/src/server/game/Server/Protocol/Handlers/PetHandler.cpp: In member function 'void WorldSession::HandlePetActionHelper(Unit*, uint64, uint16, uint16, uint64)':
/home/trinity/TrinityCore/src/server/game/Server/Protocol/Handlers/PetHandler.cpp:205:41: error: 'UNIT_STAT_FOLLOW' was not declared in this scope
/home/trinity/TrinityCore/src/server/game/Server/Protocol/Handlers/PetHandler.cpp: In member function 'void WorldSession::HandlePetCastSpellOpcode(WorldPacket&)':
/home/trinity/TrinityCore/src/server/game/Server/Protocol/Handlers/PetHandler.cpp:780:28: error: 'UNIT_STAT_FOLLOW' was not declared in this scope
make[2]: *** [src/server/game/CMakeFiles/game.dir/Server/Protocol/Handlers/PetHandler.cpp.o] Error 1
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2
Here is my build script:
#!/bin/sh
clear
rm -fR /home/trinity/build
cd /home/trinity/TrinityCore
git pull origin master
cd /home/trinity
mkdir build
cd build
export CFLAGS="-m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -pipe -msse3 -fno-strength-reduce -fno-delete-null-pointer-checks -fno-strict-aliasing -frename-registers -ldl -lcrypto"
cmake ../TrinityCore/ -DPREFIX=/home/trinity/server2
make
make install
cd ..