Mike Chirico on 30 Nov 2003 11:25:03 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] (RedHat 9 only) openssl includes Kerberos support...Errors when compiling programs that use openssl, like nmap


I noticed when compiling programs like nmap http://www.insecure.org/, with openssl support
 
   ./configure --with-openssl=/usr/include
   make
 
It produces  the following error:
 
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179
 
It seems openssl (on RedHat 9) is installed with Kerberos support; but, the Kerberos files are in a separate location
 
  /usr/kerberos/include
 
From what I can tell, any program with #include <openssl/ssl.h> will have the problem, because this header has openssl/kssl.h (openssl with Kerberos support), which looks for krb5.h in the /usr/include directory; but, RedHat 9 installed (krb5.h with other Kerberos files)  in /usr/kerberos/include.
 
One Fix:
 
Add the following include directives to the Makefiles
 
     -I/usr/kerberos/include
 
Anyway, I hope this helps somebody.
 
Regards,
 
Mike Chirico