This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

Cannot build mariadb-5.2.2-gamma from source

I start build with command BUILD/compile-pentium-max but building process ends with error:

+ make -j 6
Making all in .
make[1]: Вход в каталог `/home/mikhail/Downloads/mariadb-5.2.2-gamma'
make abi_headers="include/mysql.h include/mysql/client_plugin.h include/mysql/plugin_auth.h" do_abi_check
make[2]: Вход в каталог `/home/mikhail/Downloads/mariadb-5.2.2-gamma'
set -ex; \
	for file in include/mysql.h include/mysql/client_plugin.h include/mysql/plugin_auth.h; do \
	         gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK \
	                  -I./include \
	                  -I./include/mysql \
	                  -I./sql \
	                  -I./include \
	                  -I./include/mysql \
	                  -I./sql \
	                                 $file 2>/dev/null | \
	                  /bin/sed -e '/^# /d' \
	                            -e '/^[ 	]*$/d' \
	                            -e '/^#pragma GCC set_debug_pwd/d' \
	                            -e '/^#ident/d' > \
	                                       ./abi_check.out; \
	                  /usr/bin/diff -w $file.pp ./abi_check.out; \
	                  /bin/rm ./abi_check.out; \
	done
+ for file in include/mysql.h include/mysql/client_plugin.h include/mysql/plugin_auth.h
+ gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql.h
+ /bin/sed -e '/^# /d' -e '/^[ 	]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
+ for file in include/mysql.h include/mysql/client_plugin.h include/mysql/plugin_auth.h
+ /bin/sed -e '/^# /d' -e '/^[ 	]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql/client_plugin.h
+ /usr/bin/diff -w include/mysql/client_plugin.h.pp ./abi_check.out
2,41d1
< #include <stdlib.h>
< struct st_mysql_client_plugin
< {
<   int type; unsigned int interface_version; const char *name; const char *author; const char *desc; unsigned int version[3]; int (*init)(char *, size_t, int, va_list); int (*deinit)();
< };
< struct st_mysql;
< #include <mysql/plugin_auth_common.h>
< typedef struct st_plugin_vio_info
< {
<   enum { MYSQL_VIO_INVALID, MYSQL_VIO_TCP, MYSQL_VIO_SOCKET,
<          MYSQL_VIO_PIPE, MYSQL_VIO_MEMORY } protocol;
<   int socket;
< } MYSQL_PLUGIN_VIO_INFO;
< typedef struct st_plugin_vio
< {
<   int (*read_packet)(struct st_plugin_vio *vio,
<                      unsigned char **buf);
<   int (*write_packet)(struct st_plugin_vio *vio,
<                       const unsigned char *packet,
<                       int packet_len);
<   void (*info)(struct st_plugin_vio *vio, struct st_plugin_vio_info *info);
< } MYSQL_PLUGIN_VIO;
< struct st_mysql_client_plugin_AUTHENTICATION
< {
<   int type; unsigned int interface_version; const char *name; const char *author; const char *desc; unsigned int version[3]; int (*init)(char *, size_t, int, va_list); int (*deinit)();
<   int (*authenticate_user)(MYSQL_PLUGIN_VIO *vio, struct st_mysql *mysql);
< };
< typedef char *(*mysql_authentication_dialog_ask_t)(struct st_mysql *mysql,
<                       int type, const char *prompt, char *buf, int buf_len);
< struct st_mysql_client_plugin *
< mysql_load_plugin(struct st_mysql *mysql, const char *name, int type,
<                   int argc, ...);
< struct st_mysql_client_plugin *
< mysql_load_plugin_v(struct st_mysql *mysql, const char *name, int type,
<                     int argc, va_list args);
< struct st_mysql_client_plugin *
< mysql_client_find_plugin(struct st_mysql *mysql, const char *name, int type);
< struct st_mysql_client_plugin *
< mysql_client_register_plugin(struct st_mysql *mysql,
<                              struct st_mysql_client_plugin *plugin);
make[2]: *** [do_abi_check] Ошибка 1
make[2]: Выход из каталога `/home/mikhail/Downloads/mariadb-5.2.2-gamma'
make[1]: *** [abi_check] Ошибка 2
make[1]: Выход из каталога `/home/mikhail/Downloads/mariadb-5.2.2-gamma'
make: *** [all-recursive] Ошибка 1

Answer

If you are having trouble compiling MariaDB, first review the articles under Compiling MariaDB from Source. If following the instructions there does not solve the problem you are having, send a message to the maria-developers list on Launchpad: http://launchpad.net/~maria-developers

The developers will likely be able to quickly diagnose the problem and offer a solution.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.