Bug #57990 Compiler flag change RPM build error : sql_show.cc
Submitted: 4 Nov 2010 19:28 Modified: 30 May 2011 17:08
Reporter: Karen Langford Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.53 OS:Linux
Assigned to: Davi Arnaut CPU Architecture:Any

[4 Nov 2010 19:28] Karen Langford
Description:
Change of compiler flag has led to following build failure on:

frigg36 / rhel4 i686

gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/\"" -DMYSQL_DATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" 
-DPLUGINDIR="\"/usr/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../zlib -I../include 
-I../include -I../regex -I.    -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wno-unused-parameter 
-g  -DSAFE_MUTEX -g -pipe -m32 -march=i386 -mtune=pentium4 -felide-constructors -fno-exceptions -fno-rtti    
-fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_show.o -MD -MP -MF .deps/sql_show.Tpo -c -o sql_show.o 
sql_show.cc
sql_show.cc: In function `bool show_status_array(THD*, const char*, SHOW_VAR*, enum_var_type, system_status_var*, const char*, TABLE*, bool, COND*)':
sql_show.cc:2302: warning: cast from pointer to integer of different size
make[3]: *** [sql_show.o] Error 1

How to repeat:
Build 5.1.53 without flag --enable-mysql-maintainer-mode=no
[16 Dec 2010 19:48] Todd Rinaldo
Part of the patch in this mysql bug report for 5.5 appears to have a fix for the problem:

http://bugs.mysql.com/bug.php?id=58699
[4 Nov 2011 16:51] Todd Rinaldo
This patch allows mysql 5.1 to continue compiling with debug in 5.1.54+ Is there a reason it shouldn't be added?

Attachment: gcc_5154.patch (application/octet-stream, text), 1007 bytes.