thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dima Brodsky <d...@cs.ubc.ca>
Subject Re: Compiling thrift under OpenBSD 4.2
Date Wed, 15 Oct 2008 21:17:04 GMT
Sure,

First I needed to add:

#include <sys/types.h> before #include <netinet/in.h> in
lib/cpp/src/Thrift.h

Then I am getting:

g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -Isrc -I/usr/local/include -g -O2 -MT libthrift_la-TimerManager.lo
-MD -MP -MF .deps/libthrift_la-TimerManager.Tpo -c src/concurrency/TimerManager.cpp  -fPIC
-DPIC -o .libs/libthrift_la-TimerManager.o
In file included from src/concurrency/Exception.h:11,
                 from src/concurrency/TimerManager.h:10,
                 from src/concurrency/TimerManager.cpp:7:
src/Thrift.h: In static member function `static void
   facebook::thrift::TOutput::errorTimeWrapper(const char*)':
src/Thrift.h:47: warning: array size (25) is smaller than minimum required (26)
src/concurrency/TimerManager.h: At global scope:
src/concurrency/TimerManager.h:94: error: `struct
   facebook::thrift::concurrency::TimerManager::Task' is private
src/concurrency/TimerManager.cpp:19: error: within this context
gmake[3]: *** [libthrift_la-TimerManager.lo] Error 1
gmake[3]: Leaving directory `/usr/local/src/thrift-20080411p1/lib/cpp'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/thrift-20080411p1/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/thrift-20080411p1'
gmake: *** [all] Error 2

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.2/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

./configure --without-java

Thanks for your help!
ttyl
Dima




On Wed, Oct 15, 2008 at 02:08:06PM -0700, David Reiss wrote:
> Can you post the error that you get?
> 
> Dima Brodsky wrote:
> > Hi,
> > 
> > I am having trouble compiling thrift under OpenBSD 4.2.  Are
> > there any special requirements for OpenBSD?  I have tried both
> > thrift-20080411p1 and thrift from trun to no avail.
> > 
> > Thanks!
> > ttyl
> > Dima
> > 
> > --
> > dima@cs.ubc.ca                                 http://www.cs.ubc.ca/~dima
> > 
> > "The price of reliability is the pursuit of the utmost simplicity.
> >  It is a price which the very rich find the most hard to pay."
> >                                                  (Sir Antony Hoare, 1980)
> > 

-- 
dima@cs.ubc.ca                                 http://www.cs.ubc.ca/~dima 

"The price of reliability is the pursuit of the utmost simplicity. 
 It is a price which the very rich find the most hard to pay." 
                                                 (Sir Antony Hoare, 1980) 


Mime
View raw message