open-telemetry / open-telemetry/opentelemetry-cpp-contrib

enormous undefined error when`cmake --build . --target all`

Open
#202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
153
Forks
184
Avg merge
2d 9h
Merged PRs (30d)
26

Description

i'm sorry raise this issue, i have been struggling for days and still don't know how to solve this

Linux 4.9.0-14-amd64 #1 SMP Debian 4.9.246-2 (2020-12-17) x86_64 GNU/Linux
libprotoc 3.21.4

and i build protobuf like

tar -zxvf protobuf-all-21.4.tar.gz

 ./configure --prefix=/usr

 make

 make install

error msg like, and seems hundreds more

../../libopentelemetry_proto.a(trace_service.pb.cc.o):(.data.rel.ro._ZTVN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE[_ZTVN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE]+0x70): undefined reference to `google::protobuf::internal::ZeroFieldsBase::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const'
../../libopentelemetry_proto.a(trace_service.pb.cc.o):(.data.rel.ro._ZTVN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE[_ZTVN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE]+0x80): undefined reference to `google::protobuf::Message::SpaceUsedLong() const'
../../libopentelemetry_proto.a(trace_service.pb.cc.o): In function `opentelemetry::proto::collector::trace::v1::ExportTraceServiceResponse::~ExportTraceServiceResponse()':
trace_service.pb.cc:(.text._ZN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseD2Ev[_ZN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseD5Ev]+0x26): undefined reference to `google::protobuf::internal::ZeroFieldsBase::~ZeroFieldsBase()'
../../libopentelemetry_proto.a(trace_service.pb.cc.o):(.data.rel.ro._ZTVN13opentelemetry5proto9collector5trace2v125ExportTraceServiceRequestE[_ZTVN13opentelemetry5proto9collector5trace2v125ExportTraceServiceRequestE]+0x80): undefined reference to `google::protobuf::Message::SpaceUsedLong() const'
../../libopentelemetry_proto.a(trace_service.pb.cc.o):(.data.rel.ro._ZTIN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE[_ZTIN13opentelemetry5proto9collector5trace2v126ExportTraceServiceResponseE]+0x10): undefined reference to `typeinfo for google::protobuf::internal::ZeroFieldsBase'
collect2: error: ld returned 1 exit status

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing cmake --build . --target all on the reported Debian environment and review the configure, make, and make install steps shown in the issue. Trace the linker errors from libopentelemetry_proto.a and confirm that the build completes without the reported undefined references.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, linux
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.