Skip to content

Instantly share code, notes, and snippets.

@krobertson
Created August 11, 2010 23:19
Show Gist options
  • Save krobertson/519994 to your computer and use it in GitHub Desktop.
Save krobertson/519994 to your computer and use it in GitHub Desktop.
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/usr/local/include -I/usr/local/include/thrift -I/usr/local/include/thrift -I/usr/local/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
In file included from env_default.h:24,
from common.h:57,
from store.cpp:28:
/usr/local/include/thrift/server/TNonblockingServer.h:33:19: error: event.h: No such file or directory
In file included from env_default.h:24,
from common.h:57,
from store.cpp:28:
/usr/local/include/thrift/server/TNonblockingServer.h:93: error: expected ‘;’ before ‘*’ token
/usr/local/include/thrift/server/TNonblockingServer.h:96: error: field ‘serverEvent_’ has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h:99: error: field ‘notificationEvent_’ has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h:280: error: expected ‘;’ before ‘*’ token
/usr/local/include/thrift/server/TNonblockingServer.h:285: error: expected `;' before ‘void’
/usr/local/include/thrift/server/TNonblockingServer.h:543: error: ‘event_base’ has not been declared
/usr/local/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr<apache::thrift::TProcessor>, int)’:
/usr/local/include/thrift/server/TNonblockingServer.h:173: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/usr/local/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr<apache::thrift::TProcessor>, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory>, int, boost::shared_ptr<apache::thrift::concurrency::ThreadManager>)’:
/usr/local/include/thrift/server/TNonblockingServer.h:195: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/usr/local/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr<apache::thrift::TProcessor>, boost::shared_ptr<apache::thrift::transport::TTransportFactory>, boost::shared_ptr<apache::thrift::transport::TTransportFactory>, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory>, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory>, int, boost::shared_ptr<apache::thrift::concurrency::ThreadManager>)’:
/usr/local/include/thrift/server/TNonblockingServer.h:226: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/usr/local/include/thrift/server/TNonblockingServer.h: At global scope:
/usr/local/include/thrift/server/TNonblockingServer.h:592: error: field ‘event_’ has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h:634: error: field ‘taskEvent_’ has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h: In member function ‘void apache::thrift::server::TConnection::setRead()’:
/usr/local/include/thrift/server/TNonblockingServer.h:654: error: ‘EV_READ’ was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h:654: error: ‘EV_PERSIST’ was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h: In member function ‘void apache::thrift::server::TConnection::setWrite()’:
/usr/local/include/thrift/server/TNonblockingServer.h:659: error: ‘EV_WRITE’ was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h:659: error: ‘EV_PERSIST’ was not declared in this scope
store.cpp: In member function ‘void BufferStore::setNewRetryInterval(bool)’:
store.cpp:1673: warning: comparison between signed and unsigned integer expressions
store.cpp:1685: 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:1735: warning: when initialized here
@AMSTKO
Copy link

AMSTKO commented Jul 25, 2011

Hi ! I has this problem. Have you a solution ? :-)
thx

@krobertson
Copy link
Author

We abandoned that project and ended up using simple log files that were scp'd to a central server every 5 minutes by logrotate.

We had tons of issues getting scribe to build, then we got it to build, but it wasn't quite working. I think in this error, it was using the wrong version of thrift or lib boost. I think I went back and re-read some docs and it said to use a specific git commit of one of those to build against. Facebook doesn't know how to release software when their documentation is giving git SHAs to build against.

@AMSTKO
Copy link

AMSTKO commented Aug 7, 2011

Ok.. thx.
What is your new log files system? If you do not mind.

@krobertson
Copy link
Author

It wasn't a system, it was just a combination of existing stuff. We write to a local log file using the framework's Logger class (this was a Rails app), we used logrotate to rotate it ever 5mins, and then scp it over to a central box with a special ssh key within the logrotate script. Its boring but it works and took a few hours to put together, far less time than we spent with scribe. Couple that with a few nagios monitors to make sure files don't get stuck and its worked great for almost a year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment