I am getting a compilation error when trying to compile any stable build version since 5.5.28. Prior versions were compiling without problems. Did anyone else run into this problem? Any suggestions on what to try?
I used the following cmake configuration:
cmake -L -DWITH_READLINE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/software/mysql_cfs
make fails with the following message:
[ 86%] Building CXX object sql/CMakeFiles/sql.dir/set_var.cc.o
[ 86%] Building CXX object sql/CMakeFiles/sql.dir/slave.cc.o
/software/Percona-Server-5.5.29-rel30.0/sql/slave.cc: In function int terminate_slave_thread(THD*, mysql_mutex_t*, mysql_cond_t*, volatile uint*, bool)': /software/Percona-Server-5.5.29-rel30.0/sql/slave.cc:644: warning: unused variable
int err’
[ 86%] Building CXX object sql/CMakeFiles/sql.dir/sp.cc.o
[ 86%] Building CXX object sql/CMakeFiles/sql.dir/sp_cache.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/sp_head.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/sp_pcontext.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/sp_rcontext.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/spatial.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/sql_acl.cc.o
[ 87%] Building CXX object sql/CMakeFiles/sql.dir/sql_analyse.cc.o
[ 88%] Building CXX object sql/CMakeFiles/sql.dir/sql_base.cc.o
/software/Percona-Server-5.5.29-rel30.0/sql/sql_base.cc: In function bool open_table_entry_fini(THD*, TABLE_SHARE*, TABLE*)': /software/Percona-Server-5.5.29-rel30.0/sql/sql_base.cc:3885 : error:
q_table_name’ undeclared (first use this function)
/software/Percona-Server-5.5.29-rel30.0/sql/sql_base.cc:3885 : error: (Each
undeclared identifier is reported only once for each function it appears
in.)
make[2]: *** [sql/CMakeFiles/sql.dir/sql_base.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
I have SLES 9 64-bit:
cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 3