Thanks for the report, I'll send out a review for this today.
In the meantime, if you're keen to get going, a simple fix is to
change third_party/libprocess/include/stout/protobuf.hpp line 131 from:
} else if (length != size) {
to:
} else if (static_cast<uint32_t>(length) != size) {
It's interesting this only appears for you now, since this code was from
2011.
On Fri, Dec 7, 2012 at 11:22 AM, Jim Donahue <[email protected]> wrote:
> This is off of trunk; gcc version is 4.6.2.
>
> Error message is "In function protobuf.hpp in function 'Result<bool>
> protobuf::read(int, google::protobuf::Message*)': ... protobuf.hpp:131:24:
> Comparison between signed and unsigned integer expressions
> [-Werror=signed-compare]"
>
> Jim
>
> -----Original Message-----
> From: Benjamin Mahler [mailto:[email protected]]
> Sent: Friday, December 07, 2012 11:09 AM
> To: [email protected]
> Subject: Re: Error building on Amazon Linux
>
> Thanks for the report, a few questions:
>
> Is this off of trunk?
> Can you provide the gcc version?
> Can you provide the unedited gcc error? (As in something with the line
> number)
>
> Thanks!
>
>
> On Fri, Dec 7, 2012 at 11:04 AM, Jim Donahue <[email protected]> wrote:
>
> > I just tried building Mesos on Amazon Linux this morning, but it's
> failing
> > compiling protobuf.hpp in function Result<bool> protobuf::read(int,
> > google::protobuf::Message*) with the error:
> >
> > Comparison between signed and unsigned integer expressions
> > [-Werror=signed-compare]
> >
> > I think I've seen this before ...
> >
> > Jim Donahue
> > Adobe Systems
> >
> >
>