Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917046 - dev-libs/protobuf-23.3: messages_lite.h has hidden extern template instances
Summary: dev-libs/protobuf-23.3: messages_lite.h has hidden extern template instances
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: 912819
  Show dependency tree
 
Reported: 2023-11-08 20:38 UTC by Allen Webb
Modified: 2024-06-14 08:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 1 Larry the Git Cow gentoo-dev 2024-06-14 08:18:50 UTC
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(+)