error in compiling Percona-Server-5.1.60

Bug #924073 reported by hch
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned

Bug Description

i install mariaDB,mysql ,and percona5.1 for test,but when i compile percona ,error happened

+ for file in include/mysql/plugin.h include/mysql.h
+ gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql/plugin.h
+ /bin/sed -e '/^# /d' -e '/^[ ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql/plugin.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
+ for file in include/mysql/plugin.h include/mysql.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
/usr/bin/ld: warning: i386:x86-64 architecture of input file `../mysys/libmysys.a(my_thr_init.o)' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `../mysys/libmysys.a(my_pthread.o)' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `../mysys/libmysys.a(my_thr_init.o)' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `../mysys/libmysys.a(my_pthread.o)' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_init.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_static.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_malloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_realloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_create.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_delete.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_tempfile.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_open.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_file.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_read.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_write.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/errors.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_error.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_getwd.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_div.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_pack.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_messnc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_dirname.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_fn_ext.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_wcomp.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/typelib.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/safemalloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_alloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_format.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_path.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_unixpath.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_fopen.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_symlink.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_fstream.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_arr_appstr.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_loadpath.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_pthread.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_thr_init.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/thr_mutex.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mulalloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/string.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/default.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/default_modify.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_compress.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/array.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_once.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/list.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_net.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/charset.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/charset-def.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/hash.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_iocache.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_iocache2.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_seek.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_sleep.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_pread.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_cache.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/md5.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/sha1.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_getopt.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_rename.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_chsize.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_sync.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_getsystime.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_lib.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/mf_qsort.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strmov.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strxmov.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strxnmov.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strnmov.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strmake.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strend.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strtod.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strnlen.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strfill.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/is_prefix.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/int2str.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/str2int.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strinstr.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strcont.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strcend.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-latin1.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/bchange.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/bmove.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/bmove_upp.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/longlong2str.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strtoull.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/strtoll.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/llstr.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_vsnprintf.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-simple.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-bin.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-mb.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-big5.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-czech.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-cp932.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-eucjpms.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-euc_kr.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-win1250ch.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-utf8.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-extra.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-ucs2.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-gb2312.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-gbk.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-sjis.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-tis620.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-ujis.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/ctype-uca.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/xml.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_strtoll10.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/str_alloc.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/dbug.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/pack.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/client.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/my_time.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/vio.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/viosocket.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/viossl.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/viosslfactories.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `.libs/net.o' is incompatible with i386 output
.libs/client.o: In function `mysql_ssl_free':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1645: undefined reference to `yaSSL_CTX_free'
.libs/client.o: In function `ssl_verify_server_cert':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1719: undefined reference to `yaSSL_get_peer_certificate'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1731: undefined reference to `yaX509_get_subject_name'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1731: undefined reference to `yaX509_NAME_oneline'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1732: undefined reference to `yaX509_free'
.libs/client.o: In function `mysql_get_ssl_cipher':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/client.c:1675: undefined reference to `yaSSL_get_cipher_name'
.libs/vio.o: In function `vio_end':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/vio.c:252: undefined reference to `yayaSSL_CleanUp'
.libs/viossl.o: In function `vio_ssl_close':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:135: undefined reference to `yaSSL_set_quiet_shutdown'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:137: undefined reference to `yaSSL_shutdown'
.libs/viossl.o: In function `vio_ssl_delete':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:168: undefined reference to `yaSSL_free'
.libs/viossl.o: In function `vio_ssl_write':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:109: undefined reference to `yaSSL_write'
.libs/viossl.o: In function `vio_ssl_read':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:92: undefined reference to `yaSSL_read'
.libs/viossl.o: In function `ssl_do':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:190: undefined reference to `yaSSL_new'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:198: undefined reference to `yaSSL_clear'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:199: undefined reference to `yaSSL_get_session'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:199: undefined reference to `yaSSL_SESSION_set_timeout'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:200: undefined reference to `yaSSL_set_fd'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:216: undefined reference to `yaSSL_get_fd'
.libs/viossl.o: In function `report_errors':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:70: undefined reference to `yaERR_get_error_line_data'
.libs/viossl.o: In function `ssl_do':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:206: undefined reference to `yaSSL_free'
.libs/viossl.o: In function `report_errors':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:70: undefined reference to `yaERR_get_error_line_data'
.libs/viossl.o: In function `sslconnect':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:263: undefined reference to `yaSSL_connect'
.libs/viossl.o: In function `sslaccept':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viossl.c:256: undefined reference to `yaSSL_accept'
.libs/viosslfactories.o: In function `free_vio_ssl_acceptor_fd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:349: undefined reference to `yaSSL_CTX_free'
.libs/viosslfactories.o: In function `new_VioSSLFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:225: undefined reference to `yaSSL_CTX_new'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:239: undefined reference to `yaSSL_CTX_set_cipher_list'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:251: undefined reference to `yaSSL_CTX_load_verify_locations'
.libs/viosslfactories.o: In function `vio_set_cert_stuff':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:106: undefined reference to `yaSSL_CTX_use_certificate_file'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:120: undefined reference to `yaSSL_CTX_use_PrivateKey_file'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:135: undefined reference to `yaSSL_CTX_check_private_key'
.libs/viosslfactories.o: In function `get_dh512':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:43: undefined reference to `yaDH_new'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:45: undefined reference to `yaBN_bin2bn'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:46: undefined reference to `yaBN_bin2bn'
.libs/viosslfactories.o: In function `new_VioSSLFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:276: undefined reference to `yaSSL_CTX_set_tmp_dh'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:277: undefined reference to `yaDH_free'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:254: undefined reference to `yaSSL_CTX_set_default_verify_paths'
.libs/viosslfactories.o: In function `report_errors':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:67: undefined reference to `yaERR_get_error_line_data'
.libs/viosslfactories.o: In function `new_VioSSLFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:259: undefined reference to `yaSSL_CTX_free'
.libs/viosslfactories.o: In function `check_ssl_init':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:184: undefined reference to `yaSSL_library_init'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:185: undefined reference to `yaOpenSSL_add_all_algorithms'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:196: undefined reference to `yaSSL_load_error_strings'
.libs/viosslfactories.o: In function `report_errors':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:67: undefined reference to `yaERR_get_error_line_data'
.libs/viosslfactories.o: In function `new_VioSSLFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:269: undefined reference to `yaSSL_CTX_free'
.libs/viosslfactories.o: In function `get_dh512':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:49: undefined reference to `yaDH_free'
.libs/viosslfactories.o: In function `report_errors':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:67: undefined reference to `yaERR_get_error_line_data'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:67: undefined reference to `yaERR_get_error_line_data'
.libs/viosslfactories.o: In function `new_VioSSLAcceptorFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:324: undefined reference to `yaTLSv1_server_method'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:332: undefined reference to `yaSSL_CTX_sess_set_cache_size'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:334: undefined reference to `yaSSL_CTX_set_verify'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:340: undefined reference to `yaSSL_CTX_set_session_id_context'
.libs/viosslfactories.o: In function `new_VioSSLConnectorFd':
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:302: undefined reference to `yaTLSv1_client_method'
/home/nacho/src/release-5.1.60-13.1/Percona-Server-5.1.60/libmysql/viosslfactories.c:310: undefined reference to `yaSSL_CTX_set_verify'
collect2: ld returned 1 exit status
make[2]: *** [libmysqlclient.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

It looks like a 32- and 64- bit compiler toolchain mix-up. Can you give the exact compilation command you used?

And this is definitely not a "security vulnerability".

security vulnerability: yes → no
visibility: private → public
Changed in percona-server:
status: New → Incomplete
Revision history for this message
hch (justlooks) wrote : Re: [Bug 924073] Re: error in compiling Percona-Server-5.1.60
Download full text (28.0 KiB)

here is the command

/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -g -O2
-DUNIV_LINUX -DUNIV_LINUX -rdynamic -o libmysqlclient.la -rpath
/opt/percona51/lib/mysql -version-info 16:0:0
-Wl,--version-script=../libmysql/libmysql.ver libmysql.lo password.lo
manager.lo get_password.lo errmsg.lo my_init.lo my_static.lo my_malloc.lo
my_realloc.lo my_create.lo my_delete.lo mf_tempfile.lo my_open.lo
my_file.lo my_read.lo my_write.lo errors.lo my_error.lo my_getwd.lo
my_div.lo mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo mf_wcomp.lo
typelib.lo safemalloc.lo my_alloc.lo mf_format.lo mf_path.lo mf_unixpath.lo
my_fopen.lo my_symlink.lo my_fstream.lo mf_arr_appstr.lo mf_loadpath.lo
my_pthread.lo my_thr_init.lo thr_mutex.lo mulalloc.lo string.lo default.lo
default_modify.lo my_compress.lo array.lo my_once.lo list.lo my_net.lo
charset.lo charset-def.lo hash.lo mf_iocache.lo mf_iocache2.lo my_seek.lo
my_sleep.lo my_pread.lo mf_cache.lo md5.lo sha1.lo my_getopt.lo
my_rename.lo my_chsize.lo my_sync.lo my_getsystime.lo my_lib.lo mf_qsort.lo
strmov.lo strxmov.lo strxnmov.lo strnmov.lo strmake.lo strend.lo strtod.lo
strnlen.lo strfill.lo is_prefix.lo int2str.lo str2int.lo strinstr.lo
strcont.lo strcend.lo ctype-latin1.lo bchange.lo bmove.lo bmove_upp.lo
longlong2str.lo strtoull.lo strtoll.lo llstr.lo my_vsnprintf.lo ctype.lo
ctype-simple.lo ctype-bin.lo ctype-mb.lo ctype-big5.lo ctype-czech.lo
ctype-cp932.lo ctype-eucjpms.lo ctype-euc_kr.lo ctype-win1250ch.lo
ctype-utf8.lo ctype-extra.lo ctype-ucs2.lo ctype-gb2312.lo ctype-gbk.lo
ctype-sjis.lo ctype-tis620.lo ctype-ujis.lo ctype-uca.lo xml.lo
my_strtoll10.lo str_alloc.lo dbug.lo pack.lo client.lo my_time.lo vio.lo
viosocket.lo viossl.lo viosslfactories.lo net.lo -lcrypt -lnsl -lm -lz
-lrt
gcc -shared .libs/libmysql.o .libs/password.o .libs/manager.o
.libs/get_password.o .libs/errmsg.o .libs/my_init.o .libs/my_static.o
.libs/my_malloc.o .libs/my_realloc.o .libs/my_create.o .libs/my_delete.o
.libs/mf_tempfile.o .libs/my_open.o .libs/my_file.o .libs/my_read.o
.libs/my_write.o .libs/errors.o .libs/my_error.o .libs/my_getwd.o
.libs/my_div.o .libs/mf_pack.o .libs/my_messnc.o .libs/mf_dirname.o
.libs/mf_fn_ext.o .libs/mf_wcomp.o .libs/typelib.o .libs/safemalloc.o
.libs/my_alloc.o .libs/mf_format.o .libs/mf_path.o .libs/mf_unixpath.o
.libs/my_fopen.o .libs/my_symlink.o .libs/my_fstream.o
.libs/mf_arr_appstr.o .libs/mf_loadpath.o .libs/my_pthread.o
.libs/my_thr_init.o .libs/thr_mutex.o .libs/mulalloc.o .libs/string.o
.libs/default.o .libs/default_modify.o .libs/my_compress.o .libs/array.o
.libs/my_once.o .libs/list.o .libs/my_net.o .libs/charset.o
.libs/charset-def.o .libs/hash.o .libs/mf_iocache.o .libs/mf_iocache2.o
.libs/my_seek.o .libs/my_sleep.o .libs/my_pread.o .libs/mf_cache.o
.libs/md5.o .libs/sha1.o .libs/my_getopt.o .libs/my_rename.o
.libs/my_chsize.o .libs/my_sync.o .libs/my_getsystime.o .libs/my_lib.o
.libs/mf_qsort.o .libs/strmov.o .libs/strxmov.o .libs/strxnmov.o
.libs/strnmov.o .libs/strmake.o .libs/strend.o .libs/strtod.o
.libs/strnlen.o .libs/strfill.o .libs/is_prefix.o .libs/int2str.o
.libs/str2int.o .libs/strinstr.o .libs/strcont.o .libs/strcend.o
.libs/ctype-latin1.o .l...

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Please the commands that you yourself have issued to configure and build Percona Server.

Revision history for this message
Stewart Smith (stewart) wrote :

and also what platform you're building on.

Revision history for this message
hch (justlooks) wrote :

[root@dx ~]# uname -a
Linux dx 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux

configure command is

./configure --prefix=/opt/percona51

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

uname -a shows that this is a 32-bit system and the compilation errors show that at least parts of MySQL were built for 64 bits.

What does gcc -v print on your system?

Revision history for this message
hch (justlooks) wrote :

]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)

Revision history for this message
hch (justlooks) wrote :

i try this ,still have problem
# cmake -DCMAKE_INSTALL_PREFIX=/opt/percona55 -DWITH_EMBEDDED_SERVER=OFF .

Linking CXX static library libsql.a
[100%] Built target sql
Linking CXX executable mysqld
gcc: _ALL_STATIC=1: No such file or directory
make[2]: *** [sql/mysqld] Error 1
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2
make: *** [all] Error 2

# echo $?
2

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

For 5.1 cmake is used only for Windows builds. Please use configure with options. For the undefined symbol errors, look into --with-ssl, --with-yassl --with-openssl options. I am not sure at this point what causes the 32 and 64 bit object mix-up.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

The most likely reason is bug #927163. Please try running "make clean" before building.

Revision history for this message
Stewart Smith (stewart) wrote :

Closing as invalid as this appears to have been resolved in bug#927163

Changed in percona-server:
status: Incomplete → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2727

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.