openssl libraries not found in 32 bits builds

Bug #1175447 reported by Ignacio Nin on 2013-05-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.6
Ignacio Nin
Ignacio Nin
Ignacio Nin

Bug Description

In the fix for bug, a typo was introduced that prevents the openssl library from being found in 32 bit systems:

   116 if test "$target_cpu" == "x86_64"
   117 then
   118 openssl_libs="-L$location/lib64/ -lssl -lcrypto"
   119 MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])
   120 else
   121 # So it gets set to lib/
   122 openssl_libs="no"
   123 fi
   125 if test "$mysql_ssl_found" == "no"
   126 then
   127 # Now try lib/
   128 openssl_libs="-L$location/lib/ -lssl -lcrypto"
   129 MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])
   130 fi

Line 122 should read mysql_ssl_found=no, so the test at line 125 is affirmative and try lib/. The intent of setting mysql_ssl_found to no was this -- instead, the test is not affirmative and "no" gets added to the CFLAGS incorrectly, having the link fail at build time.

We need to fix the typo and set mysql_ssl_found to no.

Tags: pkg Edit Tag help

Related branches

Laurynas Biveinis: Approve on 2013-05-02
Changed in percona-server:
status: New → Invalid
tags: added: pkg
Ignacio Nin (ignacio-nin) wrote :

Error that appears at compile time:

/bin/bash ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=14.2 -DUNIV_LINUX -DUNIV_LINUX -static -rdynamic -o conf_to_src conf_to_src.o -lcrypt -lnsl -lm no -lz -lrt
libtool: link: gcc -fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=14.2 -DUNIV_LINUX -DUNIV_LINUX -rdynamic -o conf_to_src conf_to_src.o no -lcrypt -lnsl -lm -lz -lrt
gcc: error: no: No such file or directory
make[3]: *** [conf_to_src] Error 1

It can be seen that the libssl flags are set to "no", causing link to fail.

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

Other bug subscribers