Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

I now get this issue. The first time, that I got this error, I re-placed the libeay32.dll w/ the one in the openssl folder. But, I get this. I have re-installed openssl 3-4 times. Any other suggestions?

Error    1    error LNK1107: invalid or corrupt file: cannot read at 0x2B8    D:filenameCMake 2.8binlibeay32.dll    1    1    libmysql
Error    2    error LNK1107: invalid or corrupt file: cannot read at 0x2B8    D:filenameCMake 2.8binlibeay32.dll    1    1    authserver
Error    3    error LNK1107: invalid or corrupt file: cannot read at 0x2B8    D:filenameCMake 2.8binlibeay32.dll    1    1    worldserver

Edited by lacker109
Link to comment
Share on other sites

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Edited by borg0tech
Link to comment
Share on other sites

What does it meens "major" ..?? .. i patched (G3D FreeBSD patch) FileSystem.cpp:

#   define O_LARGEFILE      0100000
#   define stat64 stat

i'm not so noob .. i used FreeBSD  when your repo was for BC also for WOTLK and i 'm using now FreeBSD but things goes "on wrong way" compliling on FreeBSD  starting with OPENSSL  updates  maded on core. Default OPENSSL version on FreeBSD 9.2  was 0.9.8 but the core need  >1.0 i fixed the problem and the core compiled well. Now with FreeBSD 10 things are changed. Default compiler is CLANG and not GCC . The core doesnt suport CLANG compiler ?

I'm sorry that I have bothered with such questions.

 

Best Regards

Edited by borg0tech
Link to comment
Share on other sites

The Express versions, as I understand it, tend to have trouble with compiling in 64-bit. CMake may have detected your system as 64-bit and set the project to compile accordingly.  I know I didn't have to specify 64-bit compile for my Linux install, anyway. When you load up the sln file, I believe there should be a Win32 or Win64 showing next to the build mode (defaults to Release). If it's on Win64, try rebuilding as Win32 and see if that works better for you. If it's already Win32, someone else may need to step in.

 

I stuck with 32-bit Windows for the most part on my server system (the board has a max RAM of only 3GB, but has a 64-bit processor...go figure). It's a rather old board (Socket 754) with an Athlon 64 3200+ in it. Due to the age of my server system, I find Linux to be a better choice. It's certainly running faster in Linux than it did on Windows (used XP and Vista on it). If you're using a spare system for your server, you may want to consider switching over. You wouldn't necessarily need to disable X Windows like I did, but I'm just as comfortable with a command line as I am with a GUI.

Link to comment
Share on other sites

express won't do 64 bit without downloading and installing extra components. The better idea for now is to make sure you have 32 bit everything (the mysql server can be 64 bit, as long as you have the sources for the client (.dll) in 32 bit...)

Link to comment
Share on other sites

so there isnt any chance to fix compilation under FreeBSD 10 ? nobody from Dev's cant fix or add modification to core. Many of old members use FreeBSD, its a stable secured and "loved" Unix OS. I know that not many of them upgrade to 10.0 but any thing has a "start" dont you think ?

 

Best Regards

Link to comment
Share on other sites

When I try to start TrinityCore on my root server, the command prompt pops up for a few milliseconds and then immediately closes down without any kind of error. Apprently it also doesn't create any sort of logfile and I have no clue what's actually going on. Strangely enough, it works on my local machine just fine.

 

Specs (local):

Windows 8.1 Pro 64 Bit w/ Intel i5 & 4GB RAM

Specs (root):

Windows Server 2008 R2 w/ Intel Xeon &16 GB RA

 

Patch level is 4.3.4.

Edited by Snick0rz
Link to comment
Share on other sites

Why is the compiler looking for libeay32.dll in your CMake folder?

 


D:filenameCMake 2.8binlibeay32.dll

 

Run CMake and check the "Advanced" option. Look for the following variables in the "Name" column:

 

OPENSSL_INCLUDE_DIR

OPENSSL_ROOT_DIR

 

If the "value" column shows that strange CMake path, edit it to point to where you installed OpenSSL. For example:

 

C:/Program Files (x86)/OpenSSL-Win32/include

C:/Programs Files (x86)/OpenSSL-Win32/

Link to comment
Share on other sites

The problem is that if I run the world/authserver.exe via command prompt, it does absolutely NOTHING at all. If I launch it via the icon, the prompt pops up and still just disappears without any error or log.

 

Does anyone know how to solve this problem?

 

What the hell does the error log say?

Link to comment
Share on other sites

Look at the image , It does not create a log file. it just does nothing.

 

Even with bad mysql credentials a log is generated.

 

What OpenSSL do you have running?

Are you able to connect with worldserver?

What MySQL are you running?

Is something broke in your .conf file?

Link to comment
Share on other sites


What OpenSSL do you have running?
What MySQL are you running?

 

OpenSSL: 1.0.1f

MySQL: 5.5.27
 

The worldserver doesn't start, as shown on the screenshot.

 

The same conf file and the database work just fine on local.

 

 

run servers from cmd you will see the error.

 

Doesn't do anything, as shown by the screenshot I posted earlier.

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...