Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request #9

Open
red0bear opened this issue Jul 19, 2018 · 2 comments
Open

Request #9

red0bear opened this issue Jul 19, 2018 · 2 comments

Comments

@red0bear
Copy link

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.

@mammix2
Copy link
Collaborator

mammix2 commented Jul 19, 2018

Hi can you give us a more info on where it fails, what OS you are compiling on and the output of the error?

@red0bear
Copy link
Author

  1. /linX/src/leveldb'
    /bin/sh: ./build_detect_platform: /bin/sh^M: interpretador incorreto: Arquivo ou diretório não encontrado

  2. 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 class boost::asio::basic_socket_acceptor’
    class basic_socket_acceptor
    ^~~~~~~~~~~~~~~~~~~~~
    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 class boost::asio::basic_socket_acceptor’
    class basic_socket_acceptor
    ^~~~~~~~~~~~~~~~~~~~~
    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* conn = new AcceptedConnectionImpl(acceptor->get_io_service(), context, fUseSSL);
    ^~
    bitcoinrpc.cpp:682:13: error: base operand of ‘->’ is not a pointer
    acceptor->async_accept(
    ^~
    bitcoinrpc.cpp: At global scope:
    bitcoinrpc.cpp:697: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 class boost::asio::basic_socket_acceptor’
    class basic_socket_acceptor
    ^~~~~~~~~~~~~~~~~~~~~
    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*, const boost::system::error_code&)’:
    bitcoinrpc.cpp:704:60: error: base operand of ‘->’ is not a pointer
    if (error != asio::error::operation_aborted && acceptor->is_open())
    ^~
    bitcoinrpc.cpp:705:45: error: no matching function for call to ‘RPCListen(int&, boost::asio::ssl::context&, const bool&)’
    RPCListen(acceptor, context, fUseSSL);
    ^
    bitcoinrpc.cpp:675:13: note: candidate: template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)
    static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
    ^~~~~~~~~
    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_acceptorboost::asio::ip::tcp >&, boost::asio::ssl::context&, const bool&)’
    RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
    ^
    bitcoinrpc.cpp:675:13: note: candidate: template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)
    static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > 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_acceptorboost::asio::ip::tcp >&, boost::asio::ssl::context&, const bool&)’
    RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
    ^
    bitcoinrpc.cpp:675:13: note: candidate: template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)
    static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants