Bug #21327 OpenSSL-checking in configure
Submitted: 28 Jul 2006 13:12 Modified: 2 Sep 2006 1:40
Reporter: Michael Prohm Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.25-BK, 5.0.23 OS:
Assigned to: Magnus Blåudd CPU Architecture:Any

[28 Jul 2006 13:12] Michael Prohm
Description:
if the configure-command is called with "--with-openssl=/usr", but without "--with-openssl-includes" and "--with-openssl-libs", then the ssl-libs are not found, because there is a wrong variable in the configure-script.

How to repeat:
Calling configure with "--with-openssl=/usr" 

Suggested fix:
--- configure.orig      2006-07-28 14:44:55.000000000 +0200
+++ configure   2006-07-28 14:51:08.000000000 +0200
@@ -39038,8 +39038,8 @@
         OPENSSL_INCLUDE=-I$incs
       fi
       # Test for libssl using all known library file endings
-      if test -f $d/libssl.a || test -f $d/libssl.so || \
-         test -f $d/libssl.sl || test -f $d/libssl.dylib ; then
+      if test -f $libs/libssl.a || test -f $libs/libssl.so || \
+         test -f $libs/libssl.sl || test -f $libs/libssl.dylib ; then
         OPENSSL_LIB=$libs
       fi
       ;;

--- config/ac-macros/openssl.m4.orig    2006-07-28 15:02:54.000000000 +0200
+++ config/ac-macros/openssl.m4 2006-07-28 15:03:51.000000000 +0200
@@ -30,8 +30,8 @@
         OPENSSL_INCLUDE=-I$incs
       fi
       # Test for libssl using all known library file endings
-      if test -f $d/libssl.a || test -f $d/libssl.so || \
-         test -f $d/libssl.sl || test -f $d/libssl.dylib ; then
+      if test -f $libs/libssl.a || test -f $libs/libssl.so || \
+         test -f $libs/libssl.sl || test -f $libs/libssl.dylib ; then
         OPENSSL_LIB=$libs
       fi
[28 Jul 2006 14:02] Valeriy Kravchuk
Thank you for a bug report. Verified just as described, by checking current sources. config/ac-macros/openssl.m4 still has, starting from line 28:

    * )
      if test -f $incs/openssl/ssl.h  ; then
        OPENSSL_INCLUDE=-I$incs
      fi
      # Test for libssl using all known library file endings
      if test -f $d/libssl.a || test -f $d/libssl.so || \
         test -f $d/libssl.sl || test -f $d/libssl.dylib ; then
        OPENSSL_LIB=$libs
      fi
      ;;

It is obviously a bug.
[30 Jul 2006 15:11] Gert Haubrich
The bug also applies to new mysql-5.0.23.tar.gz. Change $d with $libs and it works.
[6 Aug 2006 4:34] [ name withheld ]
hi,

this is seen as a problem for for 5.0.23/Linux & 5.0.24/MacOSX

reference here:

http://forums.mysql.com/read.php?117,105439,105439#msg-105439
[8 Aug 2006 9:33] Dan Lukes
The bug present in mysql-5.0.24.tar.gz also
[14 Aug 2006 18:17] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/10381

ChangeSet@1.2250, 2006-08-14 20:16:47+02:00, msvensson@neptunus.(none) +1 -0
  Bug#21327 OpenSSL-checking in configure
   - Change $d to $libs as suggested.
   - Thanks to Michael Prohm for the patch!
[17 Aug 2006 16:23] Chad MILLER
Available in 5.0.25 and soon in 5.1.12-beta.
[1 Sep 2006 14:46] [ name withheld ]
just checking on the off-chance ...

did this fix, perchance, get pushed into 5.0.24a?

or still N.A. til 5.0.25?

thx!
[2 Sep 2006 1:40] Paul DuBois
No changelog entry needed.
[4 Sep 2006 7:55] Magnus Blåudd
It will be in 5.0.25
5.0.24a is 5.0.24 plus a few serious bug fixes.
[25 Sep 2006 7:57] Valeriy Kravchuk
Bug #22651 marked as a duplicate of this one.
[3 Oct 2006 6:50] Sveta Smirnova
There is duplicate bug #22912