Package: crash Severity: normal Tags: patch When building 'crash' with gcc-4.0, I get the following error:
gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DCRASH_MERGE -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunused-label -Wunused-function symtab.c symtab.c: In function 'lookup_symbol': symtab.c:972: error: invalid storage class for function 'gdb_bait_and_switch' symtab.c:973: warning: implicit declaration of function 'gdb_bait_and_switch' symtab.c: At top level: symtab.c:4740: warning: conflicting types for 'gdb_bait_and_switch' symtab.c:4740: error: static declaration of 'gdb_bait_and_switch' follows non-static declaration symtab.c:973: error: previous implicit declaration of 'gdb_bait_and_switch' was here make[4]: *** [symtab.o] Error 1 With the attached patch 'crash' can be compiled using gcc-4.0. The attached patch also add amd64 and ppc64 to the list of supported architectures in debian/control. Regards Andreas Jochens diff -urN ../tmp-orig/crash-3.8-2.1/debian/patches/gcc4.patch ./debian/patches/gcc4.patch --- ../tmp-orig/crash-3.8-2.1/debian/patches/gcc4.patch 1970-01-01 01:00:00.000000000 +0100 +++ ./debian/patches/gcc4.patch 2005-02-04 21:33:26.261332470 +0100 @@ -0,0 +1,20 @@ +diff -urN tmp/gdb-6.1/gdb/symtab.c crash-3.8-2.1/gdb-6.1/gdb/symtab.c +--- tmp/gdb-6.1/gdb/symtab.c 2004-06-22 22:13:44.000000000 +0200 ++++ crash-3.8-2.1/gdb-6.1/gdb/symtab.c 2005-02-04 21:29:14.250963655 +0100 +@@ -902,6 +902,8 @@ + return psym; + } + ++static void gdb_bait_and_switch(char *, struct symbol *); ++ + /* Find the definition for a specified symbol name NAME + in domain DOMAIN, visible from lexical block BLOCK. + Returns the struct symbol pointer, or zero if no symbol is found. +@@ -969,7 +971,6 @@ + + #ifdef CRASH_MERGE + if (returnval && (domain == VAR_DOMAIN)) { +- static void gdb_bait_and_switch(char *, struct symbol *); + gdb_bait_and_switch((char *)modified_name, returnval); + } + #endif diff -urN ../tmp-orig/crash-3.8-2.1/debian/control ./debian/control --- ../tmp-orig/crash-3.8-2.1/debian/control 2005-02-04 21:52:47.759104380 +0100 +++ ./debian/control 2005-02-04 21:19:37.000000000 +0100 @@ -6,7 +6,7 @@ Standards-Version: 3.6.1 Package: crash -Architecture: alpha i386 powerpc ia64 +Architecture: alpha amd64 i386 ia64 powerpc ppc64 Depends: ${shlibs:Depends} Description: kernel debugging utility, allowing gdb like syntax The core analysis suite is a self-contained tool that can be used to -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]