Hi I am trying to setup thrift on Ubuntu
While doing make I get the following error: @ejabberd:~/thrift# make all-recursive [1]: Entering directory `/root/thrift' ng all in compiler/cpp [2]: Entering directory `/root/thrift/compiler/cpp' nerating version.h... No changes. all-am [3]: Entering directory `/root/thrift/compiler/cpp' [3]: Nothing to be done for `all-am'. [3]: Leaving directory `/root/thrift/compiler/cpp' [2]: Leaving directory `/root/thrift/compiler/cpp' ng all in lib [2]: Entering directory `/root/thrift/lib' ng all in cpp [3]: Entering directory `/root/thrift/lib/cpp' [3]: Nothing to be done for `all'. [3]: Leaving directory `/root/thrift/lib/cpp' ng all in py [3]: Entering directory `/root/thrift/lib/py' /bin/python setup.py build ing build ing build_py ing build_ext ding 'thrift.protocol.fastbinary' extension -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPI /usr/include/python2.4 -c src/protocol/fastbinary.c -o build/temp.linux-i686 /src/protocol/fastbinary.o protocol/fastbinary.c:20:20: error: Python.h: No such file or directory protocol/fastbinary.c:21:23: error: cStringIO.h: No such file or directory protocol/fastbinary.c:123: error: expected specifier-qualifier-list before ' ject' protocol/fastbinary.c:133: error: expected specifier-qualifier-list before ' ject' protocol/fastbinary.c:142: error: expected specifier-qualifier-list before ' ject' protocol/fastbinary.c:153: error: expected specifier-qualifier-list before ' ject' protocol/fastbinary.c:163: error: expected specifier-qualifier-list before ' ject' protocol/fastbinary.c:168: error: expected '=', ',', ';', 'asm' or '__attrib _' before '*' token protocol/fastbinary.c:170: error: expected '=', ',', ';', 'asm' or '__attrib _' before '*' token protocol/fastbinary.c: In function 'check_ssize_t_32': protocol/fastbinary.c:175: warning: implicit declaration of function 'PyErr_ rred' protocol/fastbinary.c:179: warning: implicit declaration of function 'PyErr_ tring' protocol/fastbinary.c:179: error: 'PyExc_OverflowError' undeclared (first us this function) protocol/fastbinary.c:179: error: (Each undeclared identifier is reported on nce protocol/fastbinary.c:179: error: for each function it appears in.) protocol/fastbinary.c: At top level: protocol/fastbinary.c:186: error: expected ')' before '*' token protocol/fastbinary.c:205: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'parse_set_list_args': protocol/fastbinary.c:206: warning: implicit declaration of function 'PyTupl ze' protocol/fastbinary.c:206: error: 'typeargs' undeclared (first use in this f ion) protocol/fastbinary.c:207: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:211: warning: implicit declaration of function 'PyInt_ ng' protocol/fastbinary.c:211: warning: implicit declaration of function 'PyTupl T_ITEM' protocol/fastbinary.c:216: error: 'SetListTypeArgs' has no member named 'typ s' protocol/fastbinary.c: At top level: protocol/fastbinary.c:222: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'parse_map_args': protocol/fastbinary.c:223: error: 'typeargs' undeclared (first use in this f ion) protocol/fastbinary.c:224: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:238: error: 'MapTypeArgs' has no member named 'ktypear protocol/fastbinary.c:239: error: 'MapTypeArgs' has no member named 'vtypear protocol/fastbinary.c: At top level: protocol/fastbinary.c:245: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'parse_struct_args': protocol/fastbinary.c:246: error: 'typeargs' undeclared (first use in this f ion) protocol/fastbinary.c:247: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:251: error: 'StructTypeArgs' has no member named 'klas protocol/fastbinary.c:252: error: 'StructTypeArgs' has no member named 'spec protocol/fastbinary.c: At top level: protocol/fastbinary.c:258: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'parse_struct_item_spec': protocol/fastbinary.c:261: error: 'spec_tuple' undeclared (first use in this ction) protocol/fastbinary.c:262: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:276: error: 'StructItemSpec' has no member named 'attr ' protocol/fastbinary.c:277: error: 'StructItemSpec' has no member named 'type ' protocol/fastbinary.c:278: error: 'StructItemSpec' has no member named 'defv protocol/fastbinary.c: At top level: protocol/fastbinary.c:289: error: expected ')' before '*' token protocol/fastbinary.c:294: error: expected ')' before '*' token protocol/fastbinary.c:299: error: expected ')' before '*' token protocol/fastbinary.c:304: error: expected ')' before '*' token protocol/fastbinary.c:309: error: expected ')' before '*' token protocol/fastbinary.c:323: error: expected ')' before '*' token protocol/fastbinary.c:569: error: expected '=', ',', ';', 'asm' or '__attrib _' before '*' token protocol/fastbinary.c: In function 'free_decodebuf': protocol/fastbinary.c:598: warning: implicit declaration of function 'Py_XDE ' protocol/fastbinary.c:598: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:599: error: 'DecodeBuffer' has no member named 'refill lable' protocol/fastbinary.c: At top level: protocol/fastbinary.c:603: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'decode_buffer_from_obj': protocol/fastbinary.c:604: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:604: warning: implicit declaration of function 'PyObje etAttr' protocol/fastbinary.c:604: error: 'obj' undeclared (first use in this functi protocol/fastbinary.c:604: error: '_intern_cstringio_buf' undeclared (first in this function) protocol/fastbinary.c:605: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:609: warning: implicit declaration of function 'PycStr O_InputCheck' protocol/fastbinary.c:609: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:611: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:615: error: 'DecodeBuffer' has no member named 'refill lable' protocol/fastbinary.c:615: error: '_intern_cstringio_refill' undeclared (fir se in this function) protocol/fastbinary.c:617: error: 'DecodeBuffer' has no member named 'refill lable' protocol/fastbinary.c:622: warning: implicit declaration of function 'PyCall _Check' protocol/fastbinary.c:622: error: 'DecodeBuffer' has no member named 'refill lable' protocol/fastbinary.c: In function 'readBytes': protocol/fastbinary.c:638: error: 'PycStringIO' undeclared (first use in thi nction) protocol/fastbinary.c:638: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:645: error: 'PyObject' undeclared (first use in this f ion) protocol/fastbinary.c:645: error: 'newiobuf' undeclared (first use in this f ion) protocol/fastbinary.c:648: warning: implicit declaration of function 'PyObje allFunction' protocol/fastbinary.c:649: error: 'DecodeBuffer' has no member named 'refill lable' protocol/fastbinary.c:655: warning: implicit declaration of function 'Py_CLE protocol/fastbinary.c:655: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:656: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:658: error: 'DecodeBuffer' has no member named 'string f' protocol/fastbinary.c:666: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c: In function 'checkTypeByte': protocol/fastbinary.c:730: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c: In function 'skip': protocol/fastbinary.c:842: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c: At top level: protocol/fastbinary.c:855: error: expected '=', ',', ';', 'asm' or '__attrib _' before '*' token protocol/fastbinary.c:859: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c:859: error: expected declaration specifiers or '...' b e 'PyObject' protocol/fastbinary.c: In function 'decode_struct': protocol/fastbinary.c:860: error: 'spec_seq' undeclared (first use in this f ion) protocol/fastbinary.c:868: error: 'PyObject' undeclared (first use in this f ion) protocol/fastbinary.c:868: error: 'item_spec' undeclared (first use in this tion) protocol/fastbinary.c:869: error: 'fieldval' undeclared (first use in this f ion) protocol/fastbinary.c:886: error: 'Py_None' undeclared (first use in this fu on) protocol/fastbinary.c:897: error: too many arguments to function 'parse_stru tem_spec' protocol/fastbinary.c:902: error: 'PyExc_TypeError' undeclared (first use in s function) protocol/fastbinary.c:909: warning: implicit declaration of function 'decode ' protocol/fastbinary.c:909: error: 'StructItemSpec' has no member named 'type ' protocol/fastbinary.c:914: warning: implicit declaration of function 'PyObje etAttr' protocol/fastbinary.c:914: error: 'output' undeclared (first use in this fun n) protocol/fastbinary.c:914: error: 'StructItemSpec' has no member named 'attr ' protocol/fastbinary.c:915: warning: implicit declaration of function 'Py_DEC protocol/fastbinary.c: At top level: protocol/fastbinary.c:927: error: expected '=', ',', ';', 'asm' or '__attrib _' before '*' token protocol/fastbinary.c:1144: error: expected '=', ',', ';', 'asm' or '__attri __' before '*' token protocol/fastbinary.c:1179: error: expected '=', ',', ';', 'asm' or '__attri __' before 'ThriftFastBinaryMethods' protocol/fastbinary.c:1188: error: expected '=', ',', ';', 'asm' or '__attri __' before 'initfastbinary' r: command 'gcc' failed with exit status 1 [3]: *** [all-local] Error 1 [3]: Leaving directory `/root/thrift/lib/py' [2]: *** [all-recursive] Error 1 [2]: Leaving directory `/root/thrift/lib' [1]: *** [all-recursive] Error 1 [1]: Leaving directory `/root/thrift' : *** [all] Error 2 Please Help DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.