Bug #76800 cannot build with "-DDISABLE_SHARED=ON" for cmake because of rewriter plugin
Submitted: 23 Apr 2015 2:40 Modified: 4 May 2015 15:12
Reporter: Yasufumi Kinoshita Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.7 OS:Linux
Assigned to: CPU Architecture:Any

[23 Apr 2015 2:40] Yasufumi Kinoshita
Description:
mysql-5.7 cannot be built with "-DDISABLE_SHARED=ON".
cmake fails with

"
CMake Error at plugin/rewriter/CMakeLists.txt:26 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "rewriter" which is not built by
  this project.
"

How to repeat:
cmake with "-DDISABLE_SHARED=ON"
[23 Apr 2015 4:57] MySQL Verification Team
Hello Yasufumi-San,

Thank you for the bug report.

Thanks,
Umesh
[23 Apr 2015 4:58] MySQL Verification Team
//

[umshastr@hod03]/export/umesh/server/source/mysql-5.7.7-rc/bug76800: mkdir bug76800;cd bug76800
[umshastr@hod03]/export/umesh/server/source/mysql-5.7.7-rc/bug76800: cmake ../ -DDOWNLOAD_BOOST=1 -DWITH_BOOST=boost/ -DDISABLE_SHARED=ON
..
.
-- Disabling -Wstrict-aliasing warning for building NDB
-- Not building NDB
CMake Error at plugin/rewriter/CMakeLists.txt:26 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "rewriter" which is not built by
  this project.
[4 May 2015 15:12] Paul DuBois
Noted in 5.7.8, 5.8.0 changelogs.

Compilation could fail in the query rewrite plugin code for some
CMake options.