openssl libraries not found in 32 bits builds

Bug #1175447 reported by Ignacio Nin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
High
Ignacio Nin
5.1
Fix Released
High
Ignacio Nin
5.5
Invalid
High
Ignacio Nin
5.6
Invalid
High
Ignacio Nin

Bug Description

In the fix for bug https://bugs.launchpad.net/percona-server/+bug/1104977, 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
   124
   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
   131

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

Related branches

Changed in percona-server:
status: New → Invalid
tags: added: pkg
Revision history for this message
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.

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-662

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

Other bug subscribers

Remote bug watches

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