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"