You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by Enrico Olivelli <eo...@gmail.com> on 2017/08/27 18:51:14 UTC

Warning on ProtoBuf compiler after upgrade

Hi,

we have upgraded BK to use Protobuf 3.4, after the change I see this
lines in the logs

I think we should add the suggested line to the protocol files


[WARNING] PROTOC: [libprotobuf WARNING
google/protobuf/compiler/parser.cc:546] No syntax specified for the
proto file: BookkeeperProtocol.proto. Please use 'syntax = "proto2";'
or 'syntax = "proto3";' to specify a syntax version. (Defaulted to
proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax
specified for the proto file: DataFormats.proto. Please use 'syntax =
"proto2";' or 'syntax = "proto3";' to specify a syntax version.
(Defaulted to proto2 syntax.)


@Sijie If you are working on this topic can you add that line on your
next changes about protobuf ?

otherwise I can send a trivial patch for this


Cheers

Enrico

Re: Warning on ProtoBuf compiler after upgrade

Posted by Sijie Guo <gu...@gmail.com>.
On Aug 27, 2017 11:51 AM, "Enrico Olivelli" <eo...@gmail.com> wrote:

Hi,

we have upgraded BK to use Protobuf 3.4, after the change I see this
lines in the logs

I think we should add the suggested line to the protocol files


[WARNING] PROTOC: [libprotobuf WARNING
google/protobuf/compiler/parser.cc:546] No syntax specified for the
proto file: BookkeeperProtocol.proto. Please use 'syntax = "proto2";'
or 'syntax = "proto3";' to specify a syntax version. (Defaulted to
proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax
specified for the proto file: DataFormats.proto. Please use 'syntax =
"proto2";' or 'syntax = "proto3";' to specify a syntax version.
(Defaulted to proto2 syntax.)


Yes the default is the proto2 syntax. You don't need to worry about the
warning. But yes, we have subsequent changes including setting syntax.



@Sijie If you are working on this topic can you add that line on your
next changes about protobuf ?

otherwise I can send a trivial patch for this


Cheers

Enrico