Advertisement
napoly

Emerald build on Debian buster

Jan 23rd, 2020
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 11.76 KB | None | 0 0
  1. OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.unix USE_UPNP=-
  2. /bin/sh ../share/genbuild.sh obj/build.h
  3. g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/napoly/git/Emerald/src -I/home/napoly/git/Emerald/src/obj -I/usr/local/ssl/include -DUSE_IPV6=1 -I/home/napoly/git/Emerald/src/leveldb/include -I/home/napoly/git/Emerald/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -MMD -MF obj/bitcoinrpc.d -o obj/bitcoinrpc.o bitcoinrpc.cpp
  4. In file included from bignum.h:12,
  5.                  from main.h:8,
  6.                  from wallet.h:13,
  7.                  from init.h:8,
  8.                  from bitcoinrpc.cpp:6:
  9. util.h:245:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  10.      return strprintf("%"PRI64d, n);
  11.                       ^
  12. In file included from main.h:10,
  13.                  from wallet.h:13,
  14.                  from init.h:8,
  15.                  from bitcoinrpc.cpp:6:
  16. net.h:376:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  17.              printf("askfor %s   %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
  18.                     ^
  19. In file included from wallet.h:13,
  20.                  from init.h:8,
  21.                  from bitcoinrpc.cpp:6:
  22. main.h:451:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  23.          return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
  24.                           ^
  25. main.h:451:49: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  26.          return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
  27.                                                  ^
  28. main.h:652:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  29.          str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%u)\n",
  30.                           ^
  31. main.h:652:74: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  32.          str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%u)\n",
  33.                                                                           ^
  34. main.h:1503:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  35.          printf("CBlock(hash=%s, input=%s, PoW=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu")\n",
  36.                 ^
  37. bitcoinrpc.cpp:358:13: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  38.              "Content-Length: %"PRIszu"\r\n"
  39.              ^
  40. bitcoinrpc.cpp:665:102: error: wrong number of template arguments (2, should be 1)
  41.  static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  42.                                                                                                       ^
  43. In file included from /usr/include/boost/asio.hpp:30,
  44.                  from bitcoinrpc.cpp:14:
  45. /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided fortemplate<class Protocol> class boost::asio::basic_socket_acceptor
  46.  class basic_socket_acceptor
  47.        ^~~~~~~~~~~~~~~~~~~~~
  48. bitcoinrpc.cpp:665:104: error: template argument 1 is invalid
  49.  static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  50.                                                                                                         ^
  51. bitcoinrpc.cpp:675:95: error: wrong number of template arguments (2, should be 1)
  52.  static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  53.                                                                                                ^
  54. In file included from /usr/include/boost/asio.hpp:30,
  55.                  from bitcoinrpc.cpp:14:
  56. /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided fortemplate<class Protocol> class boost::asio::basic_socket_acceptor
  57.  class basic_socket_acceptor
  58.        ^~~~~~~~~~~~~~~~~~~~~
  59. bitcoinrpc.cpp:675:97: error: template argument 1 is invalid
  60.  static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  61.                                                                                                  ^
  62. bitcoinrpc.cpp: In function ‘void RPCListen(int, boost::asio::ssl::context&, bool):
  63. bitcoinrpc.cpp:680:91: error: base operand of ‘->’ is not a pointer
  64.      AcceptedConnectionImpl<Protocol>* conn = new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL);
  65.                                                                                            ^~
  66. bitcoinrpc.cpp:682:13: error: base operand of ‘->’ is not a pointer
  67.      acceptor->async_accept(
  68.              ^~
  69. bitcoinrpc.cpp: At global scope:
  70. bitcoinrpc.cpp:697:102: error: wrong number of template arguments (2, should be 1)
  71.  static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  72.                                                                                                       ^
  73. In file included from /usr/include/boost/asio.hpp:30,
  74.                  from bitcoinrpc.cpp:14:
  75. /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided fortemplate<class Protocol> class boost::asio::basic_socket_acceptor
  76.  class basic_socket_acceptor
  77.        ^~~~~~~~~~~~~~~~~~~~~
  78. bitcoinrpc.cpp:697:104: error: template argument 1 is invalid
  79.  static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  80.                                                                                                         ^
  81. bitcoinrpc.cpp: In function ‘void RPCAcceptHandler(int, boost::asio::ssl::context&, bool, AcceptedConnection*, const boost::system::error_code&):
  82. bitcoinrpc.cpp:704:60: error: base operand of ‘->’ is not a pointer
  83.      if (error != asio::error::operation_aborted && acceptor->is_open())
  84.                                                             ^~
  85. bitcoinrpc.cpp:705:45: error: no matching function for call to ‘RPCListen(int&, boost::asio::ssl::context&, const bool&)
  86.          RPCListen(acceptor, context, fUseSSL);
  87.                                              ^
  88. bitcoinrpc.cpp:675:13: note: candidate:template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)
  89.  static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  90.              ^~~~~~~~~
  91. bitcoinrpc.cpp:675:13: note:   template argument deduction/substitution failed:
  92. bitcoinrpc.cpp:705:45: note:   couldn't deduce template parameter ‘Protocol’
  93.         RPCListen(acceptor, context, fUseSSL);
  94.                                             ^
  95. bitcoinrpc.cpp: In function ‘void StartRPCThreads()’:
  96. 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)’
  97.     rpc_ssl_context = new ssl::context(*rpc_io_service, ssl::context::sslv23);
  98.                                                                             ^
  99. In file included from /usr/include/boost/asio/ssl/context.hpp:757,
  100.                 from /usr/include/boost/asio/ssl.hpp:18,
  101.                 from bitcoinrpc.cpp:23:
  102. /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: ‘boost::asio::ssl::context::context(boost::asio::ssl::context&&)’
  103. context::context(context&& other)
  104. ^~~~~~~
  105. /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note:   candidate expects 1 argument, 2 provided
  106. /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: ‘boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)’
  107. context::context(context::method m)
  108. ^~~~~~~
  109. /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note:   candidate expects 1 argument, 2 provided
  110. bitcoinrpc.cpp:785:50: error: ‘class boost::asio::ssl::context’ has no member named ‘impl’
  111.         SSL_CTX_set_cipher_list(rpc_ssl_context->impl(), strCiphers.c_str());
  112.                                                  ^~~~
  113. bitcoinrpc.cpp:808:54: error: no matching function for call to ‘RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp> >&, boost::asio::ssl::context&, const bool&)’
  114.         RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
  115.                                                      ^
  116. bitcoinrpc.cpp:675:13: note: candidate: ‘template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)’
  117. static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  118.             ^~~~~~~~~
  119. bitcoinrpc.cpp:675:13: note:   template argument deduction/substitution failed:
  120. bitcoinrpc.cpp:808:54: note:   couldn't deduce template parameter ‘Protocol’
  121.          RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
  122.                                                       ^
  123. bitcoinrpc.cpp:830:58: error: no matching function for call to ‘RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp> >&, boost::asio::ssl::context&, const bool&)
  124.              RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
  125.                                                           ^
  126. bitcoinrpc.cpp:675:13: note: candidate:template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)
  127.  static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
  128.              ^~~~~~~~~
  129. bitcoinrpc.cpp:675:13: note:   template argument deduction/substitution failed:
  130. bitcoinrpc.cpp:830:58: note:   couldn't deduce template parameter ‘Protocol’
  131.             RPCListen(acceptor, *rpc_ssl_context, fUseSSL);
  132.                                                          ^
  133. bitcoinrpc.cpp: In function ‘json_spirit::Object CallRPC(const string&, const Array&)’:
  134. 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)’
  135.     ssl::context context(io_service, ssl::context::sslv23);
  136.                                                          ^
  137. In file included from /usr/include/boost/asio/ssl/context.hpp:757,
  138.                 from /usr/include/boost/asio/ssl.hpp:18,
  139.                 from bitcoinrpc.cpp:23:
  140. /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: ‘boost::asio::ssl::context::context(boost::asio::ssl::context&&)’
  141. context::context(context&& other)
  142. ^~~~~~~
  143. /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note:   candidate expects 1 argument, 2 provided
  144. /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: ‘boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)’
  145. context::context(context::method m)
  146. ^~~~~~~
  147. /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note:   candidate expects 1 argument, 2 provided
  148. make: *** [makefile.unix:186: obj/bitcoinrpc.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement