Found a bug in the OpsnSSH configuration script

Richard Levitte - VMS Whacker levitte at stacken.kth.se
Fri Mar 24 05:08:20 EST 2000


[I'm cc:ing openssl-users at openssl.org, because questions about this
 are getting there over and over...]

There's a problem that several people who installed OpenSSL to be able
to uyse OpenSSH have faced:

   Could not find working SSLeay / OpenSSL libraries, please install

I don't recall how SSLeay was installed, but for OpenSSL, there's a
glitch in the way it tries to find the libraries.  The following fix
works for me:

--- configure.in.orig	Thu Mar 23 18:56:58 2000
+++ configure.in	Thu Mar 23 18:55:05 2000
@@ -152,10 +152,10 @@
 AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
 for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
 	if test ! -z "$ssldir" ; then
-		LIBS="$saved_LIBS -L$ssldir"
+		LIBS="$saved_LIBS -L$ssldir/lib"
 		CFLAGS="$CFLAGS -I$ssldir/include"
 		if test "x$need_dash_r" = "x1" ; then
-			LIBS="$LIBS -R$ssldir"
+			LIBS="$LIBS -R$ssldir/lib"
 		fi
 	fi
 	LIBS="$LIBS -lcrypto"
--- configure.orig	Thu Mar 23 18:55:02 2000
+++ configure	Thu Mar 23 18:57:08 2000
@@ -1890,10 +1890,10 @@
 echo "configure:1891: checking for OpenSSL/SSLeay directory" >&5
 for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
 	if test ! -z "$ssldir" ; then
-		LIBS="$saved_LIBS -L$ssldir"
+		LIBS="$saved_LIBS -L$ssldir/lib"
 		CFLAGS="$CFLAGS -I$ssldir/include"
 		if test "x$need_dash_r" = "x1" ; then
-			LIBS="$LIBS -R$ssldir"
+			LIBS="$LIBS -R$ssldir/lib"
 		fi
 	fi
 	LIBS="$LIBS -lcrypto"

-- 
Richard Levitte   \ Spannvägen 38, II \ LeViMS at stacken.kth.se
Chairman at Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur at Stacken   \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis             -- bastard at bofh.se
           Member of the OpenSSL development team

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.





More information about the openssh-unix-dev mailing list