-
I'm having issues with what appears to be a nostd:: std:: clash in libraries under ubuntu 22. opentelemetry-cpp was configured with:
this built successfully. The test app uses a otlp grpc log exporter, and the problem seems to be that even though i specified WITH_STL=ON, the application wants the 1st parameter to LoggerProvider::GetLogger to be opentelemetry::v2::nostd::string_view, while libopentelemetry_logs.so shows a basic_string_view for the first parameter. (see make and nm output below)
How did the app get the idea it should want the nostd:: version ? Don't know how to fix this... here is the Makefile:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe the issue is that you've compiled otel with WITH_STL=ON, which means that it defines -DOPENTELEMETRY_STL_VERSION=2023 according to this opentelemetry-cpp/api/CMakeLists.txt Line 49 in d017ae1 so you probably need to add That to be said I don't use CMake (I'm compiling it using bazel), so could've missed something. |
Beta Was this translation helpful? Give feedback.
I believe the issue is that you've compiled otel with WITH_STL=ON, which means that it defines -DOPENTELEMETRY_STL_VERSION=2023 according to this
opentelemetry-cpp/api/CMakeLists.txt
Line 49 in d017ae1
so you probably need to add
-DOPENTELEMETRY_STL_VERSION=2023
- or if 2023 is too much, specify WITH_STL= and provide-DOPENTELEMETRY_STL_VERSION=<ver>
instead.That to be said I don't use CMake (I'm compiling it using bazel), so could've missed something.