Skip to content

abseil-cpp 20250127.1 linker error when using log library #2393

@magicalcookie

Description

@magicalcookie

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<char> &)" (?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<char,struct std::char_traits<char> >)" (??$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 #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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions