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:[email protected]]
> Gesendet: Freitag, 29. Juli 2011 04:50
> An: [email protected]
> 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
> 
> 


Reply via email to