Cannot build scribe on CentOS 6.4 with thrift 0.9.0

343 views
Skip to first unread message

Lynx Ginger

unread,
May 16, 2013, 7:53:36 AM5/16/13
to scribe...@googlegroups.com
Hello!
I try to build scribe-server rpm, but cannot compile it.
I have errors, such as:

make[3]: Entering directory `/home/linko/rpmbuild/BUILD/scribe-2.2-1/src'
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -I.  -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I.. -I/usr/include -I/usr/include/thrift -I/usr/include/thrift -I/usr/include/thrift/fb303 -I/usr/local/include -I/usr/include     -Wall -O3 -MT store.o -MD -MP -MF .deps/store.Tpo -c -o store.o store.cpp
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -I.  -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I.. -I/usr/include -I/usr/include/thrift -I/usr/include/thrift -I/usr/include/thrift/fb303 -I/usr/local/include -I/usr/include     -Wall -O3 -MT store_queue.o -MD -MP -MF .deps/store_queue.Tpo -c -o store_queue.o store_queue.cpp
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -I.  -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I.. -I/usr/include -I/usr/include/thrift -I/usr/include/thrift -I/usr/include/thrift/fb303 -I/usr/local/include -I/usr/include     -Wall -O3 -MT conf.o -MD -MP -MF .deps/conf.Tpo -c -o conf.o conf.cpp
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -I.  -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I.. -I/usr/include -I/usr/include/thrift -I/usr/include/thrift -I/usr/include/thrift/fb303 -I/usr/local/include -I/usr/include     -Wall -O3 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.cpp
In file included from env_default.h:39,
                 from common.h:57,
                 from store.cpp:28:
../src/gen-cpp/scribe.h:22: error: expected class-name before '{' token
In file included from env_default.h:39,
                 from common.h:57,
                 from store_queue.cpp:24:
../src/gen-cpp/scribe.h:22: error: expected class-name before '{' token
In file included from env_default.h:39,
                 from common.h:57,
                 from file.cpp:22:
../src/gen-cpp/scribe.h:22: error: expected class-name before '{' token
store.cpp: In member function 'void BufferStore::setNewRetryInterval(bool)':
store.cpp:1678: warning: comparison between signed and unsigned integer expressions
store.cpp:1690: 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:1738: warning:   when initialized here
In file included from env_default.h:39,
                 from common.h:57,
                 from conf.cpp:23:
../src/gen-cpp/scribe.h:22: error: expected class-name before '{' token
conf.cpp: In member function 'std::ostream& StoreConf::print(std::ostream&, uint32_t, bool, uint32_t) const':
conf.cpp:313: warning: unused variable 'len'
make[3]: *** [file.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [store_queue.o] Error 1
make[3]: *** [store.o] Error 1
make[3]: *** [conf.o] Error 1
make[3]: Leaving directory `/home/linko/rpmbuild/BUILD/scribe-2.2-1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/linko/rpmbuild/BUILD/scribe-2.2-1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/linko/rpmbuild/BUILD/scribe-2.2-1'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.UixGXH (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.UixGXH (%build)


What i do wrong?

lxf...@gmail.com

unread,
Oct 23, 2013, 11:39:48 PM10/23/13
to scribe...@googlegroups.com
Hi,have you solved the problems.
I got some errors like yours, and I really can't solve it.
Could you give me some info?


/home/work/lixiang17/scribe-master
make  all-recursive
make[1]: Entering directory `/home/work/lixiang17/scribe-master'
Making all in .
make[2]: Entering directory `/home/work/lixiang17/scribe-master'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/work/lixiang17/scribe-master'
Making all in src
make[2]: Entering directory `/home/work/lixiang17/scribe-master/src'
make  all-am
make[3]: Entering directory `/home/work/lixiang17/scribe-master/src'
if g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST= -DHAVE_BOOST_SYSTEM= -DHAVE_BOOST_FILESYSTEM=  -I. -I.  -I.. -I/home/work/lixiang17/thrift/include -I/home/work/lixiang17/thrift/include/thrift -I/usr/local/include/thrift -I/usr/local/include/thrift/fb303 -I/usr/local/include -I/home/work/lixiang17/boost_1-53-0-300_PD_BL/include     -Wall -O3 -MT scribe.o -MD -MP -MF ".deps/scribe.Tpo" -c -o scribe.o `test -f 'gen-cpp/scribe.cpp' || echo './'`gen-cpp/scribe.cpp; \
then mv -f ".deps/scribe.Tpo" ".deps/scribe.Po"; else rm -f ".deps/scribe.Tpo"; exit 1; fi
In file included from gen-cpp/scribe.cpp:7:
gen-cpp/scribe.h:22: error: expected class-name before '{' token
gen-cpp/scribe.cpp: In member function `virtual bool scribe::thrift::scribeProcessor::dispatchCall(apache::thrift::protocol::TProtocol*, apache::thrift::protocol::TProtocol*, const std::string&, int32_t, void*)':
gen-cpp/scribe.cpp:267: error: `dispatchCall' is not a member of `facebook::fb303::FacebookServiceProcessor'
gen-cpp/scribe.cpp: In member function `virtual boost::shared_ptr<apache::thrift::TProcessor> scribe::thrift::scribeProcessorFactory::getProcessor(const apache::thrift::TConnectionInfo&)':
gen-cpp/scribe.cpp:330: error: cannot allocate an object of type `scribe::thrift::scribeProcessor'
gen-cpp/scribe.cpp:330: error:   because the following virtual functions are abstract:
/home/work/lixiang17/thrift/include/thrift/TProcessor.h:143: error:  virtual bool apache::thrift::TProcessor::process(boost::shared_ptr<apache::thrift::protocol::TProtocol>, boost::shared_ptr<apache::thrift::protocol::TProtocol>, void*)
make[3]: *** [scribe.o] Error 1
make[3]: Leaving directory `/home/work/lixiang17/scribe-master/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/work/lixiang17/scribe-master/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/work/lixiang17/scribe-master'
make: *** [all] Error 2




在 2013年5月16日星期四UTC+8下午7时53分36秒,Lynx Ginger写道:
Reply all
Reply to author
Forward
0 new messages