Ticket #439 (closed defect: Fixed)

Opened 6 years ago

Last modified 39 years ago

RHL 9, OpenSSL problem and solution

Reported by: anubis Owned by: dreamforce2
Priority: high Milestone:
Component: ssl Version: 1.2.*
Keywords: Cc:

Description

Hi,

OpenSSL can't be compiled b/c Red Hat moved Kerberouse include files; thus, default search paths for .h files can't provide good information for compiling OpenSSL configure test.

If you have RHL 9, want to make licq and to have openssl included you should use:

CPPFLAGS=-I/usr/kerberos/include/ ./configure

Regards, Igor

Change History

Changed 6 years ago by dreamforce2

Logged In: YES user_id=527951

i don't have redhat here, but are you really sure about this? Could it be you're simply missing the openssl-devel header files? I don't see why openssl-headers should reside in the kerberos directory. what says "rpm -qa | grep -i ssl" on your machine? thomas

Changed 6 years ago by anubis

Logged In: YES user_id=22851

I'm sure 100 percent.

anubis@anubis(~)$ rpm -qa | grep -i ssl docbook-style-dsssl-1.76-8 pyOpenSSL-0.5.1-8 openssl-devel-0.9.7a-5 openssl-0.9.7a-5

Changed 6 years ago by dreamforce2

Logged In: YES user_id=527951

can you post the exact error message that you get when running configure, please? and can you attach the config.log file that resulted from the failing configure to this bugreport? i wonder what kerberos has to do with this.

Changed 6 years ago by zsteva

Logged In: YES user_id=249767

hi,

From version 0.9.7 openssl support pkg-config. With pkg-config everything fork fine, only changes is need in acinclude.m4.in. If pkg-config openssl return 0, we can use pkg-config --cflags/--libs for getting include and link flags.

Hear is my patch for CVS:

--- licq.orig/acinclude.m4.in 2003-05-20 18:10:59.000000000 +0200 +++ licq/acinclude.m4.in 2003-05-20 18:10:44.000000000 +0200 @@ -175,32 +175,39 @@

else

AC_MSG_RESULT(yes)

- dnl AC_MSG_CHECKING(for the OpenSSL headers) - temp=$CPPFLAGS - if test "$openssl_incdir" != "no"; then - CPPFLAGS="$CPPFLAGS -I$openssl_incdir" - fi - AC_CHECK_HEADER(openssl/ssl.h, WITH_OPENSSL="yes", WITH_OPENSSL="no") - if test "$WITH_OPENSSL" = "no"; then - CPPFLAGS="$temp" - fi - - if test "$WITH_OPENSSL" = "yes"; then - dnl AC_MSG_CHECKING(for the OpenSSL library) - temp="$LIBS" - if test "$openssl_libdir" != "no"; then - LIBS="$LIBS -L$openssl_libdir" - fi - AC_CHECK_LIB(crypto, DH_free) - if test "$ac_cv_lib_crypto_DH_free" = "yes"; then - AC_CHECK_LIB(ssl, SSL_new, WITH_OPENSSL="yes", WITH_OPENSSL="no") - else - WITH_OPENSSL="no" + AC_MSG_CHECKING(for pkg-config openssl (openssl have pkg-config from version 0.9.7)) + if pkg-config openssl; then + CPPFLAGS="$CPPFLAGS pkg-config --cflags openssl" + LIBS="$LIBS pkg-config --libs openssl" + AC_MSG_RESULT(yes) + else + dnl AC_MSG_CHECKING(for the OpenSSL headers) + temp=$CPPFLAGS + if test "$openssl_incdir" != "no"; then + CPPFLAGS="$CPPFLAGS -I$openssl_incdir"

fi

+ AC_CHECK_HEADER(openssl/ssl.h, WITH_OPENSSL="yes", WITH_OPENSSL="no")

if test "$WITH_OPENSSL" = "no"; then

- LIBS="$temp" - else - LIBS="-lssl $LIBS" + CPPFLAGS="$temp" + fi + + if test "$WITH_OPENSSL" = "yes"; then + dnl AC_MSG_CHECKING(for the OpenSSL library) + temp="$LIBS" + if test "$openssl_libdir" != "no"; then + LIBS="$LIBS -L$openssl_libdir" + fi + AC_CHECK_LIB(crypto, DH_free) + if test "$ac_cv_lib_crypto_DH_free" = "yes"; then + AC_CHECK_LIB(ssl, SSL_new, WITH_OPENSSL="yes", WITH_OPENSSL="no") + else + WITH_OPENSSL="no" + fi + if test "$WITH_OPENSSL" = "no"; then + LIBS="$temp" + else + LIBS="-lssl $LIBS" + fi

fi

fi

Changed 6 years ago by anubis

Logged In: YES user_id=22851

config.log without using CPPFLAFS or without Zeljko patch for configure to use pkg-config:

configure:6246: checking if OpenSSL support is desired configure:6279: result: yes configure:6296: checking openssl/ssl.h usability configure:6309: gcc -c -O2 -fPIC -DPIC -D_REENTRANT conftest.c >&5 In file included from /usr/include/openssl/ssl.h:179,

from configure:6379:

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

from configure:6379:

/usr/include/openssl/kssl.h:132: parse error before "krb5_enctype" /usr/include/openssl/kssl.h:134: parse error before "FAR" /usr/include/openssl/kssl.h:135: parse error before '}' token /usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring" /usr/include/openssl/kssl.h:147: parse error before '*' token /usr/include/openssl/kssl.h:148: parse error before '*' token /usr/include/openssl/kssl.h:149: parse error before '*' token /usr/include/openssl/kssl.h:149: parse error before '*' token /usr/include/openssl/kssl.h:150: parse error before '*' token /usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc" /usr/include/openssl/kssl.h:151: parse error before '*' token /usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt" /usr/include/openssl/kssl.h:153: parse error before '*' token /usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt" /usr/include/openssl/kssl.h:155: parse error before '*' token /usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey" /usr/include/openssl/kssl.h:157: parse error before '*' token /usr/include/openssl/kssl.h:159: parse error before "context" /usr/include/openssl/kssl.h:160: parse error before "kssl_build_principal_2" /usr/include/openssl/kssl.h:160: parse error before "context" /usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times" /usr/include/openssl/kssl.h:163: parse error before "atime" /usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent" /usr/include/openssl/kssl.h:165: parse error before '*' token /usr/include/openssl/kssl.h:167: parse error before "enctype" In file included from configure:6379: /usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX" /usr/include/openssl/ssl.h:931: parse error before '}' token

Regards, Igor

Changed 5 years ago by nobody

Logged In: NO

I have noticed that licq 1.2.6 do find openssl, but claims that there is no ssl.h, which is there, so I get licq without opensll support on my heavilly updated RedHat?7.3 (something between RawHide? and RedHat?7.3).

Changed 5 years ago by dreamforce2

Logged In: YES user_id=527951

this is fixed in CVS.

Changed 5 years ago by dreamforce2

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.