Jump to content
TrinityCore

Recommended Posts

It's a good thing you added '[TrinityCore]' in front of the topic title, who had imagined.. A topic about TC!

 

With all the questions about repacks it's good to know before page 2 that this isn't one of them.

 

That said, the OP probably should've titled the thread:

 

[TrinityCore][Didn't Search] Compiling Trinity Core 3.3.5 - CMake Error

 

and saved us even more time.

  • Upvote 2
Link to comment
Share on other sites

Hello there..

 

First of all, i have already read FAQ and didn't found solve to my problem.

 

I'm trying to run TrinityCore server on Ubuntu 13.04 - installed in VMWare. Ubuntu is on it newest version (already updated and upgraded).

 

I'm following this guide

http://collab.kpsn.org/display/tc/How-to_Linux

and now, I'm stucked on "Building the core".

 

 

When I'm start this command "make -j 2" (-j 2 because i set one procesor with two cores to this virtual machine), i'll get this error:

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Utilities/Util.cpp.o] Error 1
make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 30%] Built target game
make: *** [all] Error 2

(full print is here: http://pastebin.com/vR0uWLuq)

 

Could you help me please? I know, that one of theese problems are about SSE2 missing, but my procesor can do SSE2.

Intel(R) Core(TM) i3 CPU       M 380  @ 2.53GHz
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt hypervisor lahf_lm arat dtherm

Thank you!

Link to comment
Share on other sites

Hello Aokromes,

 

thank you, that solution works! Already passed that "make" and "make install" part. Tonight, i'll try start server. 

 

Edit:

 

Ok, now I have 3 DB (auth, world, characters). Auth server is available to start and when I run my cata client (4.3.4) I'm free to log in to realm select table).

 

But having problems with starting "worldserver". Here is the print http://pastebin.com/nPJcarjy

Edited by bibtnj
Link to comment
Share on other sites

Today i was going to compile a new Trinity Core and i followed Jeutie's Guide on Tutorials for Trinity ( Forum ).

 

 

Look at this. Now, see this particular part:

 

i followed Jeutie's Guide on Tutorials for Trinity ( Forum ).

 

 

Now tell me why you see help on our system by following a guide of a third person on a third forum if we have a properly, solid guide on this page that would easily cover it ? Then again, Paradox also gave sort of a hint.

 

 

 

Sounds like another post, to which mrsmite suggested it might be a problem with installing VS 2010 and then installing VS 2012... or something.

 

If it covers it ? We don't know. Seems you are one of the only ones having it.

Link to comment
Share on other sites

  • 2 weeks later...

This is not a problem of OpenSSL. Is it that hard to interpret what your compiler tells you? It is an Apple / ACE problem. The given variable is a simple long on Windoof and Linux iirc. But in Mac it's a struct. You'll get the same problem when building TC with tools as the mmap tools uses ACE threads.

 

And before I forget: Why are you using GCC? I entered "Mac World" in Januar 2013. All I had to do was building ACE and readline on my own. There is a package for cmake and Apples ancient OpenSSL was supported by TC at this time. The only problem I had was a typedef redefinition in DetourNavMesh.h which I solved with renaming the new type name. And this worked for several months. But all worked fine with clang.

 

After some months without TC I tried to build it again still on Mountain Lion and I got the problem you're describing here. I searched for the commit which introduced it and as it (the commit) is just fixing crashes I never had I commented those lines. Oh, I forgot, I built OpenSSL 1.0.1e to get it running and defining OPENSSL_LIBRARIES does not work as this variable is overwritten by a composition of OPENSSL_SSL_LIBRARIES and OPENSSL_CRYPTO_LIBRARIES so I had to define those instead.

 

At the moment I'm having a linker error during build, which occurs since I'm running Mavericks.

Link to comment
Share on other sites

jtth, you probably mean this:

diff --git a/src/server/shared/Cryptography/OpenSSLCrypto.cpp b/src/server/shared/Cryptography/OpenSSLCrypto.cpp
index 417be81..e3fc28d 100644
--- a/src/server/shared/Cryptography/OpenSSLCrypto.cpp
+++ b/src/server/shared/Cryptography/OpenSSLCrypto.cpp
@@ -25,35 +25,35 @@ std::vector<ACE_Thread_Mutex*> cryptoLocks;
 
 static void lockingCallback(int mode, int type, const char* /*file*/, int /*line*/)
 {
-    if (mode & CRYPTO_LOCK)
-        cryptoLocks[type]->acquire();
-    else
-        cryptoLocks[type]->release();
+//    if (mode & CRYPTO_LOCK)
+//        cryptoLocks[type]->acquire();
+//    else
+//        cryptoLocks[type]->release();
 }
 
 static void threadIdCallback(CRYPTO_THREADID * id)
 {
-    CRYPTO_THREADID_set_numeric(id, ACE_Thread::self());
+//    CRYPTO_THREADID_set_numeric(id, ACE_Thread::self());
 }
 
 void OpenSSLCrypto::threadsSetup()
 {
-    cryptoLocks.resize(CRYPTO_num_locks());
-    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
-    {
-        cryptoLocks[i] = new ACE_Thread_Mutex();
-    }
-    CRYPTO_THREADID_set_callback(threadIdCallback);
-    CRYPTO_set_locking_callback(lockingCallback);
+//    cryptoLocks.resize(CRYPTO_num_locks());
+//    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
+//    {
+//        cryptoLocks[i] = new ACE_Thread_Mutex();
+//    }
+//    CRYPTO_THREADID_set_callback(threadIdCallback);
+//    CRYPTO_set_locking_callback(lockingCallback);
 }
 
 void OpenSSLCrypto::threadsCleanup()
 {
-    CRYPTO_set_locking_callback(NULL);
-    CRYPTO_THREADID_set_callback(NULL);
-    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
-    {
-        delete cryptoLocks[i];
-    }
-    cryptoLocks.resize(0);
-}
 No newline at end of file
+//    CRYPTO_set_locking_callback(NULL);
+//    CRYPTO_THREADID_set_callback(NULL);
+//    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
+//    {
+//        delete cryptoLocks[i];
+//    }
+//    cryptoLocks.resize(0);
+}

This makes it compiling if tools are deactivated. Otherwise you have to "remove" a log output in MapBuilder.cpp:

diff --git a/src/tools/mmaps_generator/MapBuilder.cpp b/src/tools/mmaps_generator/MapBuilder.cpp
index 9c2dda5..9872cf3 100644
--- a/src/tools/mmaps_generator/MapBuilder.cpp
+++ b/src/tools/mmaps_generator/MapBuilder.cpp
@@ -340,7 +340,7 @@ namespace MMAP
     /**************************************************************************/
     void MapBuilder::buildMap(uint32 mapID)
     {
-        printf("[Thread %u] Building map %03u:n", uint32(ACE_Thread::self()), mapID);
+        //printf("[Thread %u] Building map %03u:n", uint32(ACE_Thread::self()), mapID);
 
         std::set<uint32>* tiles = getTileList(mapID);

I got it working under Mountain Lion. But it broke again under Mavericks... as I already told :D

Link to comment
Share on other sites

jtth, you probably mean this:

diff --git a/src/server/shared/Cryptography/OpenSSLCrypto.cpp b/src/server/shared/Cryptography/OpenSSLCrypto.cpp
index 417be81..e3fc28d 100644
--- a/src/server/shared/Cryptography/OpenSSLCrypto.cpp
+++ b/src/server/shared/Cryptography/OpenSSLCrypto.cpp
@@ -25,35 +25,35 @@ std::vector<ACE_Thread_Mutex*> cryptoLocks;
 
 static void lockingCallback(int mode, int type, const char* /*file*/, int /*line*/)
 {
-    if (mode & CRYPTO_LOCK)
-        cryptoLocks[type]->acquire();
-    else
-        cryptoLocks[type]->release();
+//    if (mode & CRYPTO_LOCK)
+//        cryptoLocks[type]->acquire();
+//    else
+//        cryptoLocks[type]->release();
 }
 
 static void threadIdCallback(CRYPTO_THREADID * id)
 {
-    CRYPTO_THREADID_set_numeric(id, ACE_Thread::self());
+//    CRYPTO_THREADID_set_numeric(id, ACE_Thread::self());
 }
 
 void OpenSSLCrypto::threadsSetup()
 {
-    cryptoLocks.resize(CRYPTO_num_locks());
-    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
-    {
-        cryptoLocks[i] = new ACE_Thread_Mutex();
-    }
-    CRYPTO_THREADID_set_callback(threadIdCallback);
-    CRYPTO_set_locking_callback(lockingCallback);
+//    cryptoLocks.resize(CRYPTO_num_locks());
+//    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
+//    {
+//        cryptoLocks[i] = new ACE_Thread_Mutex();
+//    }
+//    CRYPTO_THREADID_set_callback(threadIdCallback);
+//    CRYPTO_set_locking_callback(lockingCallback);
 }
 
 void OpenSSLCrypto::threadsCleanup()
 {
-    CRYPTO_set_locking_callback(NULL);
-    CRYPTO_THREADID_set_callback(NULL);
-    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
-    {
-        delete cryptoLocks[i];
-    }
-    cryptoLocks.resize(0);
-}
 No newline at end of file
+//    CRYPTO_set_locking_callback(NULL);
+//    CRYPTO_THREADID_set_callback(NULL);
+//    for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
+//    {
+//        delete cryptoLocks[i];
+//    }
+//    cryptoLocks.resize(0);
+}

This makes it compiling if tools are deactivated. Otherwise you have to "remove" a log output in MapBuilder.cpp:

diff --git a/src/tools/mmaps_generator/MapBuilder.cpp b/src/tools/mmaps_generator/MapBuilder.cpp
index 9c2dda5..9872cf3 100644
--- a/src/tools/mmaps_generator/MapBuilder.cpp
+++ b/src/tools/mmaps_generator/MapBuilder.cpp
@@ -340,7 +340,7 @@ namespace MMAP
     /**************************************************************************/
     void MapBuilder::buildMap(uint32 mapID)
     {
-        printf("[Thread %u] Building map %03u:n", uint32(ACE_Thread::self()), mapID);
+        //printf("[Thread %u] Building map %03u:n", uint32(ACE_Thread::self()), mapID);
 
         std::set<uint32>* tiles = getTileList(mapID);

I got it working under Mountain Lion. But it broke again under Mavericks... as I already told :D

Why yes, you are correct! If you compile w/ dtools=0 it should work. Trying now with dtools at 1. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


  • Similar Content

    • By xgamerninjax
      Hello all, first time posting here and it's really got me scratching my head.
      I've compiled everything on my own computer, and then transferred everything to a host computer so the server can stay live. The server was running fine for a month or so and then suddenly it just crashes when it hits "Loading C++ scripts", exiting saying "caught signal 22"
      I tried setting up the host computer from scratch and transferred everything over fresh and it's still happening for some reason. (Note, I can run the server perfectly on my personal pc where I compiled it.)
      Any help would be greatly appreciated, thanks!
      3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].dmp 3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].txt
    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
×
×
  • Create New...