> I'm having a problem getting MySQL 4.0.20 compiled w/ SSL support on one
> of my servers.  configure finds what it's wanting for SSL support but the
> make fails every time.  Technically this a RH9 box, although it doesn't
> much resemble one after I'm through with it.  OpenSSL is of course
> compiled from source and installed in /usr/local/ssl (default).  
> ld.so.conf has of course been modified appropriately.  MySQL is configured
> with...
> 
> ./configure --prefix=/usr/local --sysconfdir=/etc/mysql 
> --localstatedir=/var --enable-shared --enable-static --with-libwrap 
> --with-berkeley-db --enable-thread-safe-client --with-mysqld-user=mysql 
> --with-openssl --with-openssl-includes=/usr/local/ssl/include 
> --with-openssl-libs=/usr/local/ssl/lib

...I believe you need to enable vio here (--with-vio), as well.

> opensslv.h exists, although I don't know where exactly its looking for it.  
> Any ideas spring into anyone's mind?  The OpenSSL installation is just
> fine.  Of the dozens of other packages I've compiled against this OpenSSL
> install (and other identical installs on other servers) everything worked
> without a hitch except for MySQL.  I'm stumped as to why it's not working
> though.  Is there some trick to getting MySQL to compile with OpenSSL 
> installed in its default location?

This piece of the make process is BROKEN in MySQL.  (Though MySQL
themselves will not admit as much.)

My sysadmin spent two days wrestling with this recently.  He can't reply
to your message at the moment, but he did scribble down some notes that
may help.  :)

First, you have to add "-L /usr/local/ssl/lib" to ALL your MySQL
makefiles.  Fun.

Second, you will run into some problem somewhere with "lex_hash".  In
that case, you'll need to:

  cd sql
  rm lex_hash.h gen_lex_hash
  make lex_hash.h

...And there may have been some other craziness as well.  There *are*
messages about this out there... it just takes some digging to find
them.

Keep at it.  It *is* possible.  ;)

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to