Bug #92615 bundled/system library confusion
Submitted: 1 Oct 2018 10:23 Modified: 10 Oct 2018 22:05
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.14 OS:Any
Assigned to: CPU Architecture:Any

[1 Oct 2018 10:23] Tor Didriksen
Description:
Scanning dependencies of target mysqlxmessages_lite
[ 57%] Building CXX object plugin/x/protocol/CMakeFiles/mysqlxmessages_lite.dir/__/generated/protobuf_lite/mysqlx.pb.cc.o
In file included from plugin/x/generated/protobuf_lite/mysqlx.pb.cc:4:
plugin/x/generated/protobuf_lite/mysqlx.pb.h:12:2: error: This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is

How to repeat:
On a host with system protobuf different from our "bundled" version:

tdidriks@vigdis73
$protoc --version
libprotoc 3.5.1

cmake <path> -DWITH_SYSTEM_LIBS=1 -DWITH_PROTOBUF=bundled -DWITH_RE2=bundled -DWITH_RAPIDJSON=bundled

Suggested fix:
Fix sequence of system includes.
[10 Oct 2018 22:05] Paul Dubois
Posted by developer:
 
Fixed in 8.0.15.

CMake could generate an incorrect order of system includes when MySQL
was configured to use the bundled version of a system library.