Package: grep-dctrl
Version: 2.6.6
Severity: normal
Tags: patch

When building 'grep-dctrl' on amd64/unstable with gcc-4.0,
I get the following error:

gcc -std=gnu99  -O2 -g -Wall -DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"/etc\" 
-DHAVE_GETTEXT -DPACKAGE=\"grep-dctrl\" -DLOCALEDIR=\"/usr/share/locale\"  
-DVERSION=\"2.6.6\" -DMAINTAINER='"Antti-Juhani Kaijanaho <[EMAIL PROTECTED]>"' 
  -c -o msg.o msg.c
msg.c:46: error: conflicting types for 'progname'
msg.h:60: error: previous declaration of 'progname' was here
make[1]: *** [msg.o] Error 1
make[1]: Leaving directory `/grep-dctrl-2.6.6'
make: *** [debian/stamp/build] Error 2

With the attached patch 'grep-dctrl' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/grep-dctrl-2.6.6/msg.h ./msg.h
--- ../tmp-orig/grep-dctrl-2.6.6/msg.h  2004-07-04 19:40:33.000000000 +0200
+++ ./msg.h     2005-06-17 13:29:50.000000000 +0200
@@ -57,7 +57,7 @@
 inline static char const *
 get_progname(void)
 {
-       extern const char progname [];
+       extern char progname [];
        return progname;
 }
 


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

Reply via email to