MultiChain / multichain

Source code for multichaind, multichain-cli and multichain-util.
GNU General Public License v3.0
536 stars 259 forks source link

Compiling MultiChain on Mac OS X Mojave #108

Open ssow opened 5 years ago

ssow commented 5 years ago

Greetings,

I'm trying to compile Multichain on Mac OSX Mojave - Xcode 11 I've followed the readme instruction which states to use boost @1.57 Compilation throws the following errors.

Would you please help solve the issue ?

Thank you

Sincerely

/usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:46:66: error: expected unqualified-id ::CRYPTO_set_locking_callback(&do_init::openssl_locking_func); ^ /usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:47:56: error: expected unqualified-id ::CRYPTO_set_id_callback(&do_init::openssl_id_func); ^ /usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:64:32: error: expected unqualified-id ::CRYPTO_set_id_callback(0); ^ /usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:65:37: error: expected unqualified-id ::CRYPTO_set_locking_callback(0); ^ /usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:66:7: error: expected unqualified-id ::ERR_free_strings(); ^ /usr/local/Cellar/openssl@1.1/1.1.1d/include/openssl/err.h:257:29: note: expanded from macro 'ERR_free_strings'

define ERR_free_strings() while(0) continue

                        ^

In file included from rpc/rpcserver.cpp:8: In file included from ./rpc/rpcasio.h:17: In file included from /usr/local/include/boost/asio/ssl.hpp:19: In file included from /usr/local/include/boost/asio/ssl/context.hpp:29: In file included from /usr/local/include/boost/asio/ssl/detail/openssl_init.hpp:100: /usr/local/include/boost/asio/ssl/detail/impl/openssl_init.ipp:68:7: error: expected unqualified-id ::EVP_cleanup(); ^ /usr/local/Cellar/openssl@1.1/1.1.1d/include/openssl/evp.h:962:25: note: expanded from macro 'EVP_cleanup'

define EVP_cleanup() while(0) continue