You're right! :) after I install python-dev

$ make
make  all-recursive
make[1]: Entering directory `/home/nino/Downloads/thrift-0.4.0'
Making all in compiler/cpp
make[2]: Entering directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
make  all-am
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
Making all in lib
make[2]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib'
Making all in cpp
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/cpp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/cpp'
Making all in py
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/py'
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building 'thrift.protocol.fastbinary' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/protocol/fastbinary.c 
-o build/temp.linux-x86_64-2.6/src/protocol/fastbinary.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.6/src/protocol/fastbinary.o -o 
build/lib.linux-x86_64-2.6/thrift/protocol/fastbinary.so
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/py'
Making all in erl
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/erl'
for dir in src; do \
        (cd $dir; make all); \
    done
make[4]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/erl/src'
mkdir ../ebin
   ERLC  thrift_server.erl
   ERLC  thrift_service.erl
   ERLC  thrift_protocol.erl
   ERLC  thrift_disk_log_transport.erl
   ERLC  thrift_processor.erl
   ERLC  thrift_buffered_transport.erl
   ERLC  thrift_framed_transport.erl
   ERLC  thrift_base64_transport.erl
   ERLC  thrift_memory_buffer.erl
   ERLC  thrift_binary_protocol.erl
   ERLC  test_handler.erl
   ERLC  thrift_socket_server.erl
   ERLC  test_service.erl
   ERLC  thrift_file_transport.erl
   ERLC  thrift_client.erl
   ERLC  thrift_transport.erl
   ERLC  thrift_socket_transport.erl
   ERLC  thrift_http_transport.erl
sed -e 's;%VSN%;0.1;' \
        -e 's;%PFX%;thrift;' \
        -e 's;%APP_NAME%;thrift;' \
        -e 's;%MODULES%;%MODULES%"thrift_server", "thrift_service", 
"thrift_protocol", "thrift_disk_log_transport", "thrift_processor", 
"thrift_buffered_transport", "thrift_framed_transport", 
"thrift_base64_transport", "thrift_memory_buffer", "thrift_binary_protocol", 
"test_handler", "thrift_socket_server", "test_service", 
"thrift_file_transport", "thrift_client", "thrift_transport", 
"thrift_socket_transport", "thrift_http_transport",;' \
        thrift.app.src > thrift.app.src".tmp"
sed -e 's/%MODULES%\(.*\),/\1/' \
        thrift.app.src".tmp" > ../ebin/thrift.app
rm thrift.app.src".tmp"
sed -e 's;%VSN%;0.1;' thrift.appup.src > ../ebin/thrift.appup
make[4]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/erl/src'
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/erl'
Making all in perl
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
Making all in test
make[4]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/perl/test'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/perl/test'
make[4]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
/usr/bin/perl Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS= 
INSTALL_BASE=/usr/local
Warning: prerequisite Bit::Vector 0 not found.
Writing Makefile-perl.mk for Thrift
make -f Makefile-perl.mk
make[5]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
cp lib/Thrift/Server.pm blib/lib/Thrift/Server.pm
cp lib/Thrift/Protocol.pm blib/lib/Thrift/Protocol.pm
cp lib/Thrift/Socket.pm blib/lib/Thrift/Socket.pm
cp lib/Thrift/BinaryProtocol.pm blib/lib/Thrift/BinaryProtocol.pm
cp lib/Thrift/FramedTransport.pm blib/lib/Thrift/FramedTransport.pm
cp lib/Thrift/BufferedTransport.pm blib/lib/Thrift/BufferedTransport.pm
cp lib/Thrift/Transport.pm blib/lib/Thrift/Transport.pm
cp lib/Thrift/HttpClient.pm blib/lib/Thrift/HttpClient.pm
cp lib/Thrift/MemoryBuffer.pm blib/lib/Thrift/MemoryBuffer.pm
cp lib/Thrift.pm blib/lib/Thrift.pm
make[5]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
find blib -name 'Makefile*' -exec rm -f {} \;
make[4]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/perl'
Making all in php
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/php'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/php'
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib'
make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib'
Making all in test
make[2]: Entering directory `/home/nino/Downloads/thrift-0.4.0/test'
Making all in py
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/test/py'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/test/py'
make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/test'
../compiler/cpp/thrift --gen cpp:dense DebugProtoTest.thrift
[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:40] 
64-bit constant "10000000000" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:168] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "4294967295" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "281474976710655" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "72057594037927935" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "4294967295" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "281474976710655" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "72057594037927935" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:196] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:203] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:40] 
64-bit constant "10000000000" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:168] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "4294967295" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "281474976710655" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "72057594037927935" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:178] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "4294967295" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "1099511627775" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "281474976710655" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "72057594037927935" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:187] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:196] 
64-bit constant "9223372036854775807" may not work in all languages.

[WARNING:/home/nino/Downloads/thrift-0.4.0/test/DebugProtoTest.thrift:203] 
64-bit constant "9223372036854775807" may not work in all languages.

/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../lib/cpp/src -I/usr/include -DDEBUG_MY_FEATURE  -g -O2 -MT 
DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c -o 
DebugProtoTest_types.lo `test -f 'gen-cpp/DebugProtoTest_types.cpp' || echo 
'./'`gen-cpp/DebugProtoTest_types.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF 
.deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp  -fPIC -DPIC 
-o .libs/DebugProtoTest_types.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF 
.deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp -o 
DebugProtoTest_types.o >/dev/null 2>&1
mv -f .deps/DebugProtoTest_types.Tpo .deps/DebugProtoTest_types.Plo
../compiler/cpp/thrift --gen cpp:dense OptionalRequiredTest.thrift
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../lib/cpp/src -I/usr/include -DDEBUG_MY_FEATURE  -g -O2 -MT 
OptionalRequiredTest_types.lo -MD -MP -MF .deps/OptionalRequiredTest_types.Tpo 
-c -o OptionalRequiredTest_types.lo `test -f 
'gen-cpp/OptionalRequiredTest_types.cpp' || echo 
'./'`gen-cpp/OptionalRequiredTest_types.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT OptionalRequiredTest_types.lo -MD -MP -MF 
.deps/OptionalRequiredTest_types.Tpo -c gen-cpp/OptionalRequiredTest_types.cpp  
-fPIC -DPIC -o .libs/OptionalRequiredTest_types.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT OptionalRequiredTest_types.lo -MD -MP -MF 
.deps/OptionalRequiredTest_types.Tpo -c gen-cpp/OptionalRequiredTest_types.cpp 
-o OptionalRequiredTest_types.o >/dev/null 2>&1
mv -f .deps/OptionalRequiredTest_types.Tpo .deps/OptionalRequiredTest_types.Plo
../compiler/cpp/thrift --gen cpp:dense ThriftTest.thrift
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../lib/cpp/src -I/usr/include -DDEBUG_MY_FEATURE  -g -O2 -MT 
ThriftTest_types.lo -MD -MP -MF .deps/ThriftTest_types.Tpo -c -o 
ThriftTest_types.lo `test -f 'gen-cpp/ThriftTest_types.cpp' || echo 
'./'`gen-cpp/ThriftTest_types.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT ThriftTest_types.lo -MD -MP -MF 
.deps/ThriftTest_types.Tpo -c gen-cpp/ThriftTest_types.cpp  -fPIC -DPIC -o 
.libs/ThriftTest_types.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT ThriftTest_types.lo -MD -MP -MF 
.deps/ThriftTest_types.Tpo -c gen-cpp/ThriftTest_types.cpp -o 
ThriftTest_types.o >/dev/null 2>&1
mv -f .deps/ThriftTest_types.Tpo .deps/ThriftTest_types.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../lib/cpp/src -I/usr/include -DDEBUG_MY_FEATURE  -g -O2 -MT 
ThriftTest_extras.lo -MD -MP -MF .deps/ThriftTest_extras.Tpo -c -o 
ThriftTest_extras.lo ThriftTest_extras.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT ThriftTest_extras.lo -MD -MP -MF 
.deps/ThriftTest_extras.Tpo -c ThriftTest_extras.cpp  -fPIC -DPIC -o 
.libs/ThriftTest_extras.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT ThriftTest_extras.lo -MD -MP -MF 
.deps/ThriftTest_extras.Tpo -c ThriftTest_extras.cpp -o ThriftTest_extras.o 
>/dev/null 2>&1
mv -f .deps/ThriftTest_extras.Tpo .deps/ThriftTest_extras.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../lib/cpp/src -I/usr/include -DDEBUG_MY_FEATURE  -g -O2 -MT 
DebugProtoTest_extras.lo -MD -MP -MF .deps/DebugProtoTest_extras.Tpo -c -o 
DebugProtoTest_extras.lo DebugProtoTest_extras.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT DebugProtoTest_extras.lo -MD -MP -MF 
.deps/DebugProtoTest_extras.Tpo -c DebugProtoTest_extras.cpp  -fPIC -DPIC -o 
.libs/DebugProtoTest_extras.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE -g -O2 -MT DebugProtoTest_extras.lo -MD -MP -MF 
.deps/DebugProtoTest_extras.Tpo -c DebugProtoTest_extras.cpp -o 
DebugProtoTest_extras.o >/dev/null 2>&1
mv -f .deps/DebugProtoTest_extras.Tpo .deps/DebugProtoTest_extras.Plo
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o libtestgencpp.la  
DebugProtoTest_types.lo OptionalRequiredTest_types.lo DebugProtoTest_types.lo 
ThriftTest_types.lo ThriftTest_extras.lo DebugProtoTest_extras.lo 
../lib/cpp/libthrift.la -lrt -lpthread 
copying selected object files to avoid basename conflicts...
libtool: link: ln .libs/DebugProtoTest_types.o 
.libs/libtestgencpp.lax/lt1-DebugProtoTest_types.o || cp 
.libs/DebugProtoTest_types.o .libs/libtestgencpp.lax/lt1-DebugProtoTest_types.o
libtool: link: ar cru .libs/libtestgencpp.a .libs/DebugProtoTest_types.o 
.libs/OptionalRequiredTest_types.o 
.libs/libtestgencpp.lax/lt1-DebugProtoTest_types.o .libs/ThriftTest_types.o 
.libs/ThriftTest_extras.o .libs/DebugProtoTest_extras.o
libtool: link: ranlib .libs/libtestgencpp.a
libtool: link: rm -fr .libs/libtestgencpp.lax
libtool: link: ( cd ".libs" && rm -f "libtestgencpp.la" && ln -s 
"../libtestgencpp.la" "libtestgencpp.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include 
-DDEBUG_MY_FEATURE  -g -O2 -MT Benchmark.o -MD -MP -MF .deps/Benchmark.Tpo -c 
-o Benchmark.o Benchmark.cpp
mv -f .deps/Benchmark.Tpo .deps/Benchmark.Po
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o Benchmark 
Benchmark.o libtestgencpp.la -lrt -lpthread 
libtool: link: g++ -g -O2 -o .libs/Benchmark Benchmark.o  
./.libs/libtestgencpp.a 
/home/nino/Downloads/thrift-0.4.0/lib/cpp/.libs/libthrift.so -lrt -lpthread
make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/test'
make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/test'
make[2]: Entering directory `/home/nino/Downloads/thrift-0.4.0'
make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0'
make[1]: Leaving directory `/home/nino/Downloads/thrift-0.4.0'

Thanks Samal.

--- On Wed, 9/15/10, samal gorai <[email protected]> wrote:

From: samal gorai <[email protected]>
Subject: Re: Error on $ make
To: [email protected]
Date: Wednesday, September 15, 2010, 2:25 PM

Check for python-devel in your system.


On Wed, Sep 15, 2010 at 10:53 AM, Paolo Amarillento <[email protected]> wrote:

> Hello I've got an error after running $ make. :( Is that fine? Please
> advice. Thanks. :)
>
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/nino/Downloads/thrift-0.4.0'
> Making all in compiler/cpp
> make[2]: Entering directory
> `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
> make  all-am
> make[3]: Entering directory
> `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
> make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/compiler/cpp'
> Making all in lib
> make[2]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib'
> Making all in cpp
> make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/cpp'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/cpp'
> Making all in py
> make[3]: Entering directory `/home/nino/Downloads/thrift-0.4.0/lib/py'
> /usr/bin/python setup.py build
> running build
> running build_py
> running build_ext
> building 'thrift.protocol.fastbinary' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
> src/protocol/fastbinary.c -o
> build/temp.linux-x86_64-2.6/src/protocol/fastbinary.o
> src/protocol/fastbinary.c:20:20: error: Python.h: No such file or directory
> src/protocol/fastbinary.c:21:23: error: cStringIO.h: No such file or
> directory
> src/protocol/fastbinary.c:123: error: expected specifier-qualifier-list
> before ‘PyObject’
> src/protocol/fastbinary.c:133: error: expected specifier-qualifier-list
> before ‘PyObject’
> src/protocol/fastbinary.c:142: error: expected specifier-qualifier-list
> before ‘PyObject’
> src/protocol/fastbinary.c:153: error: expected specifier-qualifier-list
> before ‘PyObject’
> src/protocol/fastbinary.c:163: error: expected specifier-qualifier-list
> before ‘PyObject’
> src/protocol/fastbinary.c:168: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c:170: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c: In function ‘check_ssize_t_32’:
> src/protocol/fastbinary.c:175: warning: implicit declaration of function
> ‘PyErr_Occurred’
> src/protocol/fastbinary.c:179: warning: implicit declaration of function
> ‘PyErr_SetString’
> src/protocol/fastbinary.c:179: error: ‘PyExc_OverflowError’ undeclared
> (first use in this function)
> src/protocol/fastbinary.c:179: error: (Each undeclared identifier is
> reported only once
> src/protocol/fastbinary.c:179: error: for each function it appears in.)
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:186: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:205: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘parse_set_list_args’:
> src/protocol/fastbinary.c:206: warning: implicit declaration of function
> ‘PyTuple_Size’
> src/protocol/fastbinary.c:206: error: ‘typeargs’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:207: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:211: warning: implicit declaration of function
> ‘PyInt_AsLong’
> src/protocol/fastbinary.c:211: warning: implicit declaration of function
> ‘PyTuple_GET_ITEM’
> src/protocol/fastbinary.c:216: error: ‘SetListTypeArgs’ has no member named
> ‘typeargs’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:222: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘parse_map_args’:
> src/protocol/fastbinary.c:223: error: ‘typeargs’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:224: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:238: error: ‘MapTypeArgs’ has no member named
> ‘ktypeargs’
> src/protocol/fastbinary.c:239: error: ‘MapTypeArgs’ has no member named
> ‘vtypeargs’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:245: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘parse_struct_args’:
> src/protocol/fastbinary.c:246: error: ‘typeargs’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:247: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:251: error: ‘StructTypeArgs’ has no member named
> ‘klass’
> src/protocol/fastbinary.c:252: error: ‘StructTypeArgs’ has no member named
> ‘spec’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:258: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘parse_struct_item_spec’:
> src/protocol/fastbinary.c:261: error: ‘spec_tuple’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:262: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:276: error: ‘StructItemSpec’ has no member named
> ‘attrname’
> src/protocol/fastbinary.c:277: error: ‘StructItemSpec’ has no member named
> ‘typeargs’
> src/protocol/fastbinary.c:278: error: ‘StructItemSpec’ has no member named
> ‘defval’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:289: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:294: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:299: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:304: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:309: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:323: error: expected ‘)’ before ‘*’ token
> src/protocol/fastbinary.c:569: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c: In function ‘free_decodebuf’:
> src/protocol/fastbinary.c:598: warning: implicit declaration of function
> ‘Py_XDECREF’
> src/protocol/fastbinary.c:598: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:599: error: ‘DecodeBuffer’ has no member named
> ‘refill_callable’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:603: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘decode_buffer_from_obj’:
> src/protocol/fastbinary.c:604: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:604: warning: implicit declaration of function
> ‘PyObject_GetAttr’
> src/protocol/fastbinary.c:604: error: ‘obj’ undeclared (first use in this
> function)
> src/protocol/fastbinary.c:604: error: ‘_intern_cstringio_buf’ undeclared
> (first use in this function)
> src/protocol/fastbinary.c:605: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:609: warning: implicit declaration of function
> ‘PycStringIO_InputCheck’
> src/protocol/fastbinary.c:609: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:611: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:615: error: ‘DecodeBuffer’ has no member named
> ‘refill_callable’
> src/protocol/fastbinary.c:615: error: ‘_intern_cstringio_refill’ undeclared
> (first use in this function)
> src/protocol/fastbinary.c:617: error: ‘DecodeBuffer’ has no member named
> ‘refill_callable’
> src/protocol/fastbinary.c:622: warning: implicit declaration of function
> ‘PyCallable_Check’
> src/protocol/fastbinary.c:622: error: ‘DecodeBuffer’ has no member named
> ‘refill_callable’
> src/protocol/fastbinary.c: In function ‘readBytes’:
> src/protocol/fastbinary.c:638: error: ‘PycStringIO’ undeclared (first use
> in this function)
> src/protocol/fastbinary.c:638: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:645: error: ‘PyObject’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:645: error: ‘newiobuf’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:648: warning: implicit declaration of function
> ‘PyObject_CallFunction’
> src/protocol/fastbinary.c:649: error: ‘DecodeBuffer’ has no member named
> ‘refill_callable’
> src/protocol/fastbinary.c:649: error: ‘NULL’ undeclared (first use in this
> function)
> src/protocol/fastbinary.c:655: warning: implicit declaration of function
> ‘Py_CLEAR’
> src/protocol/fastbinary.c:655: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:656: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:658: error: ‘DecodeBuffer’ has no member named
> ‘stringiobuf’
> src/protocol/fastbinary.c:666: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c: In function ‘checkTypeByte’:
> src/protocol/fastbinary.c:730: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c: In function ‘skip’:
> src/protocol/fastbinary.c:842: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c:859: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c:859: error: expected declaration specifiers or
> ‘...’ before ‘PyObject’
> src/protocol/fastbinary.c: In function ‘decode_struct’:
> src/protocol/fastbinary.c:860: error: ‘spec_seq’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:868: error: ‘PyObject’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:868: error: ‘item_spec’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:869: error: ‘fieldval’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:869: error: ‘NULL’ undeclared (first use in this
> function)
> src/protocol/fastbinary.c:886: error: ‘Py_None’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:897: error: too many arguments to function
> ‘parse_struct_item_spec’
> src/protocol/fastbinary.c:902: error: ‘PyExc_TypeError’ undeclared (first
> use in this function)
> src/protocol/fastbinary.c:909: warning: implicit declaration of function
> ‘decode_val’
> src/protocol/fastbinary.c:909: error: ‘StructItemSpec’ has no member named
> ‘typeargs’
> src/protocol/fastbinary.c:914: warning: implicit declaration of function
> ‘PyObject_SetAttr’
> src/protocol/fastbinary.c:914: error: ‘output’ undeclared (first use in
> this function)
> src/protocol/fastbinary.c:914: error: ‘StructItemSpec’ has no member named
> ‘attrname’
> src/protocol/fastbinary.c:915: warning: implicit declaration of function
> ‘Py_DECREF’
> src/protocol/fastbinary.c: At top level:
> src/protocol/fastbinary.c:927: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c:1144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/protocol/fastbinary.c:1179: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘ThriftFastBinaryMethods’
> src/protocol/fastbinary.c:1188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘initfastbinary’
> error: command 'gcc' failed with exit status 1
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib/py'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/nino/Downloads/thrift-0.4.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/nino/Downloads/thrift-0.4.0'
> make: *** [all] Error 2
>
>
>
>
>



      

Reply via email to