Bug #80476 mysql_bin_log variable has not been exported
Submitted: 23 Feb 2016 10:52 Modified: 12 May 2016 10:17
Reporter: 尚 矢口 Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.6 OS:Microsoft Windows
Assigned to: CPU Architecture:Any
Tags: export, mysql_bin_log, windows

[23 Feb 2016 10:52] 尚 矢口
Description:
mysql_bin_log variables in sql/binlog.h, it is defined as 
"extern MYSQL_PLUGIN_IMPORT MYSQL_BIN_LOG mysql_bin_log". 
However, mysqld.exe does not export it.

On windows, mysqld.def file the export was defined, it has generated by "create_def_file.js" in the "sql/CMakeLists.txt". But, it does not pass the binlog.lib to the script.

It does not work plug-in to handle the binlog in the official distribution binary.

How to repeat:
For example, using the "dependency walker(depends.exe)" will examine the variables and functions that mysqld.exe is exporting.

Suggested fix:
sql/CMakeLists.txt

-FOREACH (CORELIB sql mysys mysys_ssl dbug strings)
+FOREACH (CORELIB sql mysys mysys_ssl dbug strings binlog)
[4 Mar 2016 5:17] 尚 矢口
Removed Version 5.7
[12 May 2016 10:17] Umesh Shastry
Hello!

Thank you for the report and feedback!

Thanks,
Umesh