Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /bin/sh ../share/genbuild.sh obj/build.h
- g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/magi/src -I/home/pi/magi/src/hash -I/home/pi/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/magi/src/leveldb/include -I/home/pi/magi/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -Ofast -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -MMD -MF obj/magirpc.d -o obj/magirpc.o magirpc.cpp
- In file included from bignum.h:12,
- from main.h:8,
- from wallet.h:13,
- from init.h:8,
- from magirpc.cpp:6:
- util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- return strprintf("%"PRI64d, n);
- ^
- In file included from main.h:10,
- from wallet.h:13,
- from init.h:8,
- from magirpc.cpp:6:
- net.h:325:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
- ^
- In file included from wallet.h:13,
- from init.h:8,
- from magirpc.cpp:6:
- main.h:770:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
- ^
- main.h:770:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
- ^
- main.h:1205:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
- ^
- main.h:1468:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
- ^
- magirpc.cpp:373:13: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
- "Content-Length: %"PRIszu"\r\n"
- ^
- In file included from magirpc.h:16,
- from magirpc.cpp:11:
- json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
- json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
- typedef typename String_type::value_type Char_type;
- ^~~~~~~~~
- magirpc.cpp: In function ‘bool ClientAllowed(const boost::asio::ip::address&)’:
- magirpc.cpp:523:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- if (address.is_v6()
- ^~
- magirpc.cpp:528:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- std::string ipv4addr = address.to_string();
- ^~~
- magirpc.cpp: At global scope:
- magirpc.cpp:668: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,
- from magirpc.cpp:15:
- /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided for ‘template<class Protocol> class boost::asio::basic_socket_acceptor’
- class basic_socket_acceptor
- ^~~~~~~~~~~~~~~~~~~~~
- magirpc.cpp:668:104: error: template argument 1 is invalid
- static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
- ^
- magirpc.cpp:678: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,
- from magirpc.cpp:15:
- /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided for ‘template<class Protocol> class boost::asio::basic_socket_acceptor’
- class basic_socket_acceptor
- ^~~~~~~~~~~~~~~~~~~~~
- magirpc.cpp:678:97: error: template argument 1 is invalid
- static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
- ^
- magirpc.cpp: In function ‘void RPCListen(int, boost::asio::ssl::context&, bool)’:
- magirpc.cpp:683:91: error: base operand of ‘->’ is not a pointer
- AcceptedConnectionImpl<Protocol>* conn = new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL);
- ^~
- magirpc.cpp:685:13: error: base operand of ‘->’ is not a pointer
- acceptor->async_accept(
- ^~
- magirpc.cpp: At global scope:
- magirpc.cpp:700: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,
- from magirpc.cpp:15:
- /usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: note: provided for ‘template<class Protocol> class boost::asio::basic_socket_acceptor’
- class basic_socket_acceptor
- ^~~~~~~~~~~~~~~~~~~~~
- magirpc.cpp:700:104: error: template argument 1 is invalid
- static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
- ^
- magirpc.cpp: In function ‘void RPCAcceptHandler(int, boost::asio::ssl::context&, bool, AcceptedConnection*, const boost::system::error_code&)’:
- magirpc.cpp:710:17: error: base operand of ‘->’ is not a pointer
- && acceptor->is_open())
- ^~
- magirpc.cpp:711:45: error: no matching function for call to ‘RPCListen(int&, boost::asio::ssl::context&, const bool&)’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp:678: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,
- ^~~~~~~~~
- magirpc.cpp:678:13: note: template argument deduction/substitution failed:
- magirpc.cpp:711:45: note: couldn't deduce template parameter ‘Protocol’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp: In function ‘void ThreadRPCServer2(void*)’:
- magirpc.cpp:775: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,
- from /usr/include/boost/asio/ssl.hpp:18,
- from magirpc.cpp:24:
- /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
- magirpc.cpp:791:41: error: ‘class boost::asio::ssl::context’ has no member named ‘impl’
- SSL_CTX_set_cipher_list(context.impl(), strCiphers.c_str());
- ^~~~
- magirpc.cpp:816:45: 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&)’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp:678: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,
- ^~~~~~~~~
- magirpc.cpp:678:13: note: template argument deduction/substitution failed:
- magirpc.cpp:816:45: note: couldn't deduce template parameter ‘Protocol’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp:842:49: 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&)’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp:678: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,
- ^~~~~~~~~
- magirpc.cpp:678:13: note: template argument deduction/substitution failed:
- magirpc.cpp:842:49: note: couldn't deduce template parameter ‘Protocol’
- RPCListen(acceptor, context, fUseSSL);
- ^
- magirpc.cpp: In function ‘json_spirit::Object CallRPC(const string&, const Array&)’:
- magirpc.cpp:1085: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,
- from /usr/include/boost/asio/ssl.hpp:18,
- from magirpc.cpp:24:
- /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
- make: *** [makefile.unix:188: obj/magirpc.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement