Jump to content
TrinityCore

Oroduin

Members
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Oroduin

  1. -- The CXX compiler identification is GNU 4.7.3
     

     

     

    and same errors with gcc473 :/

     

     

    /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp: In function 'void threadIdCallback(CRYPTO_THREADID*)':
    /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36:55: error: invalid conversion from 'ACE_thread_t {aka _opaque_pthread_t*}' to 'long unsigned int' [-fpermissive]
    In file included from /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:19:0:
    /Applications/gcc44/openssl/x86_64/include/openssl/crypto.h:435:6: error:   initializing argument 2 of 'void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID*, long unsigned int)' [-fpermissive]
    make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....

     

     

  2. :D

     

    Of course, I've also done so:

     

     

    cmake ../ -DPREFIX="/trinityserver" -DTOOLS=1 -DSERVERS=1 -DSCRIPTS=1 -DWITHOUT_GIT=0 -DACE_LIBRARY="/trinityserver/lib/libACE.dylib" -DACE_INCLUDE_DIR="/Applications/gcc44/ace/include" -DREADLINE_LIBRARY="/trinityserver/lib/libreadline.6.2.dylib" -DREADLINE_INCLUDE_DIR="/Applications/gcc44/readline/include" -DMYSQL_CONFIG="/trinityserver/mysql/bin/mysql_config" -DWITH_WARNINGS=0 -DWITH_COREDEBUG=0 -DCMAKE_C_COMPILER="/Applications/gcc44/gcc/bin/gcc" -DCMAKE_CXX_COMPILER="/Applications/gcc44/gcc/bin/c++" -DUSE_SCRIPTPCH=0 -DUSE_COREPCH=0 -DOPENSSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib" -DOPENSSL_CRYPTO_LIBRARIES="/trinityserver/lib/libcrypto.1.0.0.dylib" -DOPENSSL_SSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib" -DOPENSSL_INCLUDE_DIR="/Applications/gcc44/openssl/x86_64/include" -DOPENSSL_ROOT_DIR="/Applications/gcc44/openssl/x86_64/bin"
     

     

     

  3. i allready use: 

     

     

    -DOPENSSL_CRYPTO_LIBRARIES="/trinityserver/lib/libcrypto.1.0.0.dylib"
    -DOPENSSL_SSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib"
    -DOPENSSL_INCLUDE_DIR="/Applications/gcc44/openssl/x86_64/include"
    -DOPENSSL_ROOT_DIR="/Applications/gcc44/openssl/x86_64"

     

     

     
    /Applications/gcc44/openssl is prefix folder of my compiled openssl
    i copied the libs to /trinityserver/lib/ too
     
    but like i said it also fails with all other openssl 1.0.x binaries (macports, home-brew fink etc)
     
    building openssl on osx (you can't do it wrong)
     
    #!/bin/bash
    OPENSSL_VERSION="1.0.0e"
     rm -d -f -r openssl-$OPENSSL_VERSION.tar.gz
    curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
    tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
    cd openssl-1.0.0e/
    ./Configure darwin64-x86_64-cc -shared --prefix=/Applications/gcc44/openssl
    make -j $(sysctl -n hw.ncpu)
    make install

     

     

     
  4. Ok .. i have read all the threads in this forum and i know the FAQs..

     

    - I know how to build TrinityCore on OSX

    - I compiled OpenSSL 1.0.1e from http://www.openssl.org

    - I use GCC4.4.7

     

    cmake returns:

     

     

    -- Found OpenSSL library: /trinityserver/lib/libssl.1.0.0.dylib;/trinityserver/lib/libcrypto.1.0.0.dylib
    -- Found OpenSSL headers: /Applications/gcc44/openssl/x86_64/include

     

     

     
    All fine.. but i alwas get this error (on all my macs with OSX 10.6-10.8 on both builds m32 and m64) :
     
    [  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Line.cpp.o
    /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp: In function 'void threadIdCallback(CRYPTO_THREADID*)':
    /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36: error: invalid conversion from '_opaque_pthread_t*' to 'long unsigned int'
    /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36: error:   initializing argument 2 of 'void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID*, long unsigned int)'
    make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    [  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/LineSegment.cpp.o

     

     

     

    i also tried macports and home-brews openssl .. nothing is working

     

    Any other mac users here know to fix it??

×
×
  • Create New...