Skip to content

Instantly share code, notes, and snippets.

@siracusa
Created February 21, 2013 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siracusa/5005268 to your computer and use it in GitHub Desktop.
Save siracusa/5005268 to your computer and use it in GitHub Desktop.
Error when attempting to compile scribe on OS X 10.8.2.
% make
make all-recursive
Making all in .
make[2]: Nothing to be done for `all-am'.
Making all in src
/usr/local/bin/thrift -o . -I /usr/local/share/ --gen cpp:pure_enums --gen py --gen php --gen java ../if/scribe.thrift
/usr/local/bin/thrift -o . -I /usr/local/share/ --gen cpp:pure_enums --gen py --gen php --gen java ../if/bucketupdater.thrift
make all-am
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/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
mv -f .deps/scribe.Tpo .deps/scribe.Po
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT scribe_types.o -MD -MP -MF .deps/scribe_types.Tpo -c -o scribe_types.o `test -f 'gen-cpp/scribe_types.cpp' || echo './'`gen-cpp/scribe_types.cpp
mv -f .deps/scribe_types.Tpo .deps/scribe_types.Po
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT scribe_constants.o -MD -MP -MF .deps/scribe_constants.Tpo -c -o scribe_constants.o `test -f 'gen-cpp/scribe_constants.cpp' || echo './'`gen-cpp/scribe_constants.cpp
mv -f .deps/scribe_constants.Tpo .deps/scribe_constants.Po
rm -f libscribe.a
/usr/bin/ar cru libscribe.a scribe.o scribe_types.o scribe_constants.o
ranlib libscribe.a
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT BucketStoreMapping.o -MD -MP -MF .deps/BucketStoreMapping.Tpo -c -o BucketStoreMapping.o `test -f 'gen-cpp/BucketStoreMapping.cpp' || echo './'`gen-cpp/BucketStoreMapping.cpp
mv -f .deps/BucketStoreMapping.Tpo .deps/BucketStoreMapping.Po
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT bucketupdater_constants.o -MD -MP -MF .deps/bucketupdater_constants.Tpo -c -o bucketupdater_constants.o `test -f 'gen-cpp/bucketupdater_constants.cpp' || echo './'`gen-cpp/bucketupdater_constants.cpp
mv -f .deps/bucketupdater_constants.Tpo .deps/bucketupdater_constants.Po
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT bucketupdater_types.o -MD -MP -MF .deps/bucketupdater_types.Tpo -c -o bucketupdater_types.o `test -f 'gen-cpp/bucketupdater_types.cpp' || echo './'`gen-cpp/bucketupdater_types.cpp
mv -f .deps/bucketupdater_types.Tpo .deps/bucketupdater_types.Po
rm -f libdynamicbucketupdater.a
/usr/bin/ar cru libdynamicbucketupdater.a BucketStoreMapping.o bucketupdater_constants.o bucketupdater_types.o
ranlib libdynamicbucketupdater.a
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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/local/include -Wall -O3 -MT store.o -MD -MP -MF .deps/store.Tpo -c -o store.o store.cpp
In file included from /usr/local/include/thrift/server/TNonblockingServer.h:26,
from env_default.h:24,
from common.h:57,
from store.cpp:28:
/usr/local/include/thrift/transport/TSocket.h:225: error: expected ';' before '*' token
/usr/local/include/thrift/transport/TSocket.h:246: error: expected ',' or '...' before '*' token
/usr/local/include/thrift/transport/TSocket.h:299: error: 'sockaddr_in' does not name a type
/usr/local/include/thrift/transport/TSocket.h:300: error: 'sockaddr_in6' does not name a type
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:1740: warning: when initialized here
make[3]: *** [store.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@robskillington
Copy link

Did you manage to work out the dependency/issue you ran into? I am having the same error on 10.8.2 with Thrift 0.9.0

@sawangupta
Copy link

Same for me on 10.8.2 with Thrift 0.9.0

g++ -DPACKAGE_NAME="scribe" -DPACKAGE_TARNAME="scribe" -DPACKAGE_VERSION="1.5.0" -DPACKAGE_STRING="scribe\ 1.5.0" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -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/local/include -Wall -O3 -MT store.o -MD -MP -MF .deps/store.Tpo -c -o store.o store.cpp
In file included from /usr/local/include/thrift/server/TNonblockingServer.h:26,
from env_default.h:24,
from common.h:57,
from store.cpp:28:
/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
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:1740: warning: when initialized here
make[3]: *_* [store.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@sawangupta
Copy link

Solved using:

export CPPFLAGS="-DHAVE_NETDB_H=1 -fpermissive"

@banks
Copy link

banks commented Mar 31, 2013

Thanks @sawangupta.

For anyone else finding this, the obvious thing that took me a minute to recall is that you need to rm config.cache and then rerun ./boostrap or ./configure after exporting the flags.

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