"/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
This is a problem with newer versions of RedHat. Starting with Redhat9, Redhat added some krb5 dependencies in openssl. This results in errors with nearly all programs using openssl because kerberos resides in /usr/kerberos so that krb5.h is not found.
Some postings related to apache2 on RedHat mentioned that the use of pkg-config might be helpful. I found this code in the spec file of the RedHat9 apache2 package and added it in my build-script:
if pkg-config openssl ; then # configure -C barfs with trailing spaces in CFLAGS CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags openssl | sed 's/ *$//'`" AP_LIBS="$AP_LIBS `pkg-config --libs openssl`" else CFLAGS="$RPM_OPT_FLAGS" AP_LIBS="-lssl -lcrypto" fi export CFLAGS export AP_LIBS
This did the job for apache2. I just modified this code for htdig. Building htdig worked fine, but I haven't tested the result yet.
Try this in your spec file:
#Configure Phase CPPFLAGS="-Wno-deprecated $RPM_OPT_FLAGS" export CPPFLAGS
# RedHat9 kerberos problem with openssl if pkg-config openssl ; then # configure -C barfs with trailing spaces in CFLAGS CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags openssl | sed 's/ *$//'`" LIBS="$LIBS `pkg-config --libs openssl`" CXXFLAGS="-Wno-deprecated $RPM_OPT_FLAGS `pkg-config --cflags openssl`" else CFLAGS="$RPM_OPT_FLAGS" LIBS="-lssl -lcrypto" CXXFLAGS="-Wno-deprecated $RPM_OPT_FLAGS" fi export CFLAGS export LIBS export CXXFLAGS
./configure
Berthold
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ ht://Dig general mailing list: <[EMAIL PROTECTED]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general

