compile error with OpenSSL 1.1.0f

+2 votes
Hi,

I get a compile error like below.
There is no error in Openssl 1.0.x.
Please check this error.

 

$ sudo apt update

$ sudo apt upgrade

$ openssl version
OpenSSL 1.1.0f  25 May 2017

$ ./autogen.sh

...

$ ./configure ...

...

$ make

....

  CXX      multichain/multichaind-multichaind.o
In file included from /usr/include/openssl/bio.h:20:0,
                 from /usr/include/openssl/conf.h:13,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:19,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from /usr/include/boost/asio/ssl.hpp:19,
                 from ./rpc/rpcprotocol.h:17,
                 from ./rpc/rpcserver.h:11,
                 from multichain/multichaind.cpp:7:
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp: In constructor 'boost::asio::ssl::detail::openssl_init_base::do_init::do_init()':
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:43:23: error: expected id-expression before '(' token
     mutexes_.resize(::CRYPTO_num_locks());
                       ^
In file included from /usr/include/boost/asio/ssl/detail/openssl_init.hpp:100:0,
                 from /usr/include/boost/asio/ssl/context.hpp:29,
                 from /usr/include/boost/asio/ssl.hpp:19,
                 from ./rpc/rpcprotocol.h:17,
                 from ./rpc/rpcserver.h:11,
                 from multichain/multichaind.cpp:7:
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:46:66: error: expected id-expression before ';' token
     ::CRYPTO_set_locking_callback(&do_init::openssl_locking_func);
                                                                  ^
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:47:56: error: expected id-expression before ';' token
     ::CRYPTO_set_id_callback(&do_init::openssl_id_func);
                                                        ^
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp: In destructor 'boost::asio::ssl::detail::openssl_init_base::do_init::~do_init()':
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:64:32: error: expected id-expression before ';' token
     ::CRYPTO_set_id_callback(0);
                                ^
/usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:65:37: error: expected id-expression before ';' token
     ::CRYPTO_set_locking_callback(0);
asked Sep 19, 2017 by jae min lee

1 Answer

+1 vote
What Linux distribution and version are you compiling MultiChain on? Currently compiling is supported on Ubuntu > 14.04 or later.
answered Sep 20, 2017 by MultiChain
...