Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917046

Summary: dev-libs/protobuf-23.3: messages_lite.h has hidden extern template instances
Product: Gentoo Linux Reporter: Allen Webb <allenwebb>
Component: Current packagesAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: UNCONFIRMED ---    
Severity: normal CC: allenwebb, cjk
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/33793
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 912819    

Description Allen Webb 2023-11-08 20:38:50 UTC
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