Package: lsh-utils
Severity: normal
Tags: patch

When building 'lsh-utils' on amd64 with gcc-4.0,
I get the following error:

gcc -DHAVE_CONFIG_H -I. -I/lsh-utils-1.4.2/src/nettle -I.     -g -O2 -ggdb3 
-Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  
-Wpointer-arith -Wbad-function-cast -Wnested-externs -c `test -f 'des.c' || 
echo '/lsh-utils-1.4.2/src/nettle/'`des.c
des.c:45: error: static declaration of 'des_keymap' follows non-static 
declaration
desCode.h:12: error: previous declaration of 'des_keymap' was here
make[6]: *** [des.o] Error 1
make[6]: Leaving directory `/lsh-utils-1.4.2/src/nettle'

With the attached patch 'lsh-utils' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/lsh-utils-1.4.2/src/nettle/des.c ./src/nettle/des.c
--- ../tmp-orig/lsh-utils-1.4.2/src/nettle/des.c        2002-01-14 
17:06:34.000000000 +0100
+++ ./src/nettle/des.c  2005-01-31 19:33:21.688764286 +0100
@@ -41,7 +41,7 @@
 
 /* various tables */
 
-static const uint32_t
+const uint32_t
 des_keymap[] = {
 #include       "keymap.h"
 };
diff -urN ../tmp-orig/lsh-utils-1.4.2/src/lsh_types.h ./src/lsh_types.h
--- ../tmp-orig/lsh-utils-1.4.2/src/lsh_types.h 2001-08-28 20:34:40.000000000 
+0200
+++ ./src/lsh_types.h   2005-01-31 19:38:10.054181226 +0100
@@ -79,11 +79,7 @@
 # define UNUSED
 #endif
 
-#if HAVE_GCC_FUNCTION
-# define FUNCTION_NAME __FUNCTION__
-#else
 # define FUNCTION_NAME "Unknown"
-#endif
 
 /* Stringizing macros */
 #define STRINGIZE1(x) #x



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to