[
https://issues.apache.org/jira/browse/MESOS-8508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till Toenshoff updated MESOS-8508:
----------------------------------
Shepherd: Till Toenshoff
> Missing map header when compiling against unbundled protobuf
> ------------------------------------------------------------
>
> Key: MESOS-8508
> URL: https://issues.apache.org/jira/browse/MESOS-8508
> Project: Mesos
> Issue Type: Bug
> Reporter: Benno Evers
> Assignee: Benno Evers
> Priority: Major
>
> When compiling mesos against the system-default version of protobuf on Ubuntu
> 17.04, the build fails due to a missing include.
>
> Explanation for the error by [~kaysoky]:
> Note that the reason why this doesn't compile in protobuf 3.0.x is due to how
> the c++ files are generated. In protobuf 3.0.x (and 3.1.x and 3.2.x)
> generated code only includes the protobuf map headers if there is a map
> present in the .proto
> file:[https://github.com/google/protobuf/blob/3.0.x/src/google/protobuf/compiler/cpp/cpp_file.cc#L817-L827]
> From 3.3.x onwards, all generated files include
> {{google/protobuf/generated_message_table_driven.h}}, which in turn includes
> the map
> headers:[https://github.com/google/protobuf/blob/3.3.x/src/google/protobuf/compiler/cpp/cpp_file.cc#L1006]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)