Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I'm not sure why your OpenSSL variables are named like that.

 

It should look like this:

2015-08-04_21-22-26.png

In your case, OpenSSL-Win32, since you are compiling in 32 bits (why thou?)

Edited by Nay
  • Upvote 1
Link to comment
Share on other sites

I'm not sure why your OpenSSL variables are named like that.

 

It should look like this:

2015-08-04_21-22-26.png

In your case, OpenSSL-Win32, since you are compiling in 32 bits (why thou?)​

I was compiling in 32 bit just because 64 bit was getting openssl errors but after you said that I realized I had OpenSSL-Win32 installed. I'm installing boost (64 bit) right now so everything should be working soon. I'm very grateful for your help. Thank you very much.

Link to comment
Share on other sites

The error is quite clear.

Found OpenSSL library: optimized;SSL_EAY_RELEASE-NOTFOUND;LIB_EAY_RELEASE-NOTFOUND;debug;SSL_EAY_DEBUG-NOTFOUND;LIB_EAY_DEBUG-NOTFOUND

You need to install OpenSSL properly.

2015-08-04_21-22-26.png

​Thank you, set the variables - now working how it should! :)

Link to comment
Share on other sites

It's now saying that some variables are set to NOTFOUND.

image.PNG

​You need to set the system variables: LIB_EAY_DEBUG - LIB_EAY_RELEASE - SSL_EAY_DEBUG - SSL_EAY_RELEASE to these files in you OpenSSL Directory:

Your_Drive:/OpenSSL_Directory/lib/VC and than to the files: libeay32MD.lib, libeay32MDd.lib, ssleay32MD.lib and ssleay32MDd.lib

 

So all in one it must look like this:

LIB_EAY_DEBUG

Your_Drive:/OpenSSL_Directory/lib/VC/libeay32MDd.lib

-

LIB_EAY_RELEASE

Your_Drive:/OpenSSL_Directory/lib/VC/libeay32MD.lib

-

 SSL_EAY_DEBUG

Your_Drive:/OpenSSL_Directory/lib/VC/ssleay32MDd.lib

-

SSL_EAY_RELEASE

Your_Drive:/OpenSSL_Directory/lib/VC/ssleay32MD.lib

 

And don't forget the OpenSSL_Root and Include Var. :)

 

Hope this will help you,

 

Greetings,

 

iSwuerfel

Edited by iSwuerfel
OpenSSL_Root and Include
  • Upvote 1
Link to comment
Share on other sites

You need to set the variables I printscreen above, related to OpenSSL.

It's now saying that some variables are set to NOTFOUND.

​You need to set the system variables: LIB_EAY_DEBUG - LIB_EAY_RELEASE - SSL_EAY_DEBUG - SSL_EAY_RELEASE to these files in you OpenSSL Directory:

Your_Drive:/OpenSSL_Directory/lib/VC and than to the files: libeay32MD.lib, libeay32MDd.lib, ssleay32MD.lib and ssleay32MDd.lib

So all in one it must look like this:

LIB_EAY_DEBUG

Your_Drive:/OpenSSL_Directory/lib/VC/libeay32MDd.lib

-

LIB_EAY_RELEASE

Your_Drive:/OpenSSL_Directory/lib/VC/libeay32MD.lib

-

 SSL_EAY_DEBUG

Your_Drive:/OpenSSL_Directory/lib/VC/ssleay32MDd.lib

-

SSL_EAY_RELEASE

Your_Drive:/OpenSSL_Directory/lib/VC/ssleay32MD.lib

And don't forget the OpenSSL_Root and Include Var. :)

Hope this will help you,

Greetings,

iSwuerfel

​Awesome it worked, thanks for all the help! Now I'm having some build errors. Sorry for being illiterate when it comes to C#/C++ Error codes.

 

error.PNG

Link to comment
Share on other sites

Just cloned repo and after compilation got this error:

D:\Developer\ZeroMQ 4.0.4\bin\libzmq-v120-mt-4_0_4.dll : fatal error LNK1107: invalid or corrupt file: cannot read at location 0x2E0

Here is CMAKE output

Detected 32-bit platform
MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
MSVC: Disabled Safe Exception Handlers for debug builds
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found OpenSSL library: optimized;D:/Developer/OpenSSL-Win32/lib/VC/ssleay32MD.lib;D:/Developer/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;D:/Developer/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;D:/Developer/OpenSSL-Win32/lib/VC/libeay32MDd.lib
Found OpenSSL headers: D:/Developer/OpenSSL-Win32/include
Found ZMQ library: D:/Developer/ZeroMQ 4.0.4/bin/libzmq-v120-mt-4_0_4.dll
Found ZMQ headers: D:/Developer/ZeroMQ 4.0.4/include
Boost version: 1.57.0
Found the following Boost libraries:
system
filesystem
thread
program_options
iostreams
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
Found MySQL library: D:/Developer/mysql_lib/lib_32/libmysql.lib
Found MySQL headers: D:/Developer/mysql_lib/include
Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe
Found git binary : C:/Program Files (x86)/Git/cmd/git.exe

* TrinityCore revision : b78921de84e1+ 2015-08-10 18:36:17 +0200 (6.x branch)

* Install core to : C:/Program Files (x86)/TrinityCore

* Build world/auth : Yes (default)
* Build with scripts : Yes (default)
* Build map/vmap tools : Yes
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
* Show source tree : No (default)
* Use GIT revision hash : Yes

SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: Custom
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-> Prepared: The Maelstrom
-> Prepared: Events
-> Prepared: Pet
SCRIPT PREPARATION COMPLETE

Configuring done

 

I'm running latest Boost/ZMQ libraries (which are provided by tutorial), still getting this error on all Windows machines.

Any help? Please?

 

SORRY!

i'm guess i'm somewhat retarded.... included dll instead of lib

Edited by darki73
Link to comment
Share on other sites

€dit: Seems to be a problem with VS 2013, as MSDN states:

Visual Studio does not support defaulted move constructors or move-assignment operators as the C++11 standard mandates.

 

Freshly pulled latest 6.x source from Git, but compiling with Visual Studio 2013 @ x64 on Windows 10 fails with code errors:

18>C:\TrinityCore\TrinityCore\src\server\game\Entities\Object\ObjectGuid.h(208): error C2610: 'ObjectGuid::ObjectGuid(ObjectGuid &&)' : ist keine spezielle Memberfunktion, für die der Standardwert verwendet werden kann (C:\Programmierung\TrinityCore\TrinityCore\src\server\collision\Management\MMapManager.cpp)
18>C:\TrinityCore\TrinityCore\src\server\game\Entities\Object\ObjectGuid.h(211): error C2610: 'ObjectGuid &ObjectGuid::operator =(ObjectGuid &&)' : ist keine spezielle Memberfunktion, für die der Standardwert verwendet werden kann (C:\Programmierung\TrinityCore\TrinityCore\src\server\collision\Management\MMapManager.cpp)
14>C:\TrinityCore\TrinityCore\src\server\game\Spells\Auras\SpellAuraEffects.h(40): error C2264: 'ObjectGuid::ObjectGuid': Fehler in der Funktionsdefinition oder Funktionsdeklaration, Funktion nicht aufgerufen

14>C:\TrinityCore\TrinityCore\src\server\game\Server\WorldSession.h(806): error C2264: 'ObjectGuid::ObjectGuid': Fehler in der Funktionsdefinition oder Funktionsdeklaration, Funktion nicht aufgerufen
3>  DBUpdater.cpp
14>C:\TrinityCore\TrinityCore\src\server\game\Server\WorldSession.h(808): error C2264: 'ObjectGuid::ObjectGuid': Fehler in der Funktionsdefinition oder Funktionsdeklaration, Funktion nicht aufgerufen
3>  UpdateFetcher.cpp
14>C:\TrinityCore\TrinityCore\src\server\game\Entities\Player\Player.h(1172): error C2610: 'VoidStorageItem::VoidStorageItem(VoidStorageItem &&)' : ist keine spezielle Memberfunktion, für die der Standardwert verwendet werden kann

In english (translated by me, so no guarantee for correctness):

ObjectGuid.h(208) & Objectguid.h(211) & Player.h(1172)'ObjectGuid::ObjectGuid(ObjectGuid &&)' isn't a special member function for which a default value can be used

WorldSession.h(806) & WorldSession.h(808) & SpellAuraEffects.h(40):  'ObjectGuid::ObjectGuid' error in definition or declaration, function not called

Edited by Ceriana
Link to comment
Share on other sites

6.x
I'm running MS Visual Studio 12 2013 update 5, OpenSSL is 64bit too.
Compiler setup:Release, 64bit
How i got my error: Clean ALL_BUILD> Build ALL_BUILD>Build INSTALL(... gave me an error)

Note:In Cmake i have WITH_SOURCE_TREE set to hierarchical.
The error: 

Error	1	error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets	132	5	INSTALL

Log:
 

1>------ Build started: Project: revision_data.h, Configuration: Release x64 ------
2>------ Build started: Project: INSTALL, Configuration: Release x64 ------
2>  -- Install configuration: "Release"
2>  -- Installing: C:/Program Files/TrinityCore/bnetserver.exe
2>  CMake Error at src/server/bnetserver/cmake_install.cmake:50 (file):
2>    file INSTALL cannot copy file "C:/Build/bin/Release/bnetserver.exe" to
2>    "C:/Program Files/TrinityCore/bnetserver.exe".
2>  Call Stack (most recent call first):
2>    src/server/cmake_install.cmake:36 (include)
2>    src/cmake_install.cmake:33 (include)
2>    cmake_install.cmake:33 (include)
2>  
2>  
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1.
========== Build: 1 succeeded, 1 failed, 23 up-to-date, 0 skipped ==========

 

Edited by Armandas
Link to comment
Share on other sites

2>    file INSTALL cannot copy file "C:/Build/bin/Release/bnetserver.exe" to
2>    "C:/Program Files/TrinityCore/bnetserver.exe".

Start VS in Administrator mode. Seems to be a problem with permissions. 

​It did fix the problen, it compiled perfectly now. I gues after installing windows 10 it changed VS run settings to default. Thanks.

Link to comment
Share on other sites

Error    1    error LNK2019: unresolved external symbol EVP_sha1 referenced in function "unsigned int __cdecl TOTP::GenerateToken(char const *)" (?GenerateToken@TOTP@@YAIPEBD@Z)    C:\TCBuild\src\server\authserver\TOTP.obj    authserver
Error    2    error LNK2019: unresolved external symbol HMAC referenced in function "unsigned int __cdecl TOTP::GenerateToken(char const *)" (?GenerateToken@TOTP@@YAIPEBD@Z)    C:\TCBuild\src\server\authserver\TOTP.obj    authserver
Error    3    error LNK2019: unresolved external symbol CRYPTO_free referenced in function "private: bool __cdecl AuthSession::HandleLogonProof(void)" (?HandleLogonProof@AuthSession@@AEAA_NXZ)    C:\TCBuild\src\server\authserver\AuthSession.obj    authserver
Error    4    error LNK2019: unresolved external symbol SSLeay_version referenced in function main    C:\TCBuild\src\server\authserver\Main.obj    authserver
Error    5    error LNK2019: unresolved external symbol BN_CTX_new referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    6    error LNK2019: unresolved external symbol BN_CTX_free referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    7    error LNK2019: unresolved external symbol BN_rand referenced in function "public: void __cdecl BigNumber::SetRand(int)" (?SetRand@BigNumber@@QEAAXH@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    8    error LNK2019: unresolved external symbol BN_num_bits referenced in function "public: int __cdecl BigNumber::GetNumBytes(void)" (?GetNumBytes@BigNumber@@QEAAHXZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    9    error LNK2019: unresolved external symbol BN_new referenced in function "public: __cdecl BigNumber::BigNumber(void)" (??0BigNumber@@QEAA@XZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    10    error LNK2019: unresolved external symbol BN_copy referenced in function "public: class BigNumber & __cdecl BigNumber::operator=(class BigNumber const &)" (??4BigNumber@@QEAAAEAV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    11    error LNK2019: unresolved external symbol BN_bin2bn referenced in function "public: void __cdecl BigNumber::SetBinary(unsigned char const *,int)" (?SetBinary@BigNumber@@QEAAXPEBEH@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    12    error LNK2019: unresolved external symbol BN_bn2bin referenced in function "public: class std::unique_ptr<unsigned char [0],struct std::default_delete<unsigned char [0]> > __cdecl BigNumber::AsByteArray(int,bool)" (?AsByteArray@BigNumber@@QEAA?AV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@H_N@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    13    error LNK2019: unresolved external symbol BN_sub referenced in function "public: class BigNumber __cdecl BigNumber::operator-=(class BigNumber const &)" (??ZBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    14    error LNK2019: unresolved external symbol BN_add referenced in function "public: class BigNumber __cdecl BigNumber::operator+=(class BigNumber const &)" (??YBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    15    error LNK2019: unresolved external symbol BN_mul referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    16    error LNK2019: unresolved external symbol BN_div referenced in function "public: class BigNumber __cdecl BigNumber::operator/=(class BigNumber const &)" (??_0BigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    17    error LNK2019: unresolved external symbol BN_add_word referenced in function "public: void __cdecl BigNumber::SetQword(unsigned __int64)" (?SetQword@BigNumber@@QEAAX_K@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    18    error LNK2019: unresolved external symbol BN_set_word referenced in function "public: __cdecl BigNumber::BigNumber(unsigned int)" (??0BigNumber@@QEAA@I@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    19    error LNK2019: unresolved external symbol BN_get_word referenced in function "public: unsigned int __cdecl BigNumber::AsDword(void)" (?AsDword@BigNumber@@QEAAIXZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    20    error LNK2019: unresolved external symbol BN_free referenced in function "public: __cdecl BigNumber::~BigNumber(void)" (??1BigNumber@@QEAA@XZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    21    error LNK2019: unresolved external symbol BN_lshift referenced in function "public: void __cdecl BigNumber::SetQword(unsigned __int64)" (?SetQword@BigNumber@@QEAAX_K@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    22    error LNK2019: unresolved external symbol BN_exp referenced in function "public: class BigNumber __cdecl BigNumber::Exp(class BigNumber const &)" (?Exp@BigNumber@@QEAA?AV1@AEBV1@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    23    error LNK2019: unresolved external symbol BN_mod_exp referenced in function "public: class BigNumber __cdecl BigNumber::ModExp(class BigNumber const &,class BigNumber const &)" (?ModExp@BigNumber@@QEAA?AV1@AEBV1@0@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    24    error LNK2019: unresolved external symbol BN_dup referenced in function "public: __cdecl BigNumber::BigNumber(class BigNumber const &)" (??0BigNumber@@QEAA@AEBV0@@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    25    error LNK2019: unresolved external symbol BN_bn2hex referenced in function "public: char * __cdecl BigNumber::AsHexStr(void)const " (?AsHexStr@BigNumber@@QEBAPEADXZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    26    error LNK2019: unresolved external symbol BN_bn2dec referenced in function "public: char * __cdecl BigNumber::AsDecStr(void)const " (?AsDecStr@BigNumber@@QEBAPEADXZ)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    27    error LNK2019: unresolved external symbol BN_hex2bn referenced in function "public: void __cdecl BigNumber::SetHexStr(char const *)" (?SetHexStr@BigNumber@@QEAAXPEBD@Z)    C:\TCBuild\src\server\authserver\shared.lib(BigNumber.obj)    authserver
Error    28    error LNK2019: unresolved external symbol SHA1_Init referenced in function "public: __cdecl SHA1Hash::SHA1Hash(void)" (??0SHA1Hash@@QEAA@XZ)    C:\TCBuild\src\server\authserver\shared.lib(SHA1.obj)    authserver
Error    29    error LNK2019: unresolved external symbol SHA1_Update referenced in function "public: void __cdecl SHA1Hash::UpdateData(unsigned char const *,int)" (?UpdateData@SHA1Hash@@QEAAXPEBEH@Z)    C:\TCBuild\src\server\authserver\shared.lib(SHA1.obj)    authserver
Error    30    error LNK2019: unresolved external symbol SHA1_Final referenced in function "public: void __cdecl SHA1Hash::Finalize(void)" (?Finalize@SHA1Hash@@QEAAXXZ)    C:\TCBuild\src\server\authserver\shared.lib(SHA1.obj)    authserver
Error    31    error LNK2019: unresolved external symbol SHA1 referenced in function "private: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl UpdateFetcher::CalculateHash(class std::shared_ptr<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > const &)const " (?CalculateHash@UpdateFetcher@@AEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$shared_ptr@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@3@@Z)    C:\TCBuild\src\server\authserver\database.lib(UpdateFetcher.obj)    authserver
Error    32    error LNK1120: 31 unresolved externals    C:\TCBuild\bin\Debug\authserver.exe    authserver
Error    33    error LNK2019: unresolved external symbol SSLeay_version referenced in function main    C:\TCBuild\src\server\worldserver\Main.obj    worldserver
Error    34    error LNK2019: unresolved external symbol MD5 referenced in function "void __cdecl AddonMgr::LoadFromDB(void)" (?LoadFromDB@AddonMgr@@YAXXZ)    C:\TCBuild\src\server\worldserver\game.lib(AddonMgr.obj)    worldserver
Error    35    error LNK2019: unresolved external symbol SHA1 referenced in function "public: static unsigned int __cdecl Warden::BuildChecksum(unsigned char const *,unsigned int)" (?BuildChecksum@Warden@@SAIPEBEI@Z)    C:\TCBuild\src\server\worldserver\game.lib(Warden.obj)    worldserver
Error    36    error LNK2001: unresolved external symbol SHA1    C:\TCBuild\src\server\worldserver\database.lib(UpdateFetcher.obj)    worldserver
Error    37    error LNK2019: unresolved external symbol MD5_Init referenced in function "public: virtual struct ClientWardenModule * __cdecl WardenWin::GetModuleForClient(void)" (?GetModuleForClient@WardenWin@@UEAAPEAUClientWardenModule@@XZ)    C:\TCBuild\src\server\worldserver\game.lib(WardenWin.obj)    worldserver
Error    38    error LNK2019: unresolved external symbol MD5_Update referenced in function "public: virtual struct ClientWardenModule * __cdecl WardenWin::GetModuleForClient(void)" (?GetModuleForClient@WardenWin@@UEAAPEAUClientWardenModule@@XZ)    C:\TCBuild\src\server\worldserver\game.lib(WardenWin.obj)    worldserver
Error    39    error LNK2019: unresolved external symbol MD5_Final referenced in function "public: virtual struct ClientWardenModule * __cdecl WardenWin::GetModuleForClient(void)" (?GetModuleForClient@WardenWin@@UEAAPEAUClientWardenModule@@XZ)    C:\TCBuild\src\server\worldserver\game.lib(WardenWin.obj)    worldserver
Error    40    error LNK2019: unresolved external symbol CRYPTO_num_locks referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ)    C:\TCBuild\src\server\worldserver\shared.lib(OpenSSLCrypto.obj)    worldserver
Error    41    error LNK2019: unresolved external symbol CRYPTO_set_locking_callback referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ)    C:\TCBuild\src\server\worldserver\shared.lib(OpenSSLCrypto.obj)    worldserver
Error    42    error LNK2019: unresolved external symbol CRYPTO_THREADID_set_numeric referenced in function "void __cdecl threadIdCallback(struct crypto_threadid_st *)" (?threadIdCallback@@YAXPEAUcrypto_threadid_st@@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(OpenSSLCrypto.obj)    worldserver
Error    43    error LNK2019: unresolved external symbol CRYPTO_THREADID_set_callback referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ)    C:\TCBuild\src\server\worldserver\shared.lib(OpenSSLCrypto.obj)    worldserver
Error    44    error LNK2019: unresolved external symbol BN_CTX_new referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    45    error LNK2019: unresolved external symbol BN_CTX_free referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    46    error LNK2019: unresolved external symbol BN_rand referenced in function "public: void __cdecl BigNumber::SetRand(int)" (?SetRand@BigNumber@@QEAAXH@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    47    error LNK2019: unresolved external symbol BN_num_bits referenced in function "public: int __cdecl BigNumber::GetNumBytes(void)" (?GetNumBytes@BigNumber@@QEAAHXZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    48    error LNK2019: unresolved external symbol BN_new referenced in function "public: __cdecl BigNumber::BigNumber(void)" (??0BigNumber@@QEAA@XZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    49    error LNK2019: unresolved external symbol BN_copy referenced in function "public: class BigNumber & __cdecl BigNumber::operator=(class BigNumber const &)" (??4BigNumber@@QEAAAEAV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    50    error LNK2019: unresolved external symbol BN_bin2bn referenced in function "public: void __cdecl BigNumber::SetBinary(unsigned char const *,int)" (?SetBinary@BigNumber@@QEAAXPEBEH@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    51    error LNK2019: unresolved external symbol BN_bn2bin referenced in function "public: class std::unique_ptr<unsigned char [0],struct std::default_delete<unsigned char [0]> > __cdecl BigNumber::AsByteArray(int,bool)" (?AsByteArray@BigNumber@@QEAA?AV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@H_N@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    52    error LNK2019: unresolved external symbol BN_sub referenced in function "public: class BigNumber __cdecl BigNumber::operator-=(class BigNumber const &)" (??ZBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    53    error LNK2019: unresolved external symbol BN_add referenced in function "public: class BigNumber __cdecl BigNumber::operator+=(class BigNumber const &)" (??YBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    54    error LNK2019: unresolved external symbol BN_mul referenced in function "public: class BigNumber __cdecl BigNumber::operator*=(class BigNumber const &)" (??XBigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    55    error LNK2019: unresolved external symbol BN_div referenced in function "public: class BigNumber __cdecl BigNumber::operator/=(class BigNumber const &)" (??_0BigNumber@@QEAA?AV0@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    56    error LNK2019: unresolved external symbol BN_add_word referenced in function "public: void __cdecl BigNumber::SetQword(unsigned __int64)" (?SetQword@BigNumber@@QEAAX_K@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    57    error LNK2019: unresolved external symbol BN_set_word referenced in function "public: __cdecl BigNumber::BigNumber(unsigned int)" (??0BigNumber@@QEAA@I@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    58    error LNK2019: unresolved external symbol BN_get_word referenced in function "public: unsigned int __cdecl BigNumber::AsDword(void)" (?AsDword@BigNumber@@QEAAIXZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    59    error LNK2019: unresolved external symbol BN_free referenced in function "public: __cdecl BigNumber::~BigNumber(void)" (??1BigNumber@@QEAA@XZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    60    error LNK2019: unresolved external symbol BN_lshift referenced in function "public: void __cdecl BigNumber::SetQword(unsigned __int64)" (?SetQword@BigNumber@@QEAAX_K@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    61    error LNK2019: unresolved external symbol BN_exp referenced in function "public: class BigNumber __cdecl BigNumber::Exp(class BigNumber const &)" (?Exp@BigNumber@@QEAA?AV1@AEBV1@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    62    error LNK2019: unresolved external symbol BN_mod_exp referenced in function "public: class BigNumber __cdecl BigNumber::ModExp(class BigNumber const &,class BigNumber const &)" (?ModExp@BigNumber@@QEAA?AV1@AEBV1@0@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    63    error LNK2019: unresolved external symbol BN_dup referenced in function "public: __cdecl BigNumber::BigNumber(class BigNumber const &)" (??0BigNumber@@QEAA@AEBV0@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    64    error LNK2019: unresolved external symbol BN_bn2hex referenced in function "public: char * __cdecl BigNumber::AsHexStr(void)const " (?AsHexStr@BigNumber@@QEBAPEADXZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    65    error LNK2019: unresolved external symbol BN_bn2dec referenced in function "public: char * __cdecl BigNumber::AsDecStr(void)const " (?AsDecStr@BigNumber@@QEBAPEADXZ)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    66    error LNK2019: unresolved external symbol BN_hex2bn referenced in function "public: void __cdecl BigNumber::SetHexStr(char const *)" (?SetHexStr@BigNumber@@QEAAXPEBD@Z)    C:\TCBuild\src\server\worldserver\shared.lib(BigNumber.obj)    worldserver
Error    67    error LNK2019: unresolved external symbol SHA1_Init referenced in function "public: __cdecl SHA1Hash::SHA1Hash(void)" (??0SHA1Hash@@QEAA@XZ)    C:\TCBuild\src\server\worldserver\shared.lib(SHA1.obj)    worldserver
Error    68    error LNK2019: unresolved external symbol SHA1_Update referenced in function "public: void __cdecl SHA1Hash::UpdateData(unsigned char const *,int)" (?UpdateData@SHA1Hash@@QEAAXPEBEH@Z)    C:\TCBuild\src\server\worldserver\shared.lib(SHA1.obj)    worldserver
Error    69    error LNK2019: unresolved external symbol SHA1_Final referenced in function "public: void __cdecl SHA1Hash::Finalize(void)" (?Finalize@SHA1Hash@@QEAAXXZ)    C:\TCBuild\src\server\worldserver\shared.lib(SHA1.obj)    worldserver
Error    70    error LNK2019: unresolved external symbol EVP_EncryptInit_ex referenced in function "public: __cdecl ARC4::ARC4(unsigned char)" (??0ARC4@@QEAA@E@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    71    error LNK2019: unresolved external symbol EVP_EncryptUpdate referenced in function "public: void __cdecl ARC4::UpdateData(int,unsigned char *)" (?UpdateData@ARC4@@QEAAXHPEAE@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    72    error LNK2019: unresolved external symbol EVP_EncryptFinal_ex referenced in function "public: void __cdecl ARC4::UpdateData(int,unsigned char *)" (?UpdateData@ARC4@@QEAAXHPEAE@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    73    error LNK2019: unresolved external symbol EVP_CIPHER_CTX_init referenced in function "public: __cdecl ARC4::ARC4(unsigned char)" (??0ARC4@@QEAA@E@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    74    error LNK2019: unresolved external symbol EVP_CIPHER_CTX_cleanup referenced in function "public: __cdecl ARC4::~ARC4(void)" (??1ARC4@@QEAA@XZ)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    75    error LNK2019: unresolved external symbol EVP_CIPHER_CTX_set_key_length referenced in function "public: __cdecl ARC4::ARC4(unsigned char)" (??0ARC4@@QEAA@E@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    76    error LNK2019: unresolved external symbol EVP_rc4 referenced in function "public: __cdecl ARC4::ARC4(unsigned char)" (??0ARC4@@QEAA@E@Z)    C:\TCBuild\src\server\worldserver\shared.lib(ARC4.obj)    worldserver
Error    77    error LNK2019: unresolved external symbol EVP_sha1 referenced in function "public: __cdecl HmacHash::HmacHash(unsigned int,unsigned char *)" (??0HmacHash@@QEAA@IPEAE@Z)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    78    error LNK2019: unresolved external symbol HMAC_CTX_init referenced in function "public: __cdecl HmacHash::HmacHash(unsigned int,unsigned char *)" (??0HmacHash@@QEAA@IPEAE@Z)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    79    error LNK2019: unresolved external symbol HMAC_CTX_cleanup referenced in function "public: __cdecl HmacHash::~HmacHash(void)" (??1HmacHash@@QEAA@XZ)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    80    error LNK2019: unresolved external symbol HMAC_Init_ex referenced in function "public: __cdecl HmacHash::HmacHash(unsigned int,unsigned char *)" (??0HmacHash@@QEAA@IPEAE@Z)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    81    error LNK2019: unresolved external symbol HMAC_Update referenced in function "public: void __cdecl HmacHash::UpdateData(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?UpdateData@HmacHash@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    82    error LNK2019: unresolved external symbol HMAC_Final referenced in function "public: void __cdecl HmacHash::Finalize(void)" (?Finalize@HmacHash@@QEAAXXZ)    C:\TCBuild\src\server\worldserver\shared.lib(HMACSHA1.obj)    worldserver
Error    83    error LNK1120: 49 unresolved externals    C:\TCBuild\bin\Debug\worldserver.exe    worldserver

 

:( I have followed the guide to the book and done this before. 

Link to comment
Share on other sites

Greetings Folks,

I'm having an issue with a fresh install of Debian.  Trying to build the 3.3.5 branch.

I originally posted a reply to http://community.trinitycore.org/topic/11771-error-to-compile-on-linux-debian-7/ however, I believe this is the proper place for build errors.  It was nice to know that someone else was getting the same error.

  • Debian:     7.8
  • Boost:     1.49.0.1
  • MySQL:     5.5.44
  • OpenSSL: 1.0.1
  • CMake:     2.8.9-1
  • GCC:     4.7.2-1
  • ZLib:     1.2.7

CMake output looks okay from what I can see.

cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/TrinityCore/server -DCONF_DIR=/opt/TrinityCore/server/etc -DLIBSDIR=/opt/TrinityCore/server/lib -DTOOLS=1 -DWITH_WARNINGS=1

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/gcc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- GCC: All warnings enabled
-- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/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
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   program_options
--   iostreams
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed
-- Found Readline library: /usr/lib/x86_64-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
-- Found git binary : /usr/bin/git

* TrinityCore revision   : 30fc4f9f63b7 2015-08-17 23:27:42 +0200 (3.3.5 branch)
* TrinityCore buildtype  : Release

* Install core to        : /opt/TrinityCore/server
* Install libraries to   : /opt/TrinityCore/server/lib
* Install configs to     : /opt/TrinityCore/server/etc

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (default)
* Build map/vmap tools   : Yes
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show all warnings      : Yes
* Use coreside debug     : No  (default)
* Show source tree       : No  (default)
* Use GIT revision hash  : Yes

-- Looking for open
-- Looking for open - found
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- SCRIPT PREPARATIONS
  -> Prepared: Spells
  -> Prepared: Commands
  -> 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: /home/dhr/TrinityCore/build

 

make output:

Scanning dependencies of target common
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Common.cpp.o
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Collision/Maps/TileAssembler.cpp.o
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Collision/Maps/MapTree.cpp.o
In file included from /home/dhr/TrinityCore/src/common/Logging/Log.h:23:0,
                 from /home/dhr/TrinityCore/src/common/Collision/Maps/MapTree.cpp:23:
/home/dhr/TrinityCore/src/common/Logging/Appender.h:129:30: error: ‘std::length_error::length_error’
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/common/CMakeFiles/common.dir/Collision/Maps/MapTree.cpp.o] Error 1
make[1]: *** [src/common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2

 

Thanks very much!

 

---------------------------------------------------------

I've just tried with Debian 8.1 and did not have any issues.  Not sure, but at least it's working.

Edited by dhr
Found Workaround
Link to comment
Share on other sites

^ I got the same error earlier. Restarted clean and then this is what i got.

 

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Quat.cpp.o
In file included from /home/wow/TrinityCore/src/common/Logging/Log.h:23:0,
                 from /home/wow/TrinityCore/src/server/database/Database/Field.h:22,
                 from /home/wow/TrinityCore/src/server/database/Database/QueryResult.h:23,
                 from /home/wow/TrinityCore/src/server/database/Database/SQLOperation.h:21,
                 from /home/wow/TrinityCore/src/server/database/Database/AdhocStatement.h:22,
                 from /home/wow/TrinityCore/src/server/database/PrecompiledHeaders/databasePCH.h:2,
                 from /home/wow/TrinityCore/src/server/database/PrecompiledHeaders/databasePCH.cpp:1:
/home/wow/TrinityCore/src/common/Logging/Appender.h:129:30: error: âstd::length_error::length_errorâ names constructor
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/server/database/CMakeFiles/databasePCH.cpp_dephelp.dir/PrecompiledHeaders/databasePCH.cpp.o] Error 1
make[1]: *** [src/server/database/CMakeFiles/databasePCH.cpp_dephelp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Random.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Ray.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/RegistryUtil.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Sphere.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/stringutils.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/System.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextInput.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextOutput.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Triangle.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/uint128.cpp.o
[  9%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/UprightFrame.cpp.o
[ 10%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector2.cpp.o
[ 10%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector3.cpp.o
[ 10%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector4.cpp.o
Linking CXX static library libg3dlib.a
[ 10%] Built target g3dlib
make: *** [all] Error 2

 

Edited by tuko
Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...