title: Unable to compile thrift-0.9.0 on Centos6.4
body: <p>I have followed all the instructions mentioned in the Apache thrift wiki. I downloaded the thrift source code, then installed the dependencies</p>
  
  <pre><code>sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
  </code></pre>
  
  <p>Then ran</p>
  
  <pre><code>./configure
  </code></pre>
  
  <p>(didn't run bootstrap.sh because there is no bootstrap.sh in the thrift-0.9.0 codebase). Finally, I get this error. Any idea why this is happening?</p>
  
  <pre><code>libtool: link: ( cd ".libs" &amp;&amp; rm -f "libthriftz.la" &amp;&amp; ln -s "../libthriftz.la" "libthriftz.la" )
  /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/include -I./src -I./src/thrift -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtNetwork    -Wall -g -O2 -MT libthriftqt_la-moc_TQTcpServer.lo -MD -MP -MF .deps/libthriftqt_la-moc_TQTcpServer.Tpo -c -o libthriftqt_la-moc_TQTcpServer.lo `test -f 'src/thrift/qt/moc_TQTcpServer.cpp' || echo './'`src/thrift/qt/moc_TQTcpServer.cpp
  libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I./src -I./src/thrift -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtNetwork -Wall -g -O2 -MT libthriftqt_la-moc_TQTcpServer.lo -MD -MP -MF .deps/libthriftqt_la-moc_TQTcpServer.Tpo -c src/thrift/qt/moc_TQTcpServer.cpp  -fPIC -DPIC -o .libs/libthriftqt_la-moc_TQTcpServer.o
  src/thrift/qt/moc_TQTcpServer.cpp:14:2: error: #error "This file was generated using the moc from 4.8.1. It"
  src/thrift/qt/moc_TQTcpServer.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."
  src/thrift/qt/moc_TQTcpServer.cpp:16:2: error: #error "(The moc has changed too much.)"
  src/thrift/qt/moc_TQTcpServer.cpp:47: error: no 'void apache::thrift::async::TQTcpServer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' member function declared in class 'apache::thrift::async::TQTcpServer'
  src/thrift/qt/moc_TQTcpServer.cpp:62: error: 'const QMetaObjectExtraData apache::thrift::async::TQTcpServer::staticMetaObjectExtraData' is not a static member of 'class apache::thrift::async::TQTcpServer'
  src/thrift/qt/moc_TQTcpServer.cpp:63: error: 'qt_static_metacall' was not declared in this scope
  src/thrift/qt/moc_TQTcpServer.cpp:64: error: too many initializers for 'const QMetaObjectExtraData'
  src/thrift/qt/moc_TQTcpServer.cpp:68: error: 'staticMetaObjectExtraData' was not declared in this scope
  src/thrift/qt/moc_TQTcpServer.cpp:69: error: too many initializers for 'QMetaObject::&lt;anonymous struct&gt;'
  src/thrift/qt/moc_TQTcpServer.cpp: In member function 'virtual int apache::thrift::async::TQTcpServer::qt_metacall(QMetaObject::Call, int, void**)':
  src/thrift/qt/moc_TQTcpServer.cpp:95: error: 'qt_static_metacall' was not declared in this scope
  make[4]: *** [libthriftqt_la-moc_TQTcpServer.lo] Error 1
  make[4]: Leaving directory `/home/rjain/Downloads/thrift-0.9.0/lib/cpp'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/home/rjain/Downloads/thrift-0.9.0/lib/cpp'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/home/rjain/Downloads/thrift-0.9.0/lib'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/home/rjain/Downloads/thrift-0.9.0'
  make: *** [all] Error 2
  </code></pre>
  
  <p>I download the source from: <a href="http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.0/thrift-0.9.0.tar.gz" rel="nofollow">http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.0/thrift-0.9.0.tar.gz</a></p>