Scribe在CentOS 5.8上編譯不過的解決辦法

來源:互聯網
上載者:User

Scribe在CentOS 5.8上編譯不過的解決辦法 安裝環境: CentOS 5.8 boost 1.5.3 thrift 0.9.0 編譯時間的錯誤提示: [cpp] /usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT<Transport_>::writeI16(int16_t)':  /usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: there are no arguments to 'htons' that depend on a template parameter, so a declaration of 'htons' must be available  /usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)  /usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT<Transport_>::writeI32(int32_t)':  /usr/local/include/thrift/protocol/TBinaryProtocol.tcc:154: error: there are no arguments to 'htonl' that depend on a template parameter, so a declaration of 'htonl' must be available  /usr/local/include/thrift/transport/TSocket.h: At global scope:  /usr/local/include/thrift/transport/TSocket.h:219: error: expected ';' before '*' token  /usr/local/include/thrift/transport/TSocket.h:240: error: expected ',' or '...' before '*' token  /usr/local/include/thrift/transport/TSocket.h:293: error: 'sockaddr_in' does not name a type  /usr/local/include/thrift/transport/TSocket.h:294: error: 'sockaddr_in6' does not name a type  /usr/local/include/thrift/server/TNonblockingServer.h:780: error: expected ',' or '...' before '*' token  store.cpp: In member function 'void BufferStore::setNewRetryInterval(bool)':  store.cpp:1681: warning: comparison between signed and unsigned integer expressions  store.cpp:1693: warning: comparison between signed and unsigned integer expressions  store.h: In constructor 'NetworkStore::NetworkStore(StoreQueue*, const std::string&, bool)':  store.h:407: warning: 'NetworkStore::opened' will be initialized after  store.h:401: warning:   'time_t NetworkStore::lastServiceCheck'  store.cpp:1743: warning:   when initialized here  make[3]: *** [store.o] Error 1  make[3]: Leaving directory `/root/download/scribe/src'  make[2]: *** [all] Error 2  make[2]: Leaving directory `/root/download/scribe/src'  make[1]: *** [all-recursive] Error 1  make[1]: Leaving directory `/root/download/scribe'  make: *** [all] Error 2   解決辦法: export CPPFLAGS="-DHAVE_NETDB_H=1 -fpermissive"./bootstrap.sh./configure 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.