Andreas Jochens <[EMAIL PROTECTED]> writes:

> Package: lsh-utils
> Severity: normal
> Tags: patch
> 
> When building 'lsh-utils' on amd64 with gcc-4.0,
> I get the following error:

If you have the time, it would be nice if you could try to build the
latest version of nettle or lsh, i.e.

  http://www.lysator.liu.se/~nisse/archive/lsh-2.0.tar.gz
  http://www.lysator.liu.se/~nisse/archive/nettle-1.12.tar.gz

I think this bug was fixed in August 2003, and that the correct
solution was to delete the non-static declaration. See patches below.

Regards,
/Niels


$ cvs diff -u -r1.2 -r1.3 desCode.h
Index: desCode.h
===================================================================
RCS file: /cvsroot/lsh/lsh/src/nettle/desCode.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- desCode.h   14 Jan 2002 16:03:04 -0000      1.2
+++ desCode.h   17 Aug 2003 15:31:51 -0000      1.3
@@ -1,6 +1,6 @@
 /* desCode.h
  *
- * $Id: desCode.h,v 1.2 2002/01/14 16:03:04 nisse Exp $ */
+ * $Id: desCode.h,v 1.3 2003/08/17 15:31:51 nisse Exp $ */

 /*     des - fast & portable DES encryption & decryption.
  *     Copyright (C) 1992  Dana L. How
@@ -9,9 +9,6 @@

 #include "des.h"

-extern const uint32_t des_keymap[];
-extern const uint32_t des_bigmap[];
-
 /* optional customization:
  * the idea here is to alter the code so it will still run correctly
  * on any machine,  but the quickest on the specific machine in mind.

$ cvs diff -u -r1.7 -r1.8 des.c
Index: des.c
===================================================================
RCS file: /cvsroot/lsh/lsh/src/nettle/des.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- des.c       12 May 2003 19:39:50 -0000      1.7
+++ des.c       17 Aug 2003 15:31:51 -0000      1.8
@@ -2,7 +2,7 @@
  *
  * The des block cipher.
  *
- * $Id: des.c,v 1.7 2003/05/12 19:39:50 nisse Exp $
+ * $Id: des.c,v 1.8 2003/08/17 15:31:51 nisse Exp $
  */

 /* nettle, low-level cryptographics library
@@ -40,9 +40,6 @@

 #include "desCode.h"

-static ENCRYPT(DesSmallFipsEncrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
-static DECRYPT(DesSmallFipsDecrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
-
 /* various tables */

 static const uint32_t
@@ -60,6 +57,9 @@
 #include       "parity.h"
 };

+static ENCRYPT(DesSmallFipsEncrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
+static DECRYPT(DesSmallFipsDecrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
+
 void
 des_fix_parity(unsigned length, uint8_t *dst,
               const uint8_t *src)

Regards,
/Niels

Reply via email to