test failure for openssh-SNAP-20051125.tar.gz

John Gatewood Ham zappaman at buraphalinux.org
Sat Nov 26 05:03:51 EST 2005


Hello,

    Testing on my system by doing the requested
'./configure && make tests' has this crash:

----------------------8<  cut here   8<-----------------------
test try ciphers: proto 2 cipher acss at openssh.org mac hmac-md5
test try ciphers: proto 2 cipher acss at openssh.org mac hmac-sha1-96
test try ciphers: proto 2 cipher acss at openssh.org mac hmac-md5-96
ok try ciphers
run test yes-head.sh ...
head: `-2000' option is obsolete; use `-n 2000'
Try `head --help' for more information.
yes|head returns 0 lines instead of 2000
head: `-2000' option is obsolete; use `-n 2000'
Try `head --help' for more information.
yes|head returns 0 lines instead of 2000
failed yes pipe head
make[1]: *** [t-exec] Error 1
make[1]: Leaving directory `/home/hacker/z/openssh/regress'
make: *** [tests] Error 2
$head --version
head (coreutils) 5.2.1
Written by David MacKenzie and Jim Meyering.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.
----------------------8<  cut here   8<-----------------------

The attached patch solved this problem for my system.

JGH
-------------- next part --------------
--- openssh.orig/regress/yes-head.sh	2003-09-13 03:21:14.000000000 +0700
+++ openssh/regress/yes-head.sh	2005-11-26 00:44:16.000000000 +0700
@@ -4,7 +4,7 @@
 tid="yes pipe head"
 
 for p in 1 2; do
-	lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | head -2000"' | (sleep 3 ; wc -l)`
+	lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | (export _POSIX2_VERSION=199209 ; head -2000)"' | (sleep 3 ; wc -l)`
 	if [ $? -ne 0 ]; then
 		fail "yes|head test failed"
 		lines = 0;


More information about the openssh-unix-dev mailing list