Mailing List Archive

Found a bug in the OpsnSSH configuration script
[.I'm cc:ing openssl-users@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@stacken.kth.se
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- bastard@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.
Re: Found a bug in the OpsnSSH configuration script [ In reply to ]
Richard Levitte - VMS Whacker wrote:
>
> [.I'm cc:ing openssl-users@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:

Its looking for an uninstalled version, handy for developers, not so
handy for users. Ideally it should try both.

Cheers,

Ben.

>
> --- 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@stacken.kth.se
> Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
> Redakteur@Stacken \ SWEDEN \ or +46-708-26 53 44
> Procurator Odiosus Ex Infernis -- bastard@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.
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List openssl-users@openssl.org
> Automated List Manager majordomo@openssl.org

--
http://www.apache-ssl.org/ben.html
Re: Found a bug in the OpsnSSH configuration script [ In reply to ]
ben> > I don't recall how SSLeay was installed, but for OpenSSL, there's a
ben> > glitch in the way it tries to find the libraries. The following fix
ben> > works for me:
ben>
ben> Its looking for an uninstalled version, handy for developers, not so
ben> handy for users. Ideally it should try both.

In that list of directories? I'm baffled...

ben> > 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

--
Richard Levitte \ Spannvägen 38, II \ LeViMS@stacken.kth.se
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- bastard@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.
Re: Found a bug in the OpsnSSH configuration script [ In reply to ]
Richard Levitte - VMS Whacker wrote:
>
> ben> > I don't recall how SSLeay was installed, but for OpenSSL, there's a
> ben> > glitch in the way it tries to find the libraries. The following fix
> ben> > works for me:
> ben>
> ben> Its looking for an uninstalled version, handy for developers, not so
> ben> handy for users. Ideally it should try both.
>
> In that list of directories? I'm baffled...
>
> ben> > 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

I expect you'll find that "" or $tryssldir is the relevant one. :-)

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html