Bug #18818 configure: No longer finds OpenSSL on Mac OS X
Submitted: 5 Apr 2006 16:54 Modified: 24 May 2006 17:33
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1, 5.0, 5.1 OS:MacOS (Mac OS X)
Assigned to: Magnus Blåudd CPU Architecture:Any

[5 Apr 2006 16:54] Paul DuBois
Description:
A few days ago, ./configure for the 4.1 BK tree stopped
being able to find OpenSSL with invoked with --with-vio
--with-openssl.  Since then this problem has spread to
the 5.0 and 5.1 trees.

A workaround for 5.0 and up might be using --with-yassl,
but 4.1 has no such option.

Here is the symptom I observe:

checking style of gethostname_r routines... other
checking 3 argument to gethostname_r routines... char
checking "args to pthread_getspecific"... POSIX
checking "args to pthread_mutex_init"... POSIX
checking "args to readdir_r"... POSIX
checking "style of sigwait"... POSIX
checking "for pthread_attr_setscope"... yes
checking "can netinet files be included"... "yes"
Warning: extra-tools disabled because --enable-thread-safe-client wasn't used
checking for ORBit... ./configure: line 1: orbit-config: command not found
./configure: line 1: orbit-config: command not found
./configure: line 1: orbit-config: command not found
found!
checking if we should build MySQLFS... no
checking for OpenSSL... Could not find an installation of OpenSSL

At this point some sh process pegs the CPU, and then eventually
configure exits with an error.

(The orbit-config warnings are harmless, I think. I normally see
them.)

How to repeat:
Here are my configure options (used after running
the usual autotools commands):

VERSION=40119

BASEDIR=/var/mysql/$VERSION
TCP_PORT=$VERSION

HANDLERS="
    --with-archive-storage-engine
    --with-blackhole-storage-engine
    --with-csv-storage-engine
    --with-example-storage-engine
    --with-innodb
    --without-berkeley-db
"
BENCH="--without-bench"
DOCS="--without-docs --without-man"
OTHER="--with-embedded-server --enable-local-infile --with-vio --with-openssl --with-extra-charsets=all"
rm -f config.cache
CXX=gcc \
./configure \
    --prefix=$BASEDIR \
    --localstatedir=$BASEDIR/data \
    --with-unix-socket-path=$BASEDIR/mysql.sock \
    --with-tcp-port=$TCP_PORT \
    $HANDLERS $BENCH $DOCS $OTHER
[19 Apr 2006 11:38] Magnus Blåudd
Caused by fix for bug#16332
[19 Apr 2006 18:26] 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/5165
[28 Apr 2006 11:56] 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/5683
[2 May 2006 7:02] Magnus Blåudd
Pushed to 4.1.19 and 5.0.22 - not yet in 5.1
[6 May 2006 7:48] 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/6041
[12 May 2006 9:18] 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/6285
[12 May 2006 9:29] 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/6288
[17 May 2006 11:59] 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/6505
[17 May 2006 15:03] Magnus Blåudd
Pushed to 4.1.20 and 5.0.22
[22 May 2006 8:33] Magnus Blåudd
Pushed to 5.1.11 a patch that adds the new switch --with-ssl to configure and removes the old --with-yassl and --with-openssl
[24 May 2006 17:33] Paul DuBois
I've updated the sections in the manual that describe
how to set up MySQL to support SSL, and added
changelog end upgrade notes in the 5.1 manual noting
the change to use --with-ssl when running configure.