Jump to content

Recommended Posts

Posted

welcome to the forums willemavjc, as you know I do not have OSX. I'm wondering though is /usr/local/mysql/bin/ part of your enviroment PATH variable

echo $PATH

I'm wondering if autoconf is not getting the mysql libs/include paths because it cannot find the mysql_config binary, I'm only thinking this because you executed the command with its full path, where as on my system its located in /usr/local/bin/ which is part of my PATH variable

-Edit-

If /usr/local/mysql/bin/ is not in your PATH variable execute

export PATH=$PATH":/usr/local/mysql/bin/"

and then try compiling, and let us know of your results

I know some OSX users when they compile mysql they drop the mysql prefix which installs it in /usr/local/ instead of /usr/local/mysql

-Edit-

check out the OSX install guide at step 5. Preparing MySQL it clearly stated to do what i just said above, only to store the variable in your ~/.bash_profile file (that way you'll never have to set the PATH var again)

(I never looked at that guide until 5 minutes ago, sorry everyone for posting info that already existed)

Posted

hey willemavjc, maybe post this new question in Installation, Configuration & Upgrades

I hate to have to throw you around, but this new issue is not related to topic of this thread (as far as I can tell) and unfortunately this seems more like a OSX issue and not a MaNGOS bug and I am not familiar with how OSX does things at the filesystem hierarchy level. Hopefully a OSX user will see it there and have more insight than myself

Also provide a little more info about how you are compiling please. not sure how much of this info is needed or not, but probably best to cover all our bases

configure/compile options

location of your mangos source

does the destination already exist

  • 40 years later...
Posted

Hey there~~

I propose this thread as a Mac OS X Newspaper for OSX compilation issues.

Here is the architecture I am relying on:

o Mac OS X 10.6.4

o XCode 3.2.2 from the Mac OS X install DVD

o Built-in libraries such OpenSSL

o MySQL 5.1.48 (64 bits) from mysql.com

Here are the issues faced during compilations:

o LD??? (not resolved, fatal)

o isnan( ) function (resolved since rev 10176)

o MySQL (not resolved, workaround)

o GD3Lite (resolved since rev 10150)

o OpenSSL (resolved since rev 10138)

About LD:

No clue, I do not understand a bit of the error... (see post #4 for the error)

About isnan( ):

Nothing to be said, compiles fine since rev 10176.

About MySQL:

1. Regarding the linking/library/architecture issue: Mac OS X natively compiles in 64 bits so that MySQL should preferably be compiled/installed in 64 bits. Either you compile mangos in 32 bits with specific flags (that I do not know) and you can use a 32 bits MySQL version ...or you compile mangos the default way but that supposes to get the 64 bits version of MySQL.

2. Regarding the [unrecognized] mysql functions issue: /usr/local/mysql (which is where MySQL is installed by default on OS X) is neither part of the PATH nor a default searching directory of the configure script. A workaround is to add /usr/local/mysql/bin to the PATH via the command: "export PATH=$PATH:/usr/local/mysql/bin". The most elegant way would still remain to have some --with-mysql-dir=/usr/local/mysql flag but I do not know how to code that.

About GD3Lite:

Nothing to be said, compiles fine since rev 10150.

About OpenSSL:

Nothing to be said, compiles fine since rev 10138. Be sure to add -lssl to the LIBS variable: ../configure --prefix=/mangos/install/path LIBS="-lssl -lcrypto"

Posted

Thanks antiroot.

/usr/local/mysql/bin/ is not part of my PATH:

RA:build willem$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

I never looked at that guide until 5 minutes ago, sorry everyone for posting info that already existed

Nor than I did. I used the Wiki's guide for installation ( http://getmangos.eu/wiki/Compile_MaNGOS_On_Mac_OS_X ). Since MySQL was installed by the automatic package installation we have on Mac OS X, I effectively did not run any command lines regarding MySQL.

I'll be trying the symlinks then first. But isn't there a --option available regarding the Mangos' configure? :o

EDIT:

The symlinks simply did nothing. Exporting /usr/local/mysql/bin to the PATH did the trick. I am know trying to understand how to integrate a flag within the configure to get an option to specify a "non standard" MySQL directory.

I got another fatal error: link library impossible, problem of architecture. Following the Apple's debug message, I solved this installing the 64 bits version of MySQL. I did not know that I was natively compiling in arch64 and had to to specify explicitly when arch32 is preferred.

Posted

Compiling fails now with the following error:


In file included from ../../../src/mangosd/Master.cpp:37:
../../../src/mangosd/../game/ScriptCalls.h:39: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:40: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:41: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:43: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:44: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:45: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:46: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:47: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:48: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:49: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:50: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:51: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:52: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:53: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:54: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:55: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:56: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:57: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:58: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:59: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:60: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:61: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:62: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:63: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:64: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:65: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:66: warning: ‘longcall’ attribute directive ignored
../../../src/mangosd/../game/ScriptCalls.h:67: warning: ‘longcall’ attribute directive ignored
mv -f .deps/CliRunnable.Tpo .deps/CliRunnable.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../../src/mangosd  -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers  -I/usr/local/mysql/include -I/usr/include -I../../src/shared -I../../../src/mangosd/../../dep/include -I../../../src/mangosd/../../dep/include/gsoap -I../../../src/mangosd/../framework -I../../../src/mangosd/../shared  -I../../../src/mangosd/../game -I../../../src/mangosd -DSYSCONFDIR=\\"/Volumes/HDD2/Games/Mangos/core/etc/\\"   -DDO_MYSQL -g -O2 -MT RASocket.o -MD -MP -MF .deps/RASocket.Tpo -c -o RASocket.o ../../../src/mangosd/RASocket.cpp
mv -f .deps/Master.Tpo .deps/Master.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../../src/mangosd  -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers  -I/usr/local/mysql/include -I/usr/include -I../../src/shared -I../../../src/mangosd/../../dep/include -I../../../src/mangosd/../../dep/include/gsoap -I../../../src/mangosd/../framework -I../../../src/mangosd/../shared  -I../../../src/mangosd/../game -I../../../src/mangosd -DSYSCONFDIR=\\"/Volumes/HDD2/Games/Mangos/core/etc/\\"   -DDO_MYSQL -g -O2 -MT MaNGOSsoap.o -MD -MP -MF .deps/MaNGOSsoap.Tpo -c -o MaNGOSsoap.o ../../../src/mangosd/MaNGOSsoap.cpp
../../../src/mangosd/RASocket.cpp: In member function ‘virtual int RASocket::handle_input(ACE_HANDLE)’:
../../../src/mangosd/RASocket.cpp:160: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’
mv -f .deps/MaNGOSsoap.Tpo .deps/MaNGOSsoap.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../../src/mangosd  -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers  -I/usr/local/mysql/include -I/usr/include -I../../src/shared -I../../../src/mangosd/../../dep/include -I../../../src/mangosd/../../dep/include/gsoap -I../../../src/mangosd/../framework -I../../../src/mangosd/../shared  -I../../../src/mangosd/../game -I../../../src/mangosd -DSYSCONFDIR=\\"/Volumes/HDD2/Games/Mangos/core/etc/\\"   -DDO_MYSQL -g -O2 -MT WorldRunnable.o -MD -MP -MF .deps/WorldRunnable.Tpo -c -o WorldRunnable.o ../../../src/mangosd/WorldRunnable.cpp
mv -f .deps/WorldRunnable.Tpo .deps/WorldRunnable.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../../src/mangosd  -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers  -I/usr/local/mysql/include -I/usr/include -I../../src/shared -I../../../src/mangosd/../../dep/include -I../../../src/mangosd/../../dep/include/gsoap -I../../../src/mangosd/../framework -I../../../src/mangosd/../shared  -I../../../src/mangosd/../game -I../../../src/mangosd -DSYSCONFDIR=\\"/Volumes/HDD2/Games/Mangos/core/etc/\\"   -DDO_MYSQL -g -O2 -MT soapC.o -MD -MP -MF .deps/soapC.Tpo -c -o soapC.o ../../../src/mangosd/soapC.cpp
mv -f .deps/RASocket.Tpo .deps/RASocket.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../../src/mangosd  -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers  -I/usr/local/mysql/include -I/usr/include -I../../src/shared -I../../../src/mangosd/../../dep/include -I../../../src/mangosd/../../dep/include/gsoap -I../../../src/mangosd/../framework -I../../../src/mangosd/../shared  -I../../../src/mangosd/../game -I../../../src/mangosd -DSYSCONFDIR=\\"/Volumes/HDD2/Games/Mangos/core/etc/\\"   -DDO_MYSQL -g -O2 -MT soapServer.o -MD -MP -MF .deps/soapServer.Tpo -c -o soapServer.o ../../../src/mangosd/soapServer.cpp
mv -f .deps/soapC.Tpo .deps/soapC.Po
mv -f .deps/soapServer.Tpo .deps/soapServer.Po
/bin/sh ../../libtool --tag=CXX   --mode=link g++  -DDO_MYSQL -g -O2 -L../../dep/src/g3dlite -L../../dep/src/gsoap -L../bindings/ScriptDev2/ -L/Volumes/HDD2/Games/Mangos/core/lib ../../dep/ACE_wrappers/ace/libACE.la  -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm     -lmygcc -lz  -L/usr/lib -lssl -lcrypto -L../../dep/tbb -ltbb -ltbbmalloc -export-dynamic  -o mangos-worldd CliRunnable.o Main.o Master.o RASocket.o MaNGOSsoap.o WorldRunnable.o soapC.o soapServer.o ../bindings/ScriptDev2/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/g3dlite/libg3dlite.a ../../dep/src/gsoap/libgsoap.a -lpthread -lssl -lcrypto
libtool: link: g++ -DDO_MYSQL -g -O2 -o .libs/mangos-worldd CliRunnable.o Main.o Master.o RASocket.o MaNGOSsoap.o WorldRunnable.o soapC.o soapServer.o -Wl,-bind_at_load  -L/Volumes/HDD2/Games/Mangos/source/mangos/build/dep/src/g3dlite -L/Volumes/HDD2/Games/Mangos/source/mangos/build/dep/src/gsoap -L/Volumes/HDD2/Games/Mangos/source/mangos/build/src/bindings/ScriptDev2 -L/Volumes/HDD2/Games/Mangos/core/lib ../../dep/ACE_wrappers/ace/.libs/libACE-5.6.6.dylib -L/usr/local/mysql/lib /usr/local/mysql/lib/libmysqlclient_r.dylib -lmygcc /usr/local/mysql/lib/libz.a -lm -L/usr/lib -L/Volumes/HDD2/Games/Mangos/source/mangos/build/dep/tbb -ltbb -ltbbmalloc ../bindings/ScriptDev2/.libs/libmangosscript.0.0.0.dylib ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/g3dlite/libg3dlite.a ../../dep/src/gsoap/libgsoap.a -lpthread -lssl -lcrypto
ld: warning: directory '/Volumes/HDD2/Games/Mangos/core/lib' following -L not found
Undefined symbols:
 "_Gestalt", referenced from:
     G3D::System::init()    in libg3dlite.a(System.o)
     G3D::System::init()    in libg3dlite.a(System.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [mangos-worldd] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
RA:build willem$ 

Guest
This topic is now 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