Bug #63471 UNIV_LOG_DEBUG broken
Submitted: 29 Nov 2011 10:30 Modified: 3 Apr 2014 8:05
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB Plugin storage engine Severity:S3 (Non-critical)
Version:5.1.61 OS:Any
Assigned to: Vasil Dimov CPU Architecture:Any

[29 Nov 2011 10:30] Laurynas Biveinis
Description:
Enabling UNIV_LOG_DEBUG causes compilation errors.

How to repeat:
1) Enable UNIV_LOG_DEBUG, i.e. add -DUNIV_LOG_DEBUG to compilation flags or uncomment its definition in univ.i
2) ./configure --with-debug --without-plugin-innobase --with-plugin-innodb_plugin && make will result in
[...]
/bin/bash ../../libtool --preserve-dup-deps  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I.    -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wdeclaration-after-statement -DMYSQL_DYNAMIC_PLUGIN -g  -DSAFE_MUTEX -g -O2   -DUNIV_LINUX -MT ha_innodb_plugin_la-log0log.lo -MD -MP -MF .deps/ha_innodb_plugin_la-log0log.Tpo -c -o ha_innodb_plugin_la-log0log.lo `test -f 'log/log0log.c' || echo './'`log/log0log.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wdeclaration-after-statement -DMYSQL_DYNAMIC_PLUGIN -g -DSAFE_MUTEX -g -O2 -DUNIV_LINUX -MT ha_innodb_plugin_la-log0log.lo -MD -MP -MF .deps/ha_innodb_plugin_la-log0log.Tpo -c log/log0log.c  -fPIC -DPIC -o .libs/ha_innodb_plugin_la-log0log.o
log/log0log.c: In function 'log_shutdown':
log/log0log.c:3431:2: error: implicit declaration of function 'recv_sys_debug_free' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

This implicit declaration later turns to an unresolved symbol linker error. Confirmation:
3) ./configure --with-debug --disable-mysql-maintainer-mode --without-plugin-innobase --with-plugin-innodb_plugin && make
4) cd mysql-test && ./mysql-test-run innodb_mysql
[...]
111129 13:29:58 [ERROR] Can't open shared library '/home/laurynas/percona/mysql/univ_log_debug/storage/innodb_plugin/.libs/ha_innodb_plugin.so' (errno: 22 undefined symbol: recv_sys_debug_free)
[...]
[7 Dec 2011 8:27] Valeriy Kravchuk
Thank you for the problem report. Verified with current mysql-5.1 from bzr:

...
log/log0log.c: In function 'log_shutdown':
log/log0log.c:3431:2: error: implicit declaration of function 'recv_sys_debug_free'
make: *** [ha_innodb_plugin_la-log0log.lo] Error 1

(compilation breaks earlier at Edtiline code here, but when make is executed from storage/innodb_plugin we get the error above)
[2 Apr 2014 21:53] Laurynas Biveinis
This bug has been fixed in 5.7.4 by removing UNIV_LOG_DEBUG and should be closed now.
[3 Apr 2014 8:05] Vasil Dimov
UNIV_LOG_DEBUG has been removed, closing as per submitter's suggestion.

Thank you!