-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
wdidada@DESKTOP-DAF8ST0:~$ cd charon/charon/
wdidada@DESKTOP-DAF8ST0:~/charon/charon$ make
g++ -g -O3 -std=c++11 -Wall -Wno-deprecated -Wno-unused-but-set-variable -I../ -I ./pb -I ./service -I ./interface -I ./comm -I ./data -I ./raft -I /usr/include -c service/charon.cc -o ../obj/charon.o
In file included from service/charon.cc:20:
../charon/comm/business_exception.h: In constructor ‘charon::BusinessException::BusinessException(long long int, const string&, const string&, int)’:
../charon/comm/business_exception.h:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "[" << file_name << ":" << line << "] throw BusinessException: {code: " << m_error_code << ", errinfo:" << m_error_info << "}";
| ^~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::DiscoverServer(google::protobuf::RpcController*, const DiscoverRequest*, DiscoverResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:66:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
66 | CALL_RPC_INTERFACE(DiscoverServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::RegisterServer(google::protobuf::RpcController*, const RegisterRequest*, RegisterResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:74:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
74 | CALL_RPC_INTERFACE(RegisterServerInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::AskVote(google::protobuf::RpcController*, const AskVoteRequest*, AskVoteResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:82:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
82 | CALL_RPC_INTERFACE(AskVoteInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::AppendLogEntries(google::protobuf::RpcController*, const AppendLogEntriesRequest*, AppendLogEntriesResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:90:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
90 | CALL_RPC_INTERFACE(AppendLogEntriesInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::OperateRaftServerNode(google::protobuf::RpcController*, const OperateRaftServerNodeRequest*, OperateRaftServerNodeResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:98:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
98 | CALL_RPC_INTERFACE(OperateRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::QueryAllRaftServerNode(google::protobuf::RpcController*, const QueryAllRaftServerNodeRequest*, QueryAllRaftServerNodeResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:106:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
106 | CALL_RPC_INTERFACE(QueryAllRaftServerNodeInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc: In member function ‘virtual void charon::CharonServiceImpl::RunCharon(google::protobuf::RpcController*, const RunCharonRequest*, RunCharonResponse*, google::protobuf::Closure*)’:
service/charon.cc:33:5: error: ‘AppInfoLog’ was not declared in this scope
33 | AppInfoLog << "In|request:{" << request->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:39:5: error: ‘AppErrorLog’ was not declared in this scope
39 | AppErrorLog << "[" << e.file_name() << ":" << e.line() << "] occur BusinessException, error code = " \
| ^~~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:43:5: error: ‘AppInfoLog’ was not declared in this scope
43 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:45:5: error: ‘AppErrorLog’ was not declared in this scope
45 | AppErrorLog << "occur std::exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:48:5: error: ‘AppInfoLog’ was not declared in this scope
48 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:50:5: error: ‘AppErrorLog’ was not declared in this scope
50 | AppErrorLog << "occur UnKnown exception, error code = -1, errorinfo = UnKnown error "; \
| ^~~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
service/charon.cc:53:5: error: ‘AppInfoLog’ was not declared in this scope
53 | AppInfoLog << "Out|response:{" << response->ShortDebugString() << "}"; \
| ^~~~~~~~~~
service/charon.cc:114:3: note: in expansion of macro ‘CALL_RPC_INTERFACE’
114 | CALL_RPC_INTERFACE(RunCharonInterface);
| ^~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels