Bug #18818 configure: No longer finds OpenSSL on Mac OS X
Submitted: 5 Apr 2006 18:54 Modified: 24 May 2006 19:33
Reporter: Paul DuBois
Status: Closed
Category:Server: Compiling Severity:S3 (Non-critical)
Version:4.1, 5.0, 5.1 OS:Mac OS X (Mac OS X)
Assigned to: Magnus Blaudd Target Version:

[5 Apr 2006 18: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 13:38] Magnus Blaudd
Caused by fix for bug#16332
[19 Apr 2006 20: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 13: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 9:02] Magnus Blaudd
Pushed to 4.1.19 and 5.0.22 - not yet in 5.1
[6 May 2006 9: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 11: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 11: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 13: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 17:03] Magnus Blaudd
Pushed to 4.1.20 and 5.0.22
[22 May 2006 10:33] Magnus Blaudd
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 19: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.