Can not configure openssh-1.2.2p1

Vin Shelton acs at alumni.princeton.edu
Thu Mar 9 14:46:50 EST 2000


(I'm not subscribed to the list, so if you have any comments, please
mail them to me directly.)

Thanks for openssh!

I downloaded openssh-1.2.2p1 and found I could not configure it on my
linux 2.2.15pre13 i686 kernel.  The error I got was:

configure: error: Could not find working SSLeay / OpenSSL libraries, please install 

I had previously installed openssl (first 0.9.4 and then 0.9.5) into
/usr/local/ssl.  I had previously managed to configure, build and
install openssh-1.2.2 with this same openssl configuration.

I needed the following patch to configure.in in order to enable
configure to find the -lcrypto library:

--- configure.in.orig	Sun Mar  5 01:02:46 2000
+++ configure.in	Wed Mar  8 22:28:19 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"


In an unrelated problem, I am unable to build from a different build
directory than my source directory.  In other words, if I follow my
usual build procedure and do:

    cd /usr/local/src
    tar xfz ~/openssh-1.2.2p1.tar.gz
    cd /usr/local/build
    mkdir openssh-1.2.2p1
    cd ./openssh-1.2.2p1
    ../../src/openssh-1.2.2p1/configure
    make

I get the following errors:

In file included from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/includes.h:22: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:96,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-bindresvport.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:97,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-rresvport.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:98,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-misc.h:40: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:99,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-strlcpy.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:100,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-strlcat.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:101,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-mktemp.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:102,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-snprintf.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:103,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-daemon.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:104,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/bsd-login.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:107,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/fake-getaddrinfo.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:108,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/fake-getnameinfo.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/includes.h:109,
                 from ../../src/openssh-1.2.2p1/atomicio.c:26:
../../src/openssh-1.2.2p1/fake-socket.h:4: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/ssh.h:29,
                 from ../../src/openssh-1.2.2p1/atomicio.c:30:
../../src/openssh-1.2.2p1/rsa.h:21: config.h: No such file or directory
In file included from ../../src/openssh-1.2.2p1/ssh.h:30,
                 from ../../src/openssh-1.2.2p1/atomicio.c:30:
../../src/openssh-1.2.2p1/cipher.h:19: config.h: No such file or directory
make: *** [atomicio.o] Error 1

I worked around this problem by adding "-I. -I$(srcdir)" to the CFLAGS
in the generated Makefile, but I'm sure there's a nice
configure-oriented way to support this.

Thanks again for openssh!  If you want some more information, I'd be
happy to hear from you.

  - vin shelton





More information about the openssh-unix-dev mailing list