Subject: Re: toolchain/36159: Cross build on Cygwin fails (sha1.c)
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-bugs
Date: 04/17/2007 11:55:01
The following reply was made to PR toolchain/36159; it has been noted by GNATS.
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/36159: Cross build on Cygwin fails (sha1.c)
Date: Tue, 17 Apr 2007 12:53:08 +0100
On Tue, Apr 17, 2007 at 04:05:00AM +0000, bsh@NetBSD.org wrote:
> Index: sha1/sha1.c
> ===================================================================
> RCS file: /u0/cvsupbase/cvsroot-netbsd/src/common/lib/libc/hash/sha1/sha1.c,v
> retrieving revision 1.2
> diff -u -r1.2 sha1.c
> --- sha1/sha1.c 27 Oct 2006 21:25:21 -0000 1.2
> +++ sha1/sha1.c 17 Apr 2007 01:42:46 -0000
> @@ -146,10 +146,10 @@
> * Hash a single 512-bit block. This is the core of the algorithm.
> */
> void SHA1Transform(state, buffer)
> - u_int32_t state[5];
> + uint32_t state[5];
> const u_char buffer[64];
> {
> - u_int32_t a, b, c, d, e;
> + uint32_t a, b, c, d, e;
> CHAR64LONG16 *block;
>
> #ifdef SHA1HANDSOFF
This is not the correct fix. "src/tools/compat/configure" checks for
the existence of "u_int32_t". Can you please check "config.log" to
find out what the result of that check was?
Kind regards
--
Matthias Scheler http://zhadum.org.uk/