I met such error info when I compile the thrift-0.6.1. I don't know how to deal 
with.

make  all-recursive
make[1]: Entering directory `/root/thrift-0.6.1'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift-0.6.1/compiler/cpp'
make  all-am
make[3]: Entering directory `/root/thrift-0.6.1/compiler/cpp'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/thrift-0.6.1/compiler/cpp'
make[2]: Leaving directory `/root/thrift-0.6.1/compiler/cpp'
Making all in lib
make[2]: Entering directory `/root/thrift-0.6.1/lib'
Making all in cpp
make[3]: Entering directory `/root/thrift-0.6.1/lib/cpp'
Making all in .
make[4]: Entering directory `/root/thrift-0.6.1/lib/cpp'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/thrift-0.6.1/lib/cpp'
Making all in test
make[4]: Entering directory `/root/thrift-0.6.1/lib/cpp/test'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/thrift-0.6.1/lib/cpp/test'
make[3]: Leaving directory `/root/thrift-0.6.1/lib/cpp'
Making all in java
make[3]: Entering directory `/root/thrift-0.6.1/lib/java'
/usr/bin/ant 
Buildfile: /root/thrift-0.6.1/lib/java/build.xml

setup.init:

mvn.ant.tasks.download:
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] To: 
/root/thrift-0.6.1/lib/java/build/tools/maven-ant-tasks-2.1.3.jar
      [get] Not modified - so not downloaded

mvn.init:
[artifact:dependencies] [WARNING] Overriding profile: 
'maven-ant-tasks-repo-profile' (source: pom) with new instance from source: pom

init:

compile:

dist:

BUILD SUCCESSFUL
Total time: 3 seconds
make[3]: Leaving directory `/root/thrift-0.6.1/lib/java'
Making all in py
make[3]: Entering directory `/root/thrift-0.6.1/lib/py'
/usr/bin/python setup.py build
running build
running build_py
running build_ext
make[3]: Leaving directory `/root/thrift-0.6.1/lib/py'
Making all in rb
make[3]: Entering directory `/root/thrift-0.6.1/lib/rb'
if [ -n "" ] ; then /usr/bin/ruby setup.rb config --prefix= 
--rbdir='$libdir/ruby' --sodir='$libdir/ruby' ; elif [ -n "" ] ; then 
/usr/bin/ruby setup.rb config --prefix= ; else /usr/bin/ruby setup.rb config ; 
fi
---> lib
---> lib/thrift
---> lib/thrift/serializer
<--- lib/thrift/serializer
---> lib/thrift/server
<--- lib/thrift/server
---> lib/thrift/transport
<--- lib/thrift/transport
---> lib/thrift/core_ext
<--- lib/thrift/core_ext
---> lib/thrift/protocol
<--- lib/thrift/protocol
<--- lib/thrift
<--- lib
---> ext
/usr/bin/ruby18 /root/thrift-0.6.1/lib/rb/ext/extconf.rb
checking for strlcpy() in string.h... no
creating Makefile
<--- ext
/usr/bin/ruby setup.rb setup
---> lib
---> lib/thrift
---> lib/thrift/serializer
<--- lib/thrift/serializer
---> lib/thrift/server
<--- lib/thrift/server
---> lib/thrift/transport
<--- lib/thrift/transport
---> lib/thrift/core_ext
<--- lib/thrift/core_ext
---> lib/thrift/protocol
<--- lib/thrift/protocol
<--- lib/thrift
<--- lib
---> ext
make
make[4]: Entering directory `/root/thrift-0.6.1/lib/rb/ext'
x86_64-pc-linux-gnu-gcc -shared -o thrift_native.so memory_buffer.o 
thrift_native.o struct.o protocol.o binary_protocol_accelerated.o 
compact_protocol.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 
-Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined    -Wl,-R 
-Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lrt -ldl -lcrypt -lm   -lc
make[4]: Leaving directory `/root/thrift-0.6.1/lib/rb/ext'
<--- ext
make[3]: Leaving directory `/root/thrift-0.6.1/lib/rb'
Making all in php
make[3]: Entering directory `/root/thrift-0.6.1/lib/php'
cd src/ext/thrift_protocol/ \
  && make
make[4]: Entering directory `/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol'
/bin/sh /root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/libtool 
--mode=compile g++  -I. -I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol 
-DPHP_ATOM_INC -I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/include 
-I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/main 
-I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol 
-I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main 
-I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend 
-I/usr/lib64/php5.3/include/php/ext 
-I/usr/lib64/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp -o 
php_thrift_protocol.lo 
 g++ -I. -I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol -DPHP_ATOM_INC 
-I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/include 
-I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/main 
-I/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol 
-I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main 
-I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend 
-I/usr/lib64/php5.3/include/php/ext 
-I/usr/lib64/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp  
-fPIC -DPIC -o .libs/php_thrift_protocol.o
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:103: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void throw_tprotocolexception(char*, long int)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:410: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void throw_zend_exception_from_std_exception(const std::exception&)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:418: 
error: expected primary-expression before ‘,’ token
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:418: 
error: ‘tsrm_ls’ was not declared in this scope
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void binary_deserialize(int8_t, PHPInputTransport&, zval*, 
HashTable*)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:433: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:445: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void protocol_writeMessageBegin(zval*, const char*, int32_t, 
int32_t)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:666: 
error: redeclaration of ‘void*** tsrm_ls’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:661: 
error: ‘void*** tsrm_ls’ previously declared here
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void binary_serialize(int8_t, PHPOutputTransport&, zval**, 
HashTable*)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:758: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:760: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:762: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:806: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:833: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:855: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void binary_serialize_spec(zval*, PHPOutputTransport&, HashTable*)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:888: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void zif_thrift_protocol_write_binary(int, zval*, zval**, zval*, int, 
void***)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:955: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:957: 
warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In 
function ‘void zif_thrift_protocol_read_binary(int, zval*, zval**, zval*, int, 
void***)’:
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:1008:
 warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:1016:
 warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:1028:
 warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:1029:
 warning: deprecated conversion from string constant to ‘char*’
/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:1035:
 warning: deprecated conversion from string constant to ‘char*’
make[4]: *** [php_thrift_protocol.lo] Error 1
make[4]: Leaving directory `/root/thrift-0.6.1/lib/php/src/ext/thrift_protocol'
make[3]: *** [src/ext/thrift_protocol/modules/thrift_protocol.so] Error 2
make[3]: Leaving directory `/root/thrift-0.6.1/lib/php'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/thrift-0.6.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift-0.6.1'
make: *** [all] Error 2


> Date: Wed, 13 Jul 2011 11:18:11 -0500
> From: [email protected]
> To: [email protected]
> Subject: Re: Requirements for building on Gentoo‏
> 
> Can you pose the exact error that you are getting? 
> 
> ----- Original Message -----
> From: "chengzheng" <[email protected]>
> To: [email protected]
> Sent: Wednesday, July 13, 2011 4:13:18 PM
> Subject: Requirements for building on Gentoo‏
> 
> 
> Hi, I am a newcomer. However, my Linux is Gentoo. I have been trying to 
> build Thrift on my laptop but met some compiling problems. I wonder if 
> there are any extra requirements for building Thrift on Gentoo besides 
> the basic requirements listed on Wiki page?
> 
> Can someone help me?
> 
> Thanks a lot
> 
> Cheng                                                                         
>                                                   
                                          

Reply via email to