Bug #70347 Can't compile MySQL Cluster on ARM
Submitted: 15 Sep 2013 13:46 Modified: 23 Sep 2013 9:21
Reporter: Rudy YAYON Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:mysql-cluster-gpl-7.3.2 OS:Linux (Pidora (Fedora 18))
Assigned to: CPU Architecture:Any

[15 Sep 2013 13:46] Rudy YAYON
Description:
/usr/local/src/mysql-cluster-gpl-7.3.2/sql/rpl_reporting.h:136:16: note: the mangling of "va_list" has changed in GCC 4.4
[ 53%] Building CXX object sql/CMakeFiles/sql.dir/tztime.cc.o
[ 53%] Building CXX object sql/CMakeFiles/sql.dir/uniques.cc.o
[ 54%] Building CXX object sql/CMakeFiles/sql.dir/unireg.cc.o
[ 54%] Building C object sql/CMakeFiles/sql.dir/__/libmysql/errmsg.c.o
[ 54%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/client.c.o
[ 54%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/client_plugin.c.o
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c: In function "mysql_client_plugin_init":
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of "add_plugin"
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:120:1: note: expected "va_list" but argument is of type "int"
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c: In function "mysql_client_register_plugin":
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:310:5: error: incompatible type for argument 5 of "add_plugin"
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:120:1: note: expected "va_list" but argument is of type "int"
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c: In function "mysql_load_plugin":
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:444:3: error: "args" undeclared (first use in this function)
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:444:3: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/src/mysql-cluster-gpl-7.3.2/sql-common/client_plugin.c:443:11: warning: unused variable "dummy" [-Wunused-variable]
make[2]: *** [sql/CMakeFiles/sql.dir/__/sql-common/client_plugin.c.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2

How to repeat:
shell> CC=gcc
shell> CFLAGS=-O3
shell> CXX=g++
shell> CXXFLAGS=-O3
shell> export CC CFLAGS CXX CXXFLAGS
shell> cmake . -DBUILD_CONFIG=mysql_release
shell> make
[16 Sep 2013 7:04] Rudy YAYON
[FIXED] I have replaced the "sql-common/client_plugin.c" file with the one provided in the latest sql-server source tar and the compilation got to 100% without errors.
[18 Sep 2013 19:29] Jon Olav Hauglid
Sounds like a duplicate of
Bug#62769 unportable usage of va_list in sql-common/client_plugin.c
[23 Sep 2013 9:21] MySQL Verification Team
Thank you for the bug report, duplicate of Bug #62769
[23 Sep 2013 9:23] Rudy YAYON
Hi,

  Yes it is for sure and I think this file should be included in all the MySQL product releases and not only the MySQL server.

Rudy