/usr/local/include/thrift/transport/TSocket.h:216:3: 错误:‘sockaddr’不是一个类型名
在TSocket.h中加入
#include<sys/socket.h>#include<arpa/inet.h>即可(只用第二个其实就可以了)uint_32 does not name a type在编译选项中加入 -DHAVE_NETINET_IN_H 即可
#include<sys/socket.h>#include<arpa/inet.h>