mesonbuild / mesonbuild/wrapdb
abseil-cpp 20250127.1 linker error when using log library
- Dominant language
- Meson
- Stars
- 118
- Forks
- 298
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 24
Description
log_sources is missing 'absl/log/internal/structured_proto.cc' so when using abseil-logging you'll run into a linker error.
```unresolved external symbol "bool __cdecl absl::lts_20250127::log_internal::EncodeStructuredProtoField(struct absl::lts_20250127::log_internal::StructuredProtoField,class absl::lts_20250127::Span &)" (?EncodeStructuredProtoField@log_internal@lts_20250127@absl@@YA_NUStructuredProtoField@123@AEAV?$Span@D@23@@Z) referenced in function "private: void __cdecl absl::lts_20250127::log_internal::LogMessage::CopyToEncodedBufferWithStructuredProtoField<1>(struct absl::lts_20250127::log_internal::StructuredProtoField,class std::basic_string_view >)" (??$CopyToEncodedBufferWithStructuredProtoField@$00@LogMessage@log_internal@lts_20250127@absl@@AEAAXUStructuredProtoField@123@V?$basic_string_view@DU?$char_traits@D@std@@@std@@@Z)```
This updated was done in https://github.com/mesonbuild/wrapdb/pull/2350 but I don't think it was tested much, if at all.
There are quite a few libraries within abseil that got additional .cc files, non of them were added, so I suspect a majority of abseil when installed via this wrap will fail to link...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the abseil-cpp 20250127.1 update in wrapdb PR #2350 and compare its log_sources list with the upstream sources. Check the missing absl/log/internal/structured_proto.cc entry and the other newly added .cc files mentioned in the issue. Done means the wrap includes the required sources and a consumer using abseil-logging no longer has the reported linker error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100