I did install openssl-devel. These were installed:

yum -y install MariaDB-devel  gcc gcc-c++ autoconf automake make libtool zlib zlib-devel openssl-devel

# ls -al /usr/lib64/openssl/engines
total 204
drwxr-xr-x. 2 root root  4096 Mar 16 09:45 .
drwxr-xr-x. 3 root root  4096 Jan 20 09:32 ..
-rwxr-xr-x  1 root root 19368 Jan 20 09:32 lib4758cca.so
-rwxr-xr-x  1 root root 19600 Jan 20 09:32 libaep.so
-rwxr-xr-x  1 root root 15352 Jan 20 09:32 libatalla.so
-rwxr-xr-x  1 root root  6032 Jan 20 09:32 libcapi.so
-rwxr-xr-x  1 root root 24048 Jan 20 09:32 libchil.so
-rwxr-xr-x  1 root root 23736 Jan 20 09:32 libcswift.so
-rwxr-xr-x  1 root root  6024 Jan 20 09:32 libgmp.so
-rwxr-xr-x  1 root root 15256 Jan 20 09:32 libnuron.so
-rwxr-xr-x  1 root root 14664 Jan 20 09:32 libpadlock.so
-rwxr-xr-x  1 root root 23960 Jan 20 09:32 libsureware.so
-rwxr-xr-x  1 root root 19576 Jan 20 09:32 libubsec.so
#

. Googled "sysbench modify “configure” to add the -m64 to compile sysbench as 64bit.". I am not sure if there are conflict when trying to link 32-bit binaries with 64-bit binaries. Does any one know how to compile sysbench as 64 bit?

> Date: Tue, 17 Mar 2015 14:50:00 +0100
> From: axel@askmonty.org
> To: maria-discuss@lists.launchpad.net
> Subject: Re: [Maria-discuss] Sysbench compile error for MariaDB under Centos 6.4
>
> On 17.03.2015 01:46, Fay Hou wrote:
> > I got error when I compile "make". Any ideas?
>
> >
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libmysqlclient_r.a(client.c.o):
> > In function `mysql_get_ssl_cipher':
> > (.text+0x2159): undefined reference to `SSL_get_current_cipher'
> >
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libmysqlclient_r.a(client.c.o):
> > In function `send_client_reply_packet':
> > (.text+0x2a68): undefined reference to `SSL_get_peer_certificate'
> ...
>
> Those are functions from SSL.
>
> > 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
> > -L/usr/local/lib 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/lib64/mysql
> > -lmysqlclient_r scripting/lua/src/liblua.a -ldl -lrt -lm -pthread
>
> and indeed the SSL libs are missing. The link line for me looks like so:
>
> 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 -O3 -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
> -lmysqlclient_r -lpthread -lz -lssl -lcrypto scripting/lua/src/liblua.a -ldl
> -laio -lm -pthread
>
> notice the extra "-lssl -lcrypto"
>
>
> XL
>
> _______________________________________________
> Mailing list: https://launchpad.net/~maria-discuss
> Post to : maria-discuss@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~maria-discuss
> More help : https://help.launchpad.net/ListHelp