Bug #1461 unable to compile with-openssl on Red Hat Linux 9
Submitted: 1 Oct 2003 19:55 Modified: 8 Dec 2003 4:04
Reporter: John Mitz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.0-alpha OS:Linux (Red Hat Linux 9)
Assigned to: Alexander Keremidarski CPU Architecture:Any

[1 Oct 2003 19:55] John Mitz
Description:
Make fails to find krb5.h.  I had the same problem building PHP 4.3.3 from source, but a soft link to krb5.h located in /usr/kerberos/includes did the trick.  Not so for MySQL.

openssl-0.9.7a-20 & openssl-devel-0.9.7a-20.

How to repeat:
CFFLAGS="-03 -mpentiumpro" CXX=gcc CXXFLAGS="-03 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql-4.1.0 --localstatedir=/usr/local/mysql-4.1.0/data --with-vio --with-openssl=/usr/include/openssl --with-berkeley-db

Suggested fix:
??
[1 Oct 2003 19:59] John Mitz
Sorry,

That --with-openssl line should be just plain --with-openssl (no path).
[2 Oct 2003 5:46] Alexander Keremidarski
You are right openssl on RedHat 9 depends on kerberos packages.
Just make sure both krb5-libs and krb5-devel RPM are installed.

krb5-libs-1.2.7-14
krb5-devel-1.2.7-14

openssl-0.9.7a-20
openssl-devel-0.9.7a-20

With these RPMS --with-openssl succeeds on RedHat 9
In order to be sure I just copied your configure line and it worked.
[2 Oct 2003 7:24] John Mitz
Yep, I had to double-check to make sure, but I thought they were already installed:

[j@fido j]$ rpm -qa | grep -i krb
krbafs-1.1.1-9
krbafs-devel-1.1.1-9
krb5-libs-1.2.7-14
krb5-devel-1.2.7-14
pam_krb5-1.60-1

Any other ideas?
[2 Oct 2003 7:31] John Mitz
When you say 'it worked', do you mean configure succeeds, or make does?  Make is where it was failing...it configured just fine.

Thanks for your help.

PS I did remember to rm the config.cache and make clean, as recommended, each time...
[2 Oct 2003 9:25] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

this was fixed in the early August - that is after 4.1.0 release :(
[2 Oct 2003 9:46] John Mitz
I don't know what you're referring to when you say it was fixed...

May I please ask what the 'fix' was, so that I may verify that my source is indeed 'fixed'.

Please note that I'm using 4.1.0-alpha, which isn't from CVS...or is it?

Thanks.
[2 Oct 2003 10:07] John Mitz
Whoops!

Sorry, so if I now understand you correctly, it is a bug, it has been fixed in a later version, but the source I just downloaded yesterday from your web site has not been...I can live with that, since I'm just using it for devel purposes for now.

But, if it's an easy fix, and it's not too much trouble, I'd be willing to hand edit a source file myself...if not, it's a great product and I look forward to future releases, especially those that will install on RH.

I started with rpms, but they require openssl-0.9.6 (which aren't currently a part of my setup), and I had problems compiling PHP/MySQL with the tarball binary.  This is my third attempt at installation (successful, except for the openssl part).

I searched the bug reports for the problem before I submitted this, and I only found 2 regarding OSX and openssl.
[2 Oct 2003 10:20] Alexander Keremidarski
Sorry for my misleading comment.

This was indeed fixed in BitKeeper source tree after 4.1.0-alpha was released. When we rlease 4.1.1 fix will be there.

Meanwhile if you are interested you can check how development is going on by getting BK trees or just ChangeSet information.

For more details refer to http://www.mysql.com/doc/en/Installing_source_tree.html
[2 Oct 2003 10:38] John Mitz
Gotcha!

Thanks, I'll be patient!
[2 Oct 2003 11:02] Sergei Golubchik
if you want to see one particular fix you may use http interface to our bk repository:

This is the fix I was talking about:

http://mysql.bkbits.net:8080/mysql-4.0/diffs/acinclude.m4@1.85?nav=index.html|src/|hist/ac...