Subject: Re: MIPS switched to new-toolchain
To: enami tsugutomo <enami@sm.sony.co.jp>
From: FUKAUMI Naoki <naoki@fukaumi.org>
List: port-hpcmips
Date: 01/09/2002 18:24:12
(Cc: port-hpcmips)

On Wed, Jan 09, 2002 at 05:38:45PM +0900, enami tsugutomo wrote:
> > ssh works fine? My NetBSD/hpcmips machine (2001/12/14 with new toolchain)
> > alwalys return zero at RAND_pseudo_bytes(buf, 1).
> 
> It looks like if crypto/dist/openssl/crypto/rand/md_rand.c is compiled
> with -O2, it returns 0.  It works correctly if compiled with -O1.

BINGO!

rm md_rand.{o,po}
env DBG=-O1 make all install

then ssh{,d} works fine. Thank you!

> > 	unsigned char *buf;
> > 	printf("%d", RAND_pseudo_bytes(buf, 1));
> 
> ... this should be read:
> 
> < 	unsigned char buf;
> < 	printf("%d", RAND_pseudo_bytes(&buf, 1));

Thank you too :)

-- 
FUKAUMI Naoki