Skip to content

unable to build with grpc 1.71.0 #3306

@dbarker

Description

@dbarker

Describe your environment
main at a57063f

GRPC_VERSION="v1.71.0"
PROTOBUF_VERSION="29.0"
ABSEIL_CPP_VERSION="20240722.1"

Steps to reproduce

  1. Build a docker image with the grpc, protobuf, and abseil versions above
docker build --build-arg GRPC_VERSION="v1.71.0" --build-arg PROTOBUF_VERSION="29.0" --build-arg ABSEIL_CPP_VERSION="20240722.1" --build-arg USER_UID="$(id -u)" --build-arg USER_GID="$(id -g)"  -t opentelemetry-cpp-dev:latest -f ./.devcontainer/Dockerfile.dev .
  1. Run a bash session and build the otlp grpc exporter
docker run -it -v "$PWD:/workspaces/opentelemetry-cpp" opentelemetry-cpp-dev:latest bash

cmake -S . -B ~/build -DWITH_OTLP_GRPC=ON
cmake --build ~/build --parallel
ctest --test-dir ~/build

What is the expected behavior?
build and test passes

What is the actual behavior?
Link error from the otlp_grpc_exporter_test

/usr/bin/ld: ../../libopentelemetry_proto_grpc.so: undefined reference to `grpc::GetGlobalCallbackHook()'
collect2: error: ld returned 1 exit status
make[2]: *** [exporters/otlp/CMakeFiles/otlp_grpc_exporter_test.dir/build.make:210: exporters/otlp/otlp_grpc_exporter_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:6475: exporters/otlp/CMakeFiles/otlp_grpc_exporter_test.dir/all] Error 2

Additional context
The otlp_grpc_exporter_test adds a link to gRPC::grpc++ and shouldn't

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions