Bug #764 Compile failure with OpenSSL on Red Hat Linux (krb5.h missing)
Submitted: 30 Jun 2003 9:31 Modified: 21 Jul 2003 4:50
Reporter: Lenz Grimmer Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.x OS:Linux (Red Hat Linux)
Assigned to: Sergei Glukhov CPU Architecture:Any

[30 Jun 2003 9:31] Lenz Grimmer
Description:
Compiling MySQL with "--with-openssl" currently fails on Red Hat Linux with
the following error: 

In file included from /usr/include/openssl/ssl.h:179,
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory

The problem is that OpenSSL on Red Hat Linux was compiled with Kerberos support.

Unfortunately krb5.h is located in /usr/kerberos/include, which is not in the
include path by default.

As a workaround, it may work to add "-DOPENSSL_NO_KRB5" to CFLAGS and CXXFLAGS.
However, this does not seem to be the recommended solution (see the URL below
for a more detailed description)

How to repeat:
Try to compile MySQL 4.x with OpenSSL support on Red Hat Linux 9:

./configure --with-openssl

Suggested fix:
configure.in needs to be improved to automatically add "-I/usr/kerberos/include"
to the compile flags, if required.

See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82369 for more details
and suggestions on how to resolve this in configure.in (by using "pkg-config")
[8 Jul 2003 22:29] Sergei Glukhov
ChangeSet
  1.1489 03/07/08 16:23:39
[21 Jul 2003 4:50] Sergei Golubchik
fixed by Monty in 4.0.14