Bug #82777 X plugin files are built with different options
Submitted: 29 Aug 2016 7:39 Modified: 30 Aug 2016 15:16
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[29 Aug 2016 7:39] Jon Olav Hauglid
Description:
The CMake setup for x plugin includes:

  # Built *without* -DMYSQL_DYNAMIC_PLUGIN
  ADD_CONVENIENCE_LIBRARY(xplugin
    ${xplugin_SRC} ${xplugin_HDRS} ${xplugin_PROTOBUF_SRC} ${BOOST_LIB_SOURCES})

...

  # These are built *with* -DMYSQL_DYNAMIC_PLUGIN
  MYSQL_ADD_PLUGIN(mysqlx
    src/xpl_plugin.cc
    src/xpl_performance_schema.cc
    LINK_LIBRARIES xplugin ${xplugin_PROTOBUF_LIB}
    MODULE_ONLY MODULE_OUTPUT_NAME "mysqlx")

Instead of doing ADD_CONVENIENCE_LIBRARY + MYSQL_ADD_PLUIGIN, we should do a single MYSQL_ADD_PLUGIN to ensure that all X plugin files are built with the same options.

How to repeat:
n/a
[30 Aug 2016 15:16] Paul DuBois
Posted by developer:
 
Noted in 5.7.16, 8.0.1 changelogs.

The X Plugin was built with compilation options different from other
plugins.
[28 Sep 2016 15:29] Paul DuBois
Posted by developer:
 
Noted in 5.7.17 (not 5.7.16) changelog.