Skip to content

Code is not even compiled #2

@raviinder

Description

@raviinder

Hi ,
cpp client is not even compiled.Please see following output.

</grpc/ciena_grpc_client/v1.0.x/cpp$ ls
Makefile any.proto gNMI.proto gnmi_client.cc
onx-ravising-01|</grpc/ciena_grpc_client/v1.0.x/cpp$ make
../../../grpc/third_party/protobuf/src/protoc -I ./ --cpp_out=. any.proto
g++ -g -std=c++0x -D_GNU_SOURCE -I/usr/local/include -I./../../../grpc/include -I../../../grpc/third_party/protobuf/src -I./../../../grpc/src -DGPR_GRPC_REL_01_0_0 -c -o any.pb.o any.pb.cc
../../../grpc/third_party/protobuf/src/protoc -I ./ --grpc_out=. --plugin=protoc-gen-grpc=which ./../../../grpc/bins/opt/grpc_cpp_plugin any.proto
g++ -g -std=c++0x -D_GNU_SOURCE -I/usr/local/include -I./../../../grpc/include -I../../../grpc/third_party/protobuf/src -I./../../../grpc/src -DGPR_GRPC_REL_01_0_0 -c -o any.grpc.pb.o any.grpc.pb.cc
../../../grpc/third_party/protobuf/src/protoc -I ./ --cpp_out=. gNMI.proto
g++ -g -std=c++0x -D_GNU_SOURCE -I/usr/local/include -I./../../../grpc/include -I../../../grpc/third_party/protobuf/src -I./../../../grpc/src -DGPR_GRPC_REL_01_0_0 -c -o gNMI.pb.o gNMI.pb.cc
../../../grpc/third_party/protobuf/src/protoc -I ./ --grpc_out=. --plugin=protoc-gen-grpc=which ./../../../grpc/bins/opt/grpc_cpp_plugin gNMI.proto
g++ -g -std=c++0x -D_GNU_SOURCE -I/usr/local/include -I./../../../grpc/include -I../../../grpc/third_party/protobuf/src -I./../../../grpc/src -DGPR_GRPC_REL_01_0_0 -c -o gNMI.grpc.pb.o gNMI.grpc.pb.cc
g++ -g -std=c++0x -D_GNU_SOURCE -I/usr/local/include -I./../../../grpc/include -I../../../grpc/third_party/protobuf/src -I./../../../grpc/src -DGPR_GRPC_REL_01_0_0 -c -o gnmi_client.o gnmi_client.cc
gnmi_client.cc: In function 'void* tag(int)':
gnmi_client.cc:94:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
void* tag(int i) { return (void*)i; }
^
gnmi_client.cc: In function 'const char* getUserName()':
gnmi_client.cc:264:23: error: 'geteuid' was not declared in this scope
uid_t uid = geteuid();
^
gnmi_client.cc: In member function 'void TelemAsyncClient::Run(gnmi::GetRequest&)':
gnmi_client.cc:413:26: error: 'sleep' was not declared in this scope
sleep(cmdDelay);
^
gnmi_client.cc: In member function 'void TelemAsyncClient::RunSet(gnmi::SetRequest&)':
gnmi_client.cc:423:26: error: 'sleep' was not declared in this scope
sleep(cmdDelay);
^
gnmi_client.cc: In member function 'void TelemSyncClient::Run(int, gnmi::SubscribeRequest&)':
gnmi_client.cc:907:21: error: 'sleep' was not declared in this scope
sleep(4);
^
gnmi_client.cc:912:21: error: 'sleep' was not declared in this scope
sleep(1);
^
gnmi_client.cc: In function 'int main(int, char**)':
gnmi_client.cc:1321:68: error: 'getopt' was not declared in this scope
while((opt=getopt(argc, argv, "t:sl:i:x:p:d:r:u:c:w:h:m:g:K:C:")) != -1)
^
make: *** [gnmi_client.o] Error 1

onx-ravising-01|</grpc/ciena_grpc_client/v1.0.x/cpp$ ls
Makefile any.grpc.pb.h any.pb.cc any.pb.o gNMI.grpc.pb.cc gNMI.grpc.pb.o gNMI.pb.h gNMI.proto
any.grpc.pb.cc any.grpc.pb.o any.pb.h any.proto gNMI.grpc.pb.h gNMI.pb.cc gNMI.pb.o gnmi_client.cc
onx-ravising-01|</grpc/ciena_grpc_client/v1.0.x/cpp$ cd ../../../
onx-ravising-01|~/grpc$ ls
ciena_grpc_client gNMI-cpp-client grpc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions