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

whale编译问题 #33

Open
icebergger opened this issue Nov 25, 2021 · 0 comments
Open

whale编译问题 #33

icebergger opened this issue Nov 25, 2021 · 0 comments

Comments

@icebergger
Copy link

icebergger commented Nov 25, 2021

[ 3%] Building CXX object cthrift/CMakeFiles/cthrift_dynamic.dir/cthrift_svr.cc.o
In file included from /home/work/octo/whale/cthrift/cthrift_tbinary_protocol.h:317:0,
from /home/work/octo/whale/cthrift/cthrift_client.h:26,
from /home/work/octo/whale/cthrift/cthrift_svr.h:26,
from /home/work/octo/whale/cthrift/cthrift_svr.cc:22:
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc: In member function 'uint32_t meituan_cthrift::CthriftTBinaryProtocolT<Transport_>::writeI64(int64_t)':
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc:310:49: error: there are no arguments to 'htonll' that depend on a template parameter, so a declaration of 'htonll' must be available [-fpermissive]
int64_t net = static_cast<int64_t>( htonll(i64));
^
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc:310:49: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc: In member function 'uint32_t meituan_cthrift::CthriftTBinaryProtocolT<Transport_>::writeDouble(double)':
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc:321:21: error: there are no arguments to 'htonll' that depend on a template parameter, so a declaration of 'htonll' must be available [-fpermissive]
bits = htonll(bits);
^
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc: In instantiation of 'uint32_t meituan_cthrift::CthriftTBinaryProtocolT<Transport_>::writeI64(int64_t) [with Transport_ = apache::thrift::transport::TTransport; uint32_t = unsigned int; int64_t = long int]':
/usr/local/include/thrift/protocol/TVirtualProtocol.h:409:55: required from 'uint32_t apache::thrift::protocol::TVirtualProtocol<Protocol_, Super_>::writeI64_virt(int64_t) [with Protocol_ = meituan_cthrift::CthriftTBinaryProtocolTapache::thrift::transport::TTransport; Super_ = apache::thrift::protocol::TProtocolDefaults; uint32_t = unsigned int; int64_t = long int]'
/home/work/octo/whale/cthrift/cthrift_svr.cc:692:1: required from here
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc:310:49: error: 'htonll' was not declared in this scope
int64_t net = static_cast<int64_t>( htonll(i64));
^
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc: In instantiation of 'uint32_t meituan_cthrift::CthriftTBinaryProtocolT<Transport_>::writeDouble(double) [with Transport_ = apache::thrift::transport::TTransport; uint32_t = unsigned int]':
/usr/local/include/thrift/protocol/TVirtualProtocol.h:413:58: required from 'uint32_t apache::thrift::protocol::TVirtualProtocol<Protocol_, Super_>::writeDouble_virt(double) [with Protocol_ = meituan_cthrift::CthriftTBinaryProtocolTapache::thrift::transport::TTransport; Super_ = apache::thrift::protocol::TProtocolDefaults; uint32_t = unsigned int]'
/home/work/octo/whale/cthrift/cthrift_svr.cc:692:1: required from here
/home/work/octo/whale/cthrift/cthrift_tbinary_protocol.tcc:321:21: error: 'htonll' was not declared in this scope
bits = htonll(bits);

@icebergger icebergger changed the title 编译问题,找不到文件? whale编译问题,找不到文件? Nov 25, 2021
@icebergger icebergger changed the title whale编译问题,找不到文件? whale编译问题 Nov 25, 2021
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