Bug #54913 Cmake/Windows: INNODB_PLUGIN compiled as DYNAMIC even though dynamic is disabled
Submitted: 30 Jun 2010 12:42 Modified: 12 Jul 2010 18:37
Reporter: Jørgen Austvik Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Windows
Assigned to: Bernd Ocklin CPU Architecture:Any

[30 Jun 2010 12:42] Jørgen Austvik
Description:
CONFIGURE_OPTIONS="WITH_INNOBASE_STORAGE_ENGINE WITH_ARCHIVE_STORAGE_ENGINE WITH_BLACKHOLE_STORAGE_ENGINE WITH_FEDERATED_STORAGE_ENGINE __NT__ WITH_PARTITION_STORAGE_ENGINE WITH_EMBEDDED_SERVER WITH_NDBCLUSTER_STORAGE_ENGINE WITH_CLASSPATH=""$NDB_JAVA_CLASSPATH"""
cscript win/configure.js $CONFIGURE_OPTIONS
cmake -G "Visual Studio 9 2008" -DWITH_ERROR_INSERT=1 -DWITH_NDB_TEST=1 -DWITH_INNODB_PLUGIN_STORAGE_ENGINE=FALSE -DWITH_DYNAMIC_PLUGINS=FALSE -DWITHOUT_DYNAMIC_PLUGINS=TRUE -DCMAKE_INSTALL_PREFIX=$install_dir_dos

WITHOUT_DYNAMIC_PLUGINS=TRUE is the important part.

then:

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Dynamic plugins are disabled.
build ARCHIVE as static library
build BLACKHOLE as static library
build CSV as static library
build FEDERATED as static library
build HEAP as static library
build INNOBASE as static library
build MYISAM as static library
build MYISAMMRG as static library
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of char*
-- Check size of char* - done
-- Check size of long long
-- Check size of long long - done
build NDBCLUSTER as static library
build INNODB_PLUGIN as DLL

"Dynamic plugins are disabled" -> so it reads my setting, but still INNODB_PLUGIN as DLL.

How to repeat:
-

Suggested fix:
-
[1 Jul 2010 10:09] Bernd Ocklin
Fixed by recognizing plug.in.disabled file for cmake. Won't fix dynamic plugins for cmake in 5.1. This will be merged in later from 5.5.
[12 Jul 2010 9:54] Jon Stephens
Versions not provided, assuming NDB 7.0.17/7.1.6 based on push and release dates.

Documented in the NDB-7.0.17 and 7.1.6 changelogs as follows:

        The configure.js option WITHOUT_DYNAMIC_PLUGINS=TRUE was ignored
        when building MySQL Cluster for Windows using CMake. Among the
        effects of this issue was that CMake attempted to build the
        InnoDB storage engine as a plugin (.DLL file) even though the
        InnoDB Plugin is not currently supported by MySQL Cluster.

Closed.