Compilation error with sysbench-0.4.12 as well as trunk

Bug #1342971 reported by Ashish B on 2014-07-16

This bug report was converted into a question: question #251765: Compilation error with sysbench-0.4.12 as well as trunk.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Undecided
Unassigned

Bug Description

I'm seeing following errros when issuing "make" for the sysbench on Ubuntu 14.04. I've openssl* installed on my box.

libtool: link: gcc -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Winline -funroll-loops -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align -pthread -O2 -ggdb3 -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o sb_percentile.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/mutex/libsbmutex.a scripting/libsbscript.a drivers/mysql/libsbmysql.a -L/usr/lib/x86_64-linux-gnu -lmariadbclient scripting/lua/src/liblua.a -ldl -laio -lm -pthread
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `send_client_reply_packet':
(.text+0xc9c): undefined reference to `SSL_get_peer_certificate'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `send_client_reply_packet':
(.text+0xcb4): undefined reference to `X509_get_subject_name'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `send_client_reply_packet':
(.text+0xcd2): undefined reference to `X509_NAME_oneline'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `send_client_reply_packet':
(.text+0xce1): undefined reference to `X509_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `send_client_reply_packet':
(.text+0xe1e): undefined reference to `ERR_error_string_n'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `mysql_get_ssl_cipher':
(.text+0x2b19): undefined reference to `SSL_get_current_cipher'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `mysql_close':
(.text+0x353f): undefined reference to `SSL_CTX_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(client.c.o): In function `mysql_get_ssl_cipher':
(.text+0x2b22): undefined reference to `SSL_CIPHER_get_name'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x63): undefined reference to `SSL_load_error_strings'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x8a): undefined reference to `TLSv1_server_method'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x92): undefined reference to `SSL_CTX_new'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0xae): undefined reference to `SSL_CTX_set_cipher_list'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0xc8): undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0xe6): undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x117): undefined reference to `SSL_CTX_use_certificate_chain_file'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x134): undefined reference to `SSL_CTX_use_PrivateKey_file'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x149): undefined reference to `SSL_CTX_check_private_key'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x156): undefined reference to `DH_new'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x171): undefined reference to `BN_bin2bn'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x189): undefined reference to `BN_bin2bn'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x1b5): undefined reference to `SSL_CTX_ctrl'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x1bd): undefined reference to `DH_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x1d9): undefined reference to `TLSv1_client_method'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x228): undefined reference to `SSL_library_init'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x22d): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x29b): undefined reference to `ERR_get_error_line_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x2a8): undefined reference to `SSL_CTX_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x2f5): undefined reference to `ERR_get_error_line_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x3cd): undefined reference to `ERR_get_error_line_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x40d): undefined reference to `ERR_get_error_line_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x427): undefined reference to `DH_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
(.text+0x45d): undefined reference to `ERR_get_error_line_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLConnectorFd':
(.text+0x4b2): undefined reference to `SSL_CTX_set_verify'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
(.text+0x4fd): undefined reference to `SSL_CTX_ctrl'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
(.text+0x50c): undefined reference to `SSL_CTX_set_verify'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
(.text+0x51c): undefined reference to `SSL_CTX_set_session_id_context'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosslfactories.c.o): In function `free_vio_ssl_acceptor_fd':
(.text+0x540): undefined reference to `SSL_CTX_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosocket.c.o): In function `vio_poll_read':
(.text+0x51b): undefined reference to `SSL_get_fd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosocket.c.o): In function `vio_is_connected':
(.text+0x593): undefined reference to `SSL_pending'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viosocket.c.o): In function `vio_pending':
(.text+0x609): undefined reference to `SSL_pending'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(vio.c.o): In function `vio_end':
(.text+0x797): undefined reference to `ERR_remove_state'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(vio.c.o): In function `vio_end':
(.text+0x79c): undefined reference to `ERR_free_strings'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(vio.c.o): In function `vio_end':
(.text+0x7a1): undefined reference to `EVP_cleanup'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(vio.c.o): In function `vio_end':
(.text+0x7a7): undefined reference to `CRYPTO_cleanup_all_ex_data'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_read':
(.text+0x1e): undefined reference to `SSL_read'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_write':
(.text+0x6e): undefined reference to `SSL_write'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_close':
(.text+0xbf): undefined reference to `SSL_set_quiet_shutdown'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_close':
(.text+0xc7): undefined reference to `SSL_shutdown'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_delete':
(.text+0x107): undefined reference to `SSL_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x170): undefined reference to `SSL_new'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x184): undefined reference to `SSL_clear'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x18c): undefined reference to `SSL_get_session'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x197): undefined reference to `SSL_SESSION_set_timeout'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x1a3): undefined reference to `SSL_set_fd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x1b7): undefined reference to `SSL_ctrl'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x1bf): undefined reference to `SSL_accept'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x1cb): undefined reference to `SSL_get_fd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x206): undefined reference to `SSL_get_error'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x213): undefined reference to `SSL_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslaccept':
(.text+0x241): undefined reference to `ERR_get_error'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x280): undefined reference to `SSL_new'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x294): undefined reference to `SSL_clear'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x29c): undefined reference to `SSL_get_session'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x2a7): undefined reference to `SSL_SESSION_set_timeout'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x2b3): undefined reference to `SSL_set_fd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x2c7): undefined reference to `SSL_ctrl'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x2cf): undefined reference to `SSL_connect'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x2db): undefined reference to `SSL_get_fd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x316): undefined reference to `SSL_get_error'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x323): undefined reference to `SSL_free'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `sslconnect':
(.text+0x351): undefined reference to `ERR_get_error'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(viossl.c.o): In function `vio_ssl_has_data':
(.text+0x38c): undefined reference to `SSL_pending'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(my_compress.c.o): In function `my_compress_buffer':
(.text+0x9d): undefined reference to `deflateInit_'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(my_compress.c.o): In function `my_compress_buffer':
(.text+0xb9): undefined reference to `deflate'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(my_compress.c.o): In function `my_compress_buffer':
(.text+0xc9): undefined reference to `deflateEnd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(my_compress.c.o): In function `my_compress_buffer':
(.text+0xf4): undefined reference to `deflateEnd'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(my_compress.c.o): In function `my_uncompress':
(.text+0x29d): undefined reference to `uncompress'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(mysql_async.c.o): In function `my_ssl_read_async':
(.text+0xcbf): undefined reference to `SSL_read'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(mysql_async.c.o): In function `my_ssl_read_async':
(.text+0xcee): undefined reference to `SSL_get_error'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(mysql_async.c.o): In function `my_ssl_write_async':
(.text+0xd6f): undefined reference to `SSL_write'
/usr/lib/x86_64-linux-gnu/libmariadbclient.a(mysql_async.c.o): In function `my_ssl_write_async':
(.text+0xd9e): undefined reference to `SSL_get_error'

Ashish B (ashishkumarb) on 2014-07-17
Changed in sysbench:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers