Hi,
today i tried to compile latest TrinityCore (master branch) on FreeBSD 10.0 p0 amd64 (stable release) but i get an severe error.
root@myhost:/usr/home/myusuer/trinity_source/TrinityCore/build # cmake ../ -DPREFIX=/usr/home/myusuer/trinity_server -DTOOLS=1
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- 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
-- UNIX: Detected compiler: /usr/bin/cc
-- Found ACE library: /usr/local/lib/libACE.so
-- Found ACE headers: /usr/local/include
-- Found OpenSSL library: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using mysql-config: /usr/local/bin/mysql_config
-- Found MySQL library: /usr/local/lib/mysql/libmysqlclient_r.so
-- Found MySQL headers: /usr/local/include/mysql
-- Found Readline library: /usr/lib/libreadline.so
-- Include dir is: /usr/include
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Found git binary : /usr/local/bin/git
* TrinityCore revision : 516a6344fecc+ 2014-01-22 07:31:37 +0100 (master branch)
* TrinityCore buildtype : Release
* Install core to : /usr/home/myusuer/trinity_server
* Install libraries to : /usr/home/myusuer/trinity_server/lib
* Install configs to : /usr/home/myusuer/trinity_server/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)
* Use GIT revision hash : Yes
-- 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
-> Prepared: Events
-> Prepared: Pet
-- SCRIPT PREPARATION COMPLETE
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/home/myusuer/trinity_source/TrinityCore/build
root@myhost:/usr/home/myusuer/trinity_source/TrinityCore/build #
root@myhost:/usr/home/myusuer/trinity_source/TrinityCore/build # make
Scanning dependencies of target g3dlib
[ 0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:106:18: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
const float& __fastcall operator[] (int i) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:118:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator= (const Vector3& rkVector);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:135:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator+ (const Vector3& v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:136:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator- (const Vector3& v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:137:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator* (float s) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:138:20: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
inline Vector3 __fastcall operator/ (float s) const {
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:141:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator* (const Vector3& v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:142:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator/ (const Vector3& v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:143:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall operator- () const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:146:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator+= (const Vector3& v);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:147:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator-= (const Vector3& v);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:148:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator*= (float s);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:149:21: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
inline Vector3& __fastcall operator/= (float s) {
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:152:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator*= (const Vector3& v);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:153:14: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3& __fastcall operator/= (const Vector3& v);
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:269:11: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
float __fastcall dot(const Vector3& rkVector) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:276:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall cross(const Vector3& rkVector) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:289:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall min(const Vector3 &v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/AABox.cpp:11:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/AABox.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:290:13: warning: calling
convention '__fastcall__' ignored for this target [-Wignored-attributes]
Vector3 __fastcall max(const Vector3 &v) const;
^
/usr/include/sys/cdefs.h:355:35: note: expanded from macro '__fastcall'
#define __fastcall __attribute__((__fastcall__))
^
19 warnings generated.
[ 0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Any.cpp.o
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/source/Any.cpp:14:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Any.h:18:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Table.h:20:
In file included from /usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/Array.h:19:
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/System.h:126:20: error: field has
incomplete type 'struct timeval'
struct timeval m_start;
^
/usr/home/myusuer/trinity_source/TrinityCore/dep/g3dlite/include/G3D/System.h:126:12: note: forward
declaration of 'G3D::timeval'
struct timeval m_start;
^
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/home/myusuer/trinity_source/TrinityCore/build
*** Error code 1
Stop.
make[1]: stopped in /usr/home/myusuer/trinity_source/TrinityCore/build
*** Error code 1
Stop.
make: stopped in /usr/home/myusuer/trinity_source/TrinityCore/build
root@myhost:/usr/home/myusuer/trinity_source/TrinityCore/build #
Thank you very much.
Best Regards