Hi All
I am getting some errors where at a certain amount of data the protobuf.has_scalar_value() will show false.
But I am sure that there is indeed more data because I can see it in the response I received from the server.
However the server is a Java implementation of Apache Calcite running Protobuf V3.6.1.
At first my C++ program was running Protobuf V3.13.0 and I kept on getting errors when the data exceeds a certain amount of data. I AM NOT however sure that, that is indeed the case but the current error is very obscure at this stage.
So then to try and remedy the situation I pulled TAG Protobuf V3.6.1 and I compiled it.
Ran protoc on them and I got the following error WHICH I didn't receive in 3.13.0 AND ALSO not on the Java server side running same version. ALSO This is done on a newly installed Ubuntu server 20 OS.
protoc -I=. --cpp_out=. ./common.proto
protoc -I=. --cpp_out=. ./request.proto
protoc -I=. --cpp_out=. ./response.proto
g++ -g -fPIC -c
common.pb.cc -L/usr/local/lib `pkg-config --cflags --libs protobuf` -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl -o common.o -std=c++14
In file included from
/usr/include/x86_64-linux-gnu/bits/types/stack_t.h:23,
from
/usr/include/signal.h:303,
from
/usr/include/x86_64-linux-gnu/sys/param.h:28,
from
/usr/local/include/google/protobuf/stubs/port.h:64,
from
/usr/local/include/google/protobuf/stubs/common.h:46,
from
common.pb.h:9,
from
common.pb.cc:4:
common.pb.h:222:3: error: expected identifier before ‘
__null’
222 |
NULL = 24,
|
^~~~
common.pb.h:222:3: error: expected ‘
}’ before ‘
__null’
So my question is. How is it possible that Protobufs work on the Java server but not on my C++ implementation with the same Proto files and same version compiled for this OS?
Is it a bug in the V3.6.1 ?