{"action":"created","issue":{"url":"https://api.github.com/repos/mogujie/TeamTalk/issues/2","labels_url":"https://api.github.com/repos/mogujie/TeamTalk/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mogujie/TeamTalk/issues/2/comments","events_url":"https://api.github.com/repos/mogujie/TeamTalk/issues/2/events","html_url":"https://github.com/mogujie/TeamTalk/issues/2","id":65697000,"number":2,"title":"base中编译错误","user":{"login":"ckeyer","id":6814271,"avatar_url":"https://avatars.githubusercontent.com/u/6814271?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeyer","html_url":"https://github.com/ckeyer","followers_url":"https://api.github.com/users/ckeyer/followers","following_url":"https://api.github.com/users/ckeyer/following{/other_user}","gists_url":"https://api.github.com/users/ckeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeyer/subscriptions","organizations_url":"https://api.github.com/users/ckeyer/orgs","repos_url":"https://api.github.com/users/ckeyer/repos","events_url":"https://api.github.com/users/ckeyer/events{/privacy}","received_events_url":"https://api.github.com/users/ckeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T14:17:27Z","updated_at":"2015-04-01T19:25:09Z","closed_at":null,"body":"[root@Centos-TeamTalk base]# make\r\n[  3%] Building CXX object CMakeFiles/base.dir/HttpClient.cpp.o\r\n在包含自 /root/TeamTalk/server/src/base/public_define.h：14 的文件中，\r\n                 从 /root/TeamTalk/server/src/base/HttpClient.h：18，\r\n                 从 /root/TeamTalk/server/src/base/HttpClient.cpp：14:\r\n/root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:12:2: 错误：#error This file was generated by a newer version of protoc which is\r\n/root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:13:2: 错误：#error incompatible with your Protocol Buffer headers. Please update\r\n/root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:14:2: 错误：#error your headers.\r\n在包含自 /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/hash_map：60 的文件中，\r\n                 从 /root/TeamTalk/server/src/base/ostype.h：39，\r\n                 从 /root/TeamTalk/server/src/base/public_define.h：15，\r\n                 从 /root/TeamTalk/server/src/base/HttpClient.h：18，\r\n                 从 /root/TeamTalk/server/src/base/HttpClient.cpp：14:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward/backward_warning.h:28:2: 警告：#warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.\r\nIn file included from /root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:22,\r\n                 from /root/TeamTalk/server/src/base/public_define.h:14,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.h:18,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.cpp:14:\r\n/usr/local/include/google/protobuf/arena.h:272: 错误：expected ‘;’ before ‘GOOGLE_ATTRIBUTE_NOINLINE’\r\n/usr/local/include/google/protobuf/arena.h:274: 错误：expected ‘;’ before ‘GOOGLE_ATTRIBUTE_NOINLINE’\r\n/usr/local/include/google/protobuf/arena.h:281: 错误：expected ‘;’ before ‘GOOGLE_ATTRIBUTE_NOINLINE’\r\n/usr/local/include/google/protobuf/arena.h:286: 错误：expected constructor, destructor, or type conversion before ‘void’\r\n/usr/local/include/google/protobuf/arena.h:296: 错误：expected constructor, destructor, or type conversion before ‘void’\r\n/usr/local/include/google/protobuf/arena.h:307: 错误：expected ‘;’ before ‘GOOGLE_ATTRIBUTE_NOINLINE’\r\n/usr/local/include/google/protobuf/arena.h:315: 错误：expected ‘;’ before ‘template’\r\n/usr/local/include/google/protobuf/arena.h:377: 错误：‘GOOGLE_THREAD_LOCAL’没有命名一个类型\r\n/usr/local/include/google/protobuf/arena.h: In static member function ‘static google::protobuf::Arena::ThreadCache& google::protobuf::Arena::thread_cache()’:\r\n/usr/local/include/google/protobuf/arena.h:378: 错误：‘thread_cache_’在此作用域中尚未声明\r\nIn file included from /usr/local/include/google/protobuf/arenastring.h:37,\r\n                 from /root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:23,\r\n                 from /root/TeamTalk/server/src/base/public_define.h:14,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.h:18,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.cpp:14:\r\n/usr/local/include/google/protobuf/stubs/fastmem.h: In function ‘bool google::protobuf::internal::memeq(const char*, const char*, size_t)’:\r\n/usr/local/include/google/protobuf/stubs/fastmem.h:67: 错误：‘GOOGLE_PREDICT_FALSE’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/stubs/fastmem.h:71: 错误：‘GOOGLE_UNALIGNED_LOAD64’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/stubs/fastmem.h: In function ‘int google::protobuf::internal::fastmemcmp_inlined(const char*, const char*, size_t)’:\r\n/usr/local/include/google/protobuf/stubs/fastmem.h:104: 错误：‘GOOGLE_UNALIGNED_LOAD64’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/stubs/fastmem.h:109: 错误：‘GOOGLE_UNALIGNED_LOAD32’在此作用域中尚未声明\r\nIn file included from /root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:23,\r\n                 from /root/TeamTalk/server/src/base/public_define.h:14,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.h:18,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.cpp:14:\r\n/usr/local/include/google/protobuf/arenastring.h: At global scope:\r\n/usr/local/include/google/protobuf/arenastring.h:288: 错误：expected ‘;’ before ‘GOOGLE_ATTRIBUTE_NOINLINE’\r\n/root/TeamTalk/server/src/base/HttpClient.cpp:199: 错误：expected ‘;’ at end of input\r\n/root/TeamTalk/server/src/base/HttpClient.cpp:199: 错误：expected ‘}’ at end of input\r\nIn file included from /root/TeamTalk/server/src/base/./pb/protocol/IM.BaseDefine.pb.h:23,\r\n                 from /root/TeamTalk/server/src/base/public_define.h:14,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.h:18,\r\n                 from /root/TeamTalk/server/src/base/HttpClient.cpp:14:\r\n/usr/local/include/google/protobuf/arenastring.h: In member function ‘void google::protobuf::internal::ArenaStringPtr::Set(const std::string*, const std::string&, google::protobuf::Arena*)’:\r\n/usr/local/include/google/protobuf/arenastring.h:60: 错误：‘CreateInstance’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/arenastring.h: In member function ‘std::string* google::protobuf::internal::ArenaStringPtr::Mutable(const std::string*, google::protobuf::Arena*)’:\r\n/usr/local/include/google/protobuf/arenastring.h:74: 错误：‘CreateInstance’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/arenastring.h: In member function ‘void google::protobuf::internal::ArenaStringPtr::SetAllocated(const std::string*, std::string*, google::protobuf::Arena*)’:\r\n/usr/local/include/google/protobuf/arenastring.h:125: 错误：‘class google::protobuf::Arena’没有名为‘Own’的成员\r\n/usr/local/include/google/protobuf/arenastring.h: In member function ‘void google::protobuf::internal::ArenaStringPtr::SetNoArena(const std::string*, const std::string&)’:\r\n/usr/local/include/google/protobuf/arenastring.h:210: 错误：‘CreateInstanceNoArena’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/arenastring.h: In member function ‘std::string* google::protobuf::internal::ArenaStringPtr::MutableNoArena(const std::string*)’:\r\n/usr/local/include/google/protobuf/arenastring.h:224: 错误：‘CreateInstanceNoArena’在此作用域中尚未声明\r\n/usr/local/include/google/protobuf/arenastring.h: At global scope:\r\n/usr/local/include/google/protobuf/arenastring.h:281: 错误：expected unqualified-id at end of input\r\n/usr/local/include/google/protobuf/arenastring.h:281: 错误：expected ‘}’ at end of input\r\n/usr/local/include/google/protobuf/arenastring.h:281: 错误：expected ‘}’ at end of input\r\n/usr/local/include/google/protobuf/arenastring.h:281: 错误：expected ‘}’ at end of input\r\nmake[2]: *** [CMakeFiles/base.dir/HttpClient.cpp.o] 错误 1\r\nmake[1]: *** [CMakeFiles/base.dir/all] 错误 2\r\nmake: *** [all] 错误 2\r\n"},"comment":{"url":"https://api.github.com/repos/mogujie/TeamTalk/issues/comments/88602221","html_url":"https://github.com/mogujie/TeamTalk/issues/2#issuecomment-88602221","issue_url":"https://api.github.com/repos/mogujie/TeamTalk/issues/2","id":88602221,"user":{"login":"ckeyer","id":6814271,"avatar_url":"https://avatars.githubusercontent.com/u/6814271?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeyer","html_url":"https://github.com/ckeyer","followers_url":"https://api.github.com/users/ckeyer/followers","following_url":"https://api.github.com/users/ckeyer/following{/other_user}","gists_url":"https://api.github.com/users/ckeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeyer/subscriptions","organizations_url":"https://api.github.com/users/ckeyer/orgs","repos_url":"https://api.github.com/users/ckeyer/repos","events_url":"https://api.github.com/users/ckeyer/events{/privacy}","received_events_url":"https://api.github.com/users/ckeyer/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T19:25:09Z","updated_at":"2015-04-01T19:25:09Z","body":"在包含自 /root/TeamTalk/server/src/db_proxy_server/AutoPool.cpp：12 的文件中:\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:16:19: 错误：mysql.h：没有那个文件或目录\r\nIn file included from /root/TeamTalk/server/src/db_proxy_server/AutoPool.cpp:12:\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:22: 错误：expected ‘)’ before ‘*’ token\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:31: 错误：ISO C++ 不允许声明无类型的‘MYSQL_RES’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:31: 错误：expected ‘;’ before ‘*’ token\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:32: 错误：‘MYSQL_ROW’没有命名一个类型\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:47: 错误：‘MYSQL’未声明\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:57: 错误：ISO C++ 不允许声明无类型的‘MYSQL_STMT’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:57: 错误：expected ‘;’ before ‘*’ token\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:58: 错误：ISO C++ 不允许声明无类型的‘MYSQL_BIND’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:58: 错误：expected ‘;’ before ‘*’ token\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:77: 错误：ISO C++ 不允许声明无类型的‘MYSQL’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:77: 错误：expected ‘;’ before ‘*’ token\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:78: 错误：expected ‘;’ before ‘private’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:80: 错误：ISO C++ 不允许声明无类型的‘MYSQL’\r\n/root/TeamTalk/server/src/db_proxy_server/DBPool.h:80: 错误：expected ‘;’ before ‘*’ token\r\nmake[2]: *** [CMakeFiles/db_proxy_server.dir/AutoPool.cpp.o] 错误 1\r\nmake[1]: *** [CMakeFiles/db_proxy_server.dir/all] 错误 2\r\nmake: *** [all] 错误 2\r\n"}}