Bug #93625 8.0.13 server fails to compile with -DWITH_LIBWRAP=ON
Submitted: 15 Dec 2018 16:38 Modified: 19 Dec 2018 11:43
Reporter: George Lorch Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[15 Dec 2018 16:38] George Lorch
Description:
cmake with -DWITH_LIBWRAP=ON will result in the following error during compilation:

.../sql/conn_handler/socket_connection.cc:738:8: error: ‘opt_log_syslog_enable’ was not declared in this scope
   if (!opt_log_syslog_enable) openlog(m_libwrap_name, LOG_PID, LOG_AUTH);

It seems that the option variable opt_log_syslog_enable has been renamed and relocated in 8.0 to log_syslog_enabled but the code in socket_connection.cc was never updated properly:

735 #ifdef HAVE_LIBWRAP
736   m_deny_severity = LOG_WARNING;
737   m_libwrap_name = my_progname + dirname_length(my_progname);
738   if (!opt_log_syslog_enable) openlog(m_libwrap_name, LOG_PID, LOG_AUTH);
739 #endif /* HAVE_LIBWRAP */

How to repeat:
cmake with -DWITH_LIBWRAP=ON and make
[16 Dec 2018 5:43] MySQL Verification Team
Hello George,

Thank you for the report and feedback.

regards,
Umesh
[19 Dec 2018 11:43] Terje Røsten
Hi!

This is dup of https://bugs.mysql.com/bug.php?id=92983