Percona-Server-5.5.28-rel29.1 make fail

Asked by Kelvin Yeung

Dear all,

A make fail for Percona-Server-5.5.28-rel29.1. Information as below:

cmake option as below

/usr/bin/cmake .\
  -DBUILD_CONFIG=mysql_release\
  -DCMAKE_INSTALL_PREFIX=/opt/slocal/percona-5.5.28\
  -DDEFAULT_CHARSET=utf8\
  -DWITH_ARCHIVE_STORAGE_ENGINE=ON\
  -DWITH_BLACKHOLE_STORAGE_ENGINE=ON\
  -DWITH_EXAMPLE_STORAGE_ENGINE=ON\
  -DWITH_FEDERATED_STORAGE_ENGINE=ON\
  -DWITH_SSL=system

error message from make:

[ 86%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/lib_sql.cc.o
In file included from /opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/lib_sql.cc:31:
/opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/../sql/mysqld.cc: In function ‘void init_cachedev()’:
/opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/../sql/mysqld.cc:4372: error: return-statement with a value, in function returning 'void'
/opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/../sql/mysqld.cc: At global scope:
/opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/../sql/mysqld.cc:4306: warning: ‘void init_cachedev()’ defined but not used
/opt/slocal/src/Percona-Server-5.5.28-rel29.1/libmysqld/../sql/mysqld.cc:4378: warning: ‘void cleanup_cachedev()’ defined but not used
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/lib_sql.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2

OS: CentOS 6.3 x86_64
GNU Make 3.81
cmake version 2.6-patch 4

Regards,
Kelvin Yeung

Question information

Language:
English Edit question
Status:
Solved
For:
Percona Server moved to https://jira.percona.com/projects/PS Edit question
Assignee:
No assignee Edit question
Solved by:
Alexey Kopytov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexey Kopytov (akopytov) said :
#1

Embedded MySQL server (which is enabled by -DBUILD_CONFIG=mysql_release) is not supported in Percona Server. You can take a look at the build-binary.sh scripts in the build directory for the CMake options we use to build Percona Server binaries.

Revision history for this message
Kelvin Yeung (i-kelvin) said :
#2

Thanks for your quick response. The problem is fixed. BTW, I could not find the build-binary.sh in the tar ball, could you advise where I could find this script? Thank you.

Regads,
Kelvin Yeung

Revision history for this message
Alexey Kopytov (akopytov) said :
#3

Right, it's not available from the source packages. You can get it from the Bazaar tree, e.g.: http://bazaar.launchpad.net/~percona-core/percona-server/5.5/view/head:/build/build-binary.sh