bl4ck5un / Town-Crier

Town Crier: an Authenticated Data Feeds for Smart Contracts
https://town-crier.netlify.app/
Other
133 stars 25 forks source link

cannot complete make command ( following README ) #55

Open Blackhawk95 opened 5 years ago

Blackhawk95 commented 5 years ago

Build completed successfully , but fails during make command.

OS : ubuntu 16.04 jsonrpc-cpp version : 0.3.2 (Latest 0.6.x also gave error "undefined references" )

[ 67%] Generating Enclave_u.c Scanning dependencies of target tc [ 68%] Building CXX object src/App/CMakeFiles/tc.dir/tc.cpp.o In file included from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52:0, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h: In constructor ‘AbstractStatusServer::AbstractStatusServer(jsonrpc::AbstractServerConnector&, jsonrpc::serverVersion_t)’: /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:15:150: error: no matching function for call to ‘AbstractStatusServer::bindAndAddMethod(jsonrpc::Procedure, void (AbstractStatusServer::*)(const Json::Value&, Json::Value&))’ this->bindAndAddMethod(jsonrpc::Procedure("attest", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_OBJECT, NULL), &AbstractStatusServer::attestI); ^ In file included from /usr/local/include/jsonrpccpp/server.h:13:0, from /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:8, from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: candidate: bool jsonrpc::AbstractServer<S>::bindAndAddMethod(jsonrpc::Procedure*, jsonrpc::AbstractServer<S>::methodPointer_t) [with S = AbstractStatusServer; jsonrpc::AbstractServer<S>::methodPointer_t = void (AbstractStatusServer::*)(const Json::Value&, Json::Value&)] virtual bool bindAndAddMethod(Procedure* proc, methodPointer_t pointer) ^ /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: no known conversion for argument 1 from ‘jsonrpc::Procedure’ to ‘jsonrpc::Procedure*’ In file included from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52:0, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:16:150: error: no matching function for call to ‘AbstractStatusServer::bindAndAddMethod(jsonrpc::Procedure, void (AbstractStatusServer::*)(const Json::Value&, Json::Value&))’ this->bindAndAddMethod(jsonrpc::Procedure("status", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_OBJECT, NULL), &AbstractStatusServer::statusI); ^ In file included from /usr/local/include/jsonrpccpp/server.h:13:0, from /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:8, from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: candidate: bool jsonrpc::AbstractServer<S>::bindAndAddMethod(jsonrpc::Procedure*, jsonrpc::AbstractServer<S>::methodPointer_t) [with S = AbstractStatusServer; jsonrpc::AbstractServer<S>::methodPointer_t = void (AbstractStatusServer::*)(const Json::Value&, Json::Value&)] virtual bool bindAndAddMethod(Procedure* proc, methodPointer_t pointer) ^ /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: no known conversion for argument 1 from ‘jsonrpc::Procedure’ to ‘jsonrpc::Procedure*’ In file included from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52:0, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:17:238: error: no matching function for call to ‘AbstractStatusServer::bindAndAddMethod(jsonrpc::Procedure, void (AbstractStatusServer::*)(const Json::Value&, Json::Value&))’ ::JSON_OBJECT, "data",jsonrpc::JSON_STRING,"nonce",jsonrpc::JSON_INTEGER,"txid",jsonrpc::JSON_STRING, NULL), &AbstractStatusServer::processI); ^ In file included from /usr/local/include/jsonrpccpp/server.h:13:0, from /home/deepthi/sgx/Town-Crier/src/App/../App/abstractstatusserver.h:8, from /home/deepthi/sgx/Town-Crier/src/App/../App/status_rpc_server.h:52, from /home/deepthi/sgx/Town-Crier/src/App/tc.cpp:64: /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: candidate: bool jsonrpc::AbstractServer<S>::bindAndAddMethod(jsonrpc::Procedure*, jsonrpc::AbstractServer<S>::methodPointer_t) [with S = AbstractStatusServer; jsonrpc::AbstractServer<S>::methodPointer_t = void (AbstractStatusServer::*)(const Json::Value&, Json::Value&)] virtual bool bindAndAddMethod(Procedure* proc, methodPointer_t pointer) ^ /usr/local/include/jsonrpccpp/server/abstractserver.h:67:26: note: no known conversion for argument 1 from ‘jsonrpc::Procedure’ to ‘jsonrpc::Procedure*’ src/App/CMakeFiles/tc.dir/build.make:66: recipe for target 'src/App/CMakeFiles/tc.dir/tc.cpp.o' failed make[2]: *** [src/App/CMakeFiles/tc.dir/tc.cpp.o] Error 1 CMakeFiles/Makefile2:109: recipe for target 'src/App/CMakeFiles/tc.dir/all' failed make[1]: *** [src/App/CMakeFiles/tc.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2