Bug #96429 version check for protobuf is wrong
Submitted: 5 Aug 2019 12:54 Modified: 13 Aug 2019 16:42
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.18 OS:Any
Assigned to: CPU Architecture:Any

[5 Aug 2019 12:54] Tor Didriksen
Description:
Building CXX object router/src/mock_server/src/CMakeFiles/mock_server.dir/x_mock_session.cc.o
/net/atum07/export/home/didrik/gitclone/trunk-add-executable/router/src/mock_server/src/x_mock_session.cc:27:10: fatal error: google/protobuf/util/json_util.h: No such file or directory
 #include <google/protobuf/util/json_util.h>

How to repeat:
cat /etc/os-release 
NAME="Oracle Linux Server"
VERSION="7.6"
ID="ol"
VARIANT="Server"

cmake <path> -DWITH_PROTOBUF=system

Suggested fix:
json_util.h can be found in protobuf 3.0 so raise version check
[13 Aug 2019 16:42] Paul DuBois
Posted by developer:
 
Fixed in 8.0.18.

Bug affects no released version. No changelog entry required.
[22 Oct 2020 14:50] Paul DuBois
Posted by developer:
 
Changelog entry:

For building MySQL 8.0, the minimum required version of Protobuf is
now 3.0 rather than 2.5.