OTLP | run grpc_metrics_main.cc #1776
Unanswered
yonatan555
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Not sure if this is the problem, but in any case, it should be |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I built a otlp project with grpc, metrics, prometheues with the this command :
cmake -DWITH_EXAMPLES=OFF -DBUILD_TESTING=OFF -DWITH_OTLP=ON -DWITH_PROMETHEUS=ON -DWITH_OTLP_GRPC=ON -DCMAKE_PERFIX_PATH=/root/grpc/ .
and got errors about the linker.
part of them:
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: ./lib/libopentelemetry_proto.a(metrics_service.grpc.pb.cc.o): in function
grpc::ClientAsyncResponseReaderopentelemetry::proto::collector::metrics::v1::ExportMetricsServiceResponse* grpc::internal::ClientAsyncResponseReaderHelper::Create<opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceResponse, opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceRequest, google::protobuf::MessageLite, google::protobuf::MessageLite>(grpc::ChannelInterface*, grpc::CompletionQueue*, grpc::internal::RpcMethod const&, grpc::ClientContext*, opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceRequest const&)':metrics_service.grpc.pb.cc:(.text.ZN4grpc8internal31ClientAsyncResponseReaderHelper6CreateIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseENS7_27ExportMetricsServiceRequestEN6google8protobuf11MessageLiteESC_EEPNS_25ClientAsyncResponseReaderIT_EEPNS_16ChannelInterfaceEPNS_15CompletionQueueERKNS0_9RpcMethodEPNS_13ClientContextERKT0[ZN4grpc8internal31ClientAsyncResponseReaderHelper6CreateIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseENS7_27ExportMetricsServiceRequestEN6google8protobuf11MessageLiteESC_EEPNS_25ClientAsyncResponseReaderIT_EEPNS_16ChannelInterfaceEPNS_15CompletionQueueERKNS0_9RpcMethodEPNS_13ClientContextERKT0]+0xab): undefined reference to
grpc::g_core_codegen_interface' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: metrics_service.grpc.pb.cc:(.text._ZN4grpc8internal31ClientAsyncResponseReaderHelper6CreateIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseENS7_27ExportMetricsServiceRequestEN6google8protobuf11MessageLiteESC_EEPNS_25ClientAsyncResponseReaderIT_EEPNS_16ChannelInterfaceEPNS_15CompletionQueueERKNS0_9RpcMethodEPNS_13ClientContextERKT0_[_ZN4grpc8internal31ClientAsyncResponseReaderHelper6CreateIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseENS7_27ExportMetricsServiceRequestEN6google8protobuf11MessageLiteESC_EEPNS_25ClientAsyncResponseReaderIT_EEPNS_16ChannelInterfaceEPNS_15CompletionQueueERKNS0_9RpcMethodEPNS_13ClientContextERKT0_]+0xc1): undefined reference to
grpc::g_core_codegen_interface'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: ./lib/libopentelemetry_proto.a(metrics_service.grpc.pb.cc.o): in function
grpc::ClientAsyncResponseReader<opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceResponse>::StartCall()': metrics_service.grpc.pb.cc:(.text._ZN4grpc25ClientAsyncResponseReaderIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseEE9StartCallEv[_ZN4grpc25ClientAsyncResponseReaderIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseEE9StartCallEv]+0x1f): undefined reference to
grpc::g_core_codegen_interface'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: metrics_service.grpc.pb.cc:(.text._ZN4grpc25ClientAsyncResponseReaderIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseEE9StartCallEv[_ZN4grpc25ClientAsyncResponseReaderIN13opentelemetry5proto9collector7metrics2v128ExportMetricsServiceResponseEE9StartCallEv]+0x33): undefined reference to
grpc::g_core_codegen_interface' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: ./lib/libopentelemetry_proto.a(metrics_service.grpc.pb.cc.o): in function
grpc::internal::RpcMethodHandler<opentelemetry::proto::collector::metrics::v1::MetricsService::Service, opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceRequest, opentelemetry::proto::collector::metrics::v1::ExportMetricsServiceResponse, google::protobuf::MessageLite, google::protobuf::MessageLite>::Deserialize(grpc_call*, grpc_byte_buffer*, grpc::Status*, void**)':metrics_service.grpc.pb.cc:(.text._ZN4grpc8internal16RpcMethodHandlerIN13opentelemetry5proto9collector7metrics2v114MetricsService7ServiceENS6_27ExportMetricsServiceRequestENS6_28ExportMetricsServiceResponseEN6google8protobuf11MessageLiteESD_E11DeserializeEP9grpc_callP16grpc_byte_bufferPNS_6StatusEPPv[_ZN4grpc8internal16RpcMethodHandlerIN13opentelemetry5proto9collector7metrics2v114MetricsService7ServiceENS6_27ExportMetricsServiceRequestENS6_28ExportMetricsServiceResponseEN6google8protobuf11MessageLiteESD_E11DeserializeEP9grpc_callP16grpc_byte_bufferPNS_6StatusEPPv]+0x24): undefined reference to
grpc::g_core_codegen_interface' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: ./lib/libopentelemetry_proto.a(metrics_service.grpc.pb.cc.o):metrics_service.grpc.pb.cc:(.text._ZN4grpc8internal16RpcMethodHandlerIN13opentelemetry5proto9collector7metrics2v114MetricsService7ServiceENS6_27ExportMetricsServiceRequestENS6_28ExportMetricsServiceResponseEN6google8protobuf11MessageLiteESD_E11DeserializeEP9grpc_callP16grpc_byte_bufferPNS_6StatusEPPv[_ZN4grpc8internal16RpcMethodHandlerIN13opentelemetry5proto9collector7metrics2v114MetricsService7ServiceENS6_27ExportMetricsServiceRequestENS6_28ExportMetricsServiceResponseEN6google8protobuf11MessageLiteESD_E11DeserializeEP9grpc_callP16grpc_byte_bufferPNS_6StatusEPPv]+0x3a): more undefined references to
grpc::g_core_codegen_interface' follow`
Beta Was this translation helpful? Give feedback.
All reactions