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

cannot complete make command ( following README ) #55

Open
Blackhawk95 opened this issue Nov 26, 2018 · 0 comments
Open

cannot complete make command ( following README ) #55

Blackhawk95 opened this issue Nov 26, 2018 · 0 comments

Comments

@Blackhawk95
Copy link

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

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

1 participant