thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Meier" <ro...@bufferoverflow.ch>
Subject AW: AW: undefined references to VERSION_MASK and VERSION_1
Date Fri, 29 Jul 2011 07:42:06 GMT
What are the error messages when you build the library?

I recommend using the following flags, as mentioned at
https://issues.apache.org/jira/browse/THRIFT-916

sh bootstrap.sh
export CFLAGS='-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overflow'
export CPPFLAGS='-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overflow'
export CXXFLAGS='-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overflow'
sh configure --without-csharp --without-java --without-erlang
--without-python --without-perl --without-php --without-php_extension
--without-ruby --without-haskell
make

-Roger

> -----Urspr√ľngliche Nachricht-----
> Von: Gautam Thaker [mailto:gthaker@verizon.net]
> Gesendet: Freitag, 29. Juli 2011 04:50
> An: user@thrift.apache.org
> Betreff: Re: AW: undefined references to VERSION_MASK and VERSION_1
> 
> On 7/28/2011 11:31 AM, Matthieu Imbert wrote:
> 
> >
> > I also tried to compile with various g++ version:
> >
> > g++ 4.4.6: OK
> >
> > g++ 4.5.3: OK
> >
> > g++ 4.6.1: complains about undefined reference to
> >
>
`apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTran
sp
> ort>::VERSION_1'
> > and undefined reference to
> >
>
`apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTran
sp
> ort>::VERSION_MASK'
> 
> This is identical to what I was seeing. If you find a solution please
post.
> Thanks.
> 
> Gautam
> 
> 



Mime
View raw message