TEST RELEASE: openssh-1.2.3pre1

Ishikawa ishikawa at yk.rim.or.jp
Sat Mar 11 20:00:52 EST 2000


Damien Miller wrote:

> I have just uploaded a test release of 1.2.3. It includes numerous
> fixes from the OpenBSD team and should fix the stupid configure bugs
> of 1.2.2p1.
>
> http://violet.ibs.com.au/openssh/files/test/
>
> A detailed ChangeLog is in the directory.
>
> Please report successes and failures.

Tried the 1.2.3pre1. Here is a bug report.

openssh-1.2.3pre1

configure failed on my Debian GNU/Linux

configure confusion:

Fact.

I am using openssl-0.9.4.tar.gz and installed it
under what I believe to be the default directory.

Header files are under

        /usr/local/ssl/include/openssl

whereas the library files are under

        /usr/local/ssl/lib

Please note that the header files need additional
intermediate directory "openssl".

Directory listing.
ishikawa at standard$ ls /usr/local/ssl
./  ../  bin/  certs/  include/  lib/  misc/  openssl.cnf  private/
ishikawa at standard$ ls /usr/local/ssl/include
./  ../  openssl/
ishikawa at standard$ ls /usr/local/ssl
./  ../  bin/  certs/  include/  lib/  misc/  openssl.cnf  private/
ishikawa at standard$ ls /usr/local/ssl/include
./  ../  openssl/
ishikawa at standard$ ls /usr/local/ssl/lib
./  ../  libcrypto.a  libssl.a
ishikawa at standard$

Fix to configure.

For library search path, I added -L$ssldir/lib before -L$ssldir,
and  for header search path,
I added th -I$ssldir/openssh/include before -I$ssldir/include.

This worked. Your milage may vary.

ishikawa at standard$ pwd
/opt2/tools/openssh-1.2.3pre1

rcsdiff -u configure
===================================================================
RCS file: RCS/configure,v
retrieving revision 1.1
diff -u -r1.1 configure
--- configure   2000/03/11 08:14:38     1.1
+++ configure   2000/03/11 08:44:11
@@ -986,6 +986,8 @@
   echo "$ac_t""no" 1>&6
 fi

+# set -vx
+
 # Find a good install program.  We prefer a C program (faster),
 # so one script is as good as another.  But avoid the broken or
 # incompatible versions:
@@ -1042,6 +1044,9 @@
 fi
 echo "$ac_t""$INSTALL" 1>&6

+#echo "INSTALL : $INSTALL "
+#set +vx
+
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 # It thinks the first close brace ends the variable substitution.
 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
@@ -1885,12 +1890,16 @@
 if test "x$prefix" != "xNONE" ; then
        tryssldir="$tryssldir $prefix"
 fi
+
+#set -vx
+#echo "tryssldir: $tryssldir"
+
 echo $ac_n "checking for OpenSSL/SSLeay directory""... $ac_c" 1>&6
 echo "configure:1890: 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 -lcrypto"
-               CFLAGS="$CFLAGS -I$ssldir/include"
+               LIBS="$saved_LIBS -L$ssldir/lib -L$ssldir -lcrypto"
+               CFLAGS="$CFLAGS -I$ssldir/openssh/include
-I$ssldir/include"
                if test "x$need_dash_r" = "x1" ; then
                        LIBS="$LIBS -R$ssldir/lib"
                fi
ishikawa at standard$


Possible Better fix.
It is better to modify the configure.in and re-create the
configure for testing.
But, when I modified configure.in and tried to re-created configure
using autoconf, it failed with the following messages.
(This error also resulted with the original configure.in in the
tar file.)
Maybe my autoconf is not up-to-date.
Someone in the know can fix configure.in and recreate configure
for distribution.


Eg.

ishikawa at standard$ autoconf --version
Autoconf version 2.13
ishikawa at standard$ autoconf
configure.in:184: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:200: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:551: warning: Cannot check for file existence when cross
compiling
configure.in:558: warning: Cannot check for file existence when cross
compiling
configure.in:598: warning: Cannot check for file existence when cross
compiling
ishikawa at standard$


Thank you again for the great package.

Happy Hacking!








More information about the openssh-unix-dev mailing list