Call for testing: OpenSSH-5.4

Damien Miller djm at mindrot.org
Fri Mar 5 11:40:48 EST 2010


On Thu, 4 Mar 2010, Kevin Brott wrote:

> building openssh-SNAP-20100305.tar.gz
> 
> RHEL ES 4 update5 - i686 still fails to build, but drops out in
> ssh-rand-helper.c instead of ssh-keygen.c
> 
> ...
> ssh-rand-helper.c: In function `main':
> ssh-rand-helper.c:861: error: `BSDoptind' undeclared (first use in this
> function)

Try this diff:

Index: ChangeLog
===================================================================
RCS file: /var/cvs/openssh/ChangeLog,v
retrieving revision 1.5493
diff -u -p -r1.5493 ChangeLog
--- ChangeLog	4 Mar 2010 20:48:05 -0000	1.5493
+++ ChangeLog	5 Mar 2010 00:39:36 -0000
@@ -8,6 +8,8 @@
      Add a -L flag to print the contents of a certificate; ok markus@
  - (tim) [ssh-pkcs11.c] Fix "non-constant initializer" errors in older
    compilers. OK djm@
+ - (djm) [ssh-rand-helper.c] declare optind, avoiding compilation failure
+   on some platforms
 
 20100304
  - (djm) [ssh-keygen.c] Use correct local variable, instead of
Index: ssh-rand-helper.c
===================================================================
RCS file: /var/cvs/openssh/ssh-rand-helper.c,v
retrieving revision 1.42
diff -u -p -r1.42 ssh-rand-helper.c
--- ssh-rand-helper.c	20 Nov 2009 04:16:35 -0000	1.42
+++ ssh-rand-helper.c	5 Mar 2010 00:39:04 -0000
@@ -818,6 +818,7 @@ main(int argc, char **argv)
 	unsigned char *buf;
 	int ret, ch, debug_level, output_hex, bytes;
 	extern char *optarg;
+	extern int optind;
 	LogLevel ll;
 
 	__progname = ssh_get_progname(argv[0]);


More information about the openssh-unix-dev mailing list