Open red0bear opened 6 years ago
Hi can you give us a more info on where it fails, what OS you are compiling on and the output of the error?
/linX/src/leveldb' /bin/sh: ./build_detect_platform: /bin/sh^M: interpretador incorreto: Arquivo ou diretório não encontrado
this is because boost
bitcoinrpc.cpp:665:102: error: wrong number of template arguments (2, should be 1)
static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
In file included from /usr/include/boost/asio.hpp:30:0,
from bitcoinrpc.cpp:14:
/usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided for ‘template~~~~
bitcoinrpc.cpp:665:104: error: template argument 1 is invalid
static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
bitcoinrpc.cpp:675:95: error: wrong number of template arguments (2, should be 1)
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
In file included from /usr/include/boost/asio.hpp:30:0,
from bitcoinrpc.cpp:14:
/usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided for ‘template~~~~
bitcoinrpc.cpp:675:97: error: template argument 1 is invalid
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
bitcoinrpc.cpp: In function ‘void RPCListen(int, boost::asio::ssl::context&, bool)’:
bitcoinrpc.cpp:680:91: error: base operand of ‘->’ is not a pointer
AcceptedConnectionImpl~~~~
bitcoinrpc.cpp:697:104: error: template argument 1 is invalid
static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
bitcoinrpc.cpp: In function ‘void RPCAcceptHandler(int, boost::asio::ssl::context&, bool, AcceptedConnection~~~~
bitcoinrpc.cpp:675:13: note: template argument deduction/substitution failed:
bitcoinrpc.cpp:705:45: note: couldn't deduce template parameter ‘Protocol’
RPCListen(acceptor, context, fUseSSL);
^
bitcoinrpc.cpp: In function ‘void StartRPCThreads()’:
bitcoinrpc.cpp:766:77: error: no matching function for call to ‘boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)’
rpc_ssl_context = new ssl::context(rpc_io_service, ssl::context::sslv23);
^
In file included from /usr/include/boost/asio/ssl/context.hpp:757:0,
from /usr/include/boost/asio/ssl.hpp:18,
from bitcoinrpc.cpp:23:
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context&&)
context::context(context&& other)
^~~
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate expects 1 argument, 2 provided
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)
context::context(context::method m)
^~~
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate expects 1 argument, 2 provided
bitcoinrpc.cpp:785:50: error: ‘class boost::asio::ssl::context’ has no member named ‘impl’
SSL_CTX_set_cipher_list(rpc_ssl_context->impl(), strCiphers.c_str());
^~~~
bitcoinrpc.cpp:808:54: error: no matching function for call to ‘RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor~~~~
bitcoinrpc.cpp:675:13: note: template argument deduction/substitution failed:
bitcoinrpc.cpp:808:54: note: couldn't deduce template parameter ‘Protocol’
RPCListen(acceptor, rpc_ssl_context, fUseSSL);
^
bitcoinrpc.cpp:830:58: error: no matching function for call to ‘RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor~~~~
bitcoinrpc.cpp:675:13: note: template argument deduction/substitution failed:
bitcoinrpc.cpp:830:58: note: couldn't deduce template parameter ‘Protocol’
RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
^
bitcoinrpc.cpp: In function ‘json_spirit::Object CallRPC(const string&, const Array&)’:
bitcoinrpc.cpp:1069:58: error: no matching function for call to ‘boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)’
ssl::context context(io_service, ssl::context::sslv23);
^
In file included from /usr/include/boost/asio/ssl/context.hpp:757:0,
from /usr/include/boost/asio/ssl.hpp:18,
from bitcoinrpc.cpp:23:
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context&&)
context::context(context&& other)
^~~
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate expects 1 argument, 2 provided
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)
context::context(context::method m)
^~~
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate expects 1 argument, 2 provided
I tried to compile here but it fail ..... Do you wish make it to cmake instead make files .... its very hard compile using manual dependecies.