Jump to content
  • 0

Problem compiling MaNGOS Mac OS make error but why


Guest Chutulu_

Question

Hi one problem solved now another one

Libraries have been installed in:
  /Users/laurentlutgen/mangos/bin/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
  - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
    during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in SSL
Making install in bin
Making install in .
Making install in PerlACE
[ 27%] Completed 'ACE_Project'
[ 27%] Built target ACE_Project
make: *** [all] Error 2
minimac:build laurentlutgen$ 

Why did make stop? error2?

Found this somewhere before the make error 2:

Linking CXX shared library storm.framework/Versions/8.20.0/storm
clang: error: unsupported option '--noarnings'
make[2]: *** [dep/StormLib/storm.framework/Versions/8.20.0/storm] Error 1
make[1]: *** [dep/StormLib/CMakeFiles/storm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
config.status: executing libtool commands
config.status: executing default commands

Configuration of ACE 5.8.3 is now complete.

[ 27%] Performing build step for 'ACE_Project'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
/usr/local/bin/mangos/server/dep/ACE_wrappers/aux_config/missing: line 52: aclocal-1.11: command not found
WARNING: `aclocal-1.11' is missing on your system.  You should only need it if
        you modified `acinclude.m4' or `configure.ac'.  You might want
        to install the `Automake' and `Perl' packages.  Grab them from
        any GNU archive site.
cd /usr/local/bin/mangos/server/dep/ACE_wrappers && /bin/sh /usr/local/bin/mangos/server/dep/ACE_wrappers/aux_config/missing --run automake-1.11 --foreign
/usr/local/bin/mangos/server/dep/ACE_wrappers/aux_config/missing: line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system.  You should only need it if
        you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
        You might want to install the `Automake' and `Perl' packages.
        Grab them from any GNU archive site.
aclocal.m4:20: warning: this file was generated for autoconf 2.65.
You have another version of autoconf.  It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
configure.ac:385: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2670: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2680: AC_LINK_IFELSE is expanded from...

There is one thing I find a bit strange. I have used Macport to install ace (vers. 6.1.5)

But make speaks of "Configuration of ACE 5.8.3 is now complete."?

Any ideas?

Thx Chutulu

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

if you want to use ACE from macports, tell cmake about it:

cmake .. -DPREFIX=/path/to/wherever -DACE_USE_EXTERNAL=1

However, the macports version of ACE is probably configured wrong for OSX, so you'll just end up with compile errors in mangos.

Thus I recommend not using external ACE on OSX.

I fixed the issue a while back... you'll have to read up on how to:

  • add a remote to your local git repository
  • fetch code from a remote other than origin
  • cherry-pick a commit (you'll want c542d0028445c55ccfcd6b82e69842d86c4c20bb - this commit fixes ACE and other OSX issues)

As you noticed, ACE requires that you install automake (and any other missing pieces of their build toolchain)

Just use macports or homebrew to get these (I prefer homebrew)

Link to comment
Share on other sites

Hm sounds already more complicated.

I have found an step-by-step solution how to compile ace on mac in the trinity forum. I'll try that later.

I used hombrew to install the required packages mentioned in the linux install guide. Unfortunately there is no formula for ACE.

So I had to use macports.

Automake is version 1.12.4 and autoconf 2.69.

So both are newer than what make awaits?

I have tried to compile by adding the path to ace but make fails now at 6% instead of 26%(without path).

And still this "Configuration of ACE 5.8.3 is now complete."

I thought by using "-DPREFIX=/path/to/wherever -DACE_USE_EXTERNAL=1" this would change?

Trying later

I fixed the issue a while back... you'll have to read up on how to:

add a remote to your local git repository

fetch code from a remote other than origin

cherry-pick a commit (you'll want c542d0028445c55ccfcd6b82e69842d86c4c20bb - this commit fixes ACE and other OSX issues)

If everthing else fails.

At least Mangos compiled under Mint so I have at least a little progress

Thx

Chutulu

Link to comment
Share on other sites

I fixed the issue a while back... you'll have to read up on how to:

add a remote to your local git repository

fetch code from a remote other than origin

cherry-pick a commit (you'll want c542d0028445c55ccfcd6b82e69842d86c4c20bb - this commit fixes ACE and other OSX issues)

where do I get this ace version from because everything else failed

Again looking in homebrew to find ace and now it is there? Either I am blind or stupid or both together.

Trying to compile something doesn't seem to be good for my mental sanity :)

Thx

Chutulu

Link to comment
Share on other sites

So with the brewed ace make compiles but now there are 2 other problems:

[ 24%] Building C object dep/StormLib/CMakeFiles/storm.dir/src/libtommath/bn_s_mp_sub.c.o
Linking CXX shared library storm.framework/Versions/8.20.0/storm
clang: error: unsupported option '--noarnings'
make[2]: *** [dep/StormLib/storm.framework/Versions/8.20.0/storm] Error 1
make[1]: *** [dep/StormLib/CMakeFiles/storm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/CoordinateFrame.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Cylinder.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Line.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/LineSegment.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Log.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Matrix4.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/MemoryManager.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Quat.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Random.cpp.o
[ 25%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Ray.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/ReferenceCount.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/RegistryUtil.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Sphere.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/TextInput.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/TextOutput.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/UprightFrame.cpp.o
[ 26%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Vector2.cpp.o
Linking CXX static library libg3dlite.a
/usr/bin/ranlib: file: libg3dlite.a(RegistryUtil.cpp.o) has no symbols
/usr/bin/ranlib: file: libg3dlite.a(RegistryUtil.cpp.o) has no symbols
[ 26%] Built target g3dlite
make: *** [all] Error 2

The g3dlite error has been solved by someone else with this

Problem solved by adding

#include <unistd.h>

into server/dep/imculde/g3lite/G3D/GMutex.h

Not sure if it was the same error this guy had http://getmangos.eu/bb/topic/586/solved-make-compile-error/

I have added this to the file but then make fails with

Linking CXX static library libg3dlite.a
/usr/bin/ranlib: file: libg3dlite.a(RegistryUtil.cpp.o) has no symbols
/usr/bin/ranlib: file: libg3dlite.a(RegistryUtil.cpp.o) has no symbols
[  5%] Built target g3dlite
make: *** [all] Error 2

So now I am completely lost.

Thx

Chutulu

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use