You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Mark Murphy <mm...@commonsware.com> on 2008/10/08 01:13:36 UTC

Thrift installation/build error

Environment: Ubuntu Hardy Heron

Source: latest tarball from gitweb.thrift-rpc.org

Symptoms: ./boostrap.sh runs clean. ./configure seems to run clean. make 
blows up partway through the build:

  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I./src -Wall -g -O2 
-MT libthriftnb_la-TNonblockingServer.lo -MD -MP -MF 
.deps/libthriftnb_la-TNonblockingServer.Tpo -c 
src/server/TNonblockingServer.cpp  -fPIC -DPIC -o 
.libs/libthriftnb_la-TNonblockingServer.o
src/server/TNonblockingServer.cpp: In member function ‘void 
facebook::thrift::server::TConnection::transition()’:
src/server/TNonblockingServer.cpp:261: error: no matching function for 
call to ‘facebook::thrift::TOutput::printf(_IO_FILE*&, const char [44], 
const char*)’
./src/Thrift.h:50: note: candidates are: void 
facebook::thrift::TOutput::printf(const char*, ...)
make[3]: *** [libthriftnb_la-TNonblockingServer.lo] Error 1
make[3]: Leaving directory `/mnt/shared/projects/3rdParty/thrift/lib/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/shared/projects/3rdParty/thrift/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/shared/projects/3rdParty/thrift'
make: *** [all] Error 2

Any idea what I am doing wrong?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

Re: Thrift installation/build error

Posted by Mark Murphy <mm...@commonsware.com>.
David Reiss wrote:
> This is because I forgot to compile the code before checking in a contributed patch.
> Bad me!  I just committed the fix.  It should propagate to gitweb.thrift-rpc.org in
> about 5 minutes.

Yup, that fixed it.

Many thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

Re: Thrift installation/build error

Posted by David Reiss <dr...@facebook.com>.
This is because I forgot to compile the code before checking in a contributed patch.
Bad me!  I just committed the fix.  It should propagate to gitweb.thrift-rpc.org in
about 5 minutes.

Mark Murphy wrote:
> Environment: Ubuntu Hardy Heron
> 
> Source: latest tarball from gitweb.thrift-rpc.org
> 
> Symptoms: ./boostrap.sh runs clean. ./configure seems to run clean. make 
> blows up partway through the build:
> 
>   g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I./src -Wall -g -O2 
> -MT libthriftnb_la-TNonblockingServer.lo -MD -MP -MF 
> .deps/libthriftnb_la-TNonblockingServer.Tpo -c 
> src/server/TNonblockingServer.cpp  -fPIC -DPIC -o 
> .libs/libthriftnb_la-TNonblockingServer.o
> src/server/TNonblockingServer.cpp: In member function ‘void 
> facebook::thrift::server::TConnection::transition()’:
> src/server/TNonblockingServer.cpp:261: error: no matching function for 
> call to ‘facebook::thrift::TOutput::printf(_IO_FILE*&, const char [44], 
> const char*)’
> ./src/Thrift.h:50: note: candidates are: void 
> facebook::thrift::TOutput::printf(const char*, ...)
> make[3]: *** [libthriftnb_la-TNonblockingServer.lo] Error 1
> make[3]: Leaving directory `/mnt/shared/projects/3rdParty/thrift/lib/cpp'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/mnt/shared/projects/3rdParty/thrift/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/shared/projects/3rdParty/thrift'
> make: *** [all] Error 2
> 
> Any idea what I am doing wrong?
> 
> Thanks!
>