We ran into this on ChromeOS: ``` missive-9999: ld.lld: error: undefined symbol: bool google::protobuf::internal::MergeFromImpl<true>(std::__1::basic_string_view<char, std::__1::char_traits<char>>, google::protobuf::MessageLite*, google::protobuf::MessageLite::ParseFlags) missive-9999: >>> referenced by message_lite.h:583 (/build/brya/usr/include/google/protobuf/message_lite.h:583) ``` I landed an upstream fix here that you all might want to include as a patch in protobuf 23.3 and on until it is included by default: https://github.com/protocolbuffers/protobuf/commit/e6f8b9d1026996f6463d4f014d7760256b757227 Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=410197e34e6a385937b0d00898916d6dd11d0e73 commit 410197e34e6a385937b0d00898916d6dd11d0e73 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-06-14 08:18:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-14 08:18:18 +0000 dev-libs/protobuf: backport template instantiation fix Closes: https://bugs.gentoo.org/917046 Signed-off-by: Sam James <sam@gentoo.org> ...buf-23.3-messages_lite-template-instances.patch | 66 ++++++++++++++++++++++ ...obuf-23.3-r3.ebuild => protobuf-23.3-r4.ebuild} | 1 + 2 files changed, 67 insertions(+)