I have just updated the patch, please try again once it has hit the ftp server:
-rw-r--r-- 1 djm djm 6411 Jul 23 23:31 openbsd42_5.1.patch -rw-r--r-- 1 djm djm 6144 Jul 23 23:31 openbsd43_5.1.patch SHA1 (openbsd42_5.1.patch) = 7ed266a177d09aa67b120b44522f92e1201d34ac SHA1 (openbsd43_5.1.patch) = d45b51c446f08e2f1356ef77c4d004814d27c572 Sorry for the confusion. -d On Wed, 23 Jul 2008, Renaud Allard wrote: > Damien Miller wrote: > > On Tue, 22 Jul 2008, Joel Dinel wrote: > > > > > > To answer my own question, no sooner had I hit 'send' than I noticed the > > > > patch number indicated 4.3. I have downloaded OpenSSH 5.0, the > > > > appropriate 4.1 -> 5.0 patch and all is well. > > > Well I am getting the exact same compilation error as you, on a fresh > > > OpenBSD 4.3 box, when tying to compile OpenSSH 5.1 with the patch for > > > 4.3. > > > > > > cc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o > > > sshconnect1.o sshconnect2.o mux.o > > > -L/usr/src/usr.bin/ssh/ssh/../lib/obj -lssh -lgssapi -lkrb5 -lcrypto > > > -lz -ldes > > > /usr/src/usr.bin/ssh/ssh/../lib/obj/libssh.a(dh.o)(.text+0x438): In > > > function `choose_dh': > > > /usr/src/usr.bin/ssh/dh.c:166: undefined reference to `arc4random_uniform' > > > collect2: ld returned 1 exit status > > > *** Error code 1 > > > > Oops, I'll prepare a new openssh43_5.1.patch shortly. > > > > I don't know if the new patch is already online but I tried with a fresh new > 4.3 install from CDs and I get another error due to the fact sys/statvfs.h > does not exist. > > > /usr/src/usr.bin/ssh/sftp-server.c:23:25: sys/statvfs.h: No such file or > directory > /usr/src/usr.bin/ssh/sftp-server.c:479: warning: `struct statvfs' declared > inside parameter list > /usr/src/usr.bin/ssh/sftp-server.c:479: warning: its scope is only this > definition or declaration, which is probably not what you want > /usr/src/usr.bin/ssh/sftp-server.c: In function `send_statvfs': > /usr/src/usr.bin/ssh/sftp-server.c:484: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:484: error: `ST_RDONLY' undeclared (first > use in this function) > /usr/src/usr.bin/ssh/sftp-server.c:484: error: (Each undeclared identifier is > reported only once > /usr/src/usr.bin/ssh/sftp-server.c:484: error: for each function it appears > in.) > /usr/src/usr.bin/ssh/sftp-server.c:485: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:485: error: `ST_NOSUID' undeclared (first > use in this function) > /usr/src/usr.bin/ssh/sftp-server.c:490: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:491: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:492: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:493: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:494: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:495: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:496: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:497: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:498: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c:500: error: dereferencing pointer to > incomplete type > /usr/src/usr.bin/ssh/sftp-server.c: In function `process_extended_statvfs': > /usr/src/usr.bin/ssh/sftp-server.c:1123: error: storage size of `st' isn't > known > /usr/src/usr.bin/ssh/sftp-server.c: In function `process_extended_fstatvfs': > /usr/src/usr.bin/ssh/sftp-server.c:1140: error: storage size of `st' isn't > known > *** Error code 1

