WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix build of gdbstub.c

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix build of gdbstub.c
From: "Charles Coffing" <ccoffing@xxxxxxxxxx>
Date: Mon, 25 Sep 2006 17:44:30 -0400
Delivery-date: Mon, 25 Sep 2006 14:45:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Changeset 11598 broke the build with my gcc-4.1.2.  You can't forward-declare a 
static function within another function.  Trivial patch attached to fix this.

Signed-off-by:  Charles Coffing <ccoffing@xxxxxxxxxx>

gcc -O1 -fno-omit-frame-pointer -g -m32 -march=i686 -Wall -Wstrict-prototypes 
-Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common 
-fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe 
-I/usr/src/packages/BUILD/xen-unstable/xen/include 
-I/usr/src/packages/BUILD/xen-unstable/xen/include/asm-x86/mach-generic 
-I/usr/src/packages/BUILD/xen-unstable/xen/include/asm-x86/mach-default 
-msoft-float -g -D__XEN__ -DVERBOSE -DCRASH_DEBUG -c gdbstub.c -o gdbstub.o
gdbstub.c: In function ‘gdbstub_attach’:
gdbstub.c:363: error: invalid storage class for function ‘gdbstub_console_puts’
gdbstub.c:367: error: ‘gdbstub_console_puts’ undeclared (first use in this 
function)
gdbstub.c:367: error: (Each undeclared identifier is reported only once
gdbstub.c:367: error: for each function it appears in.)
make[4]: *** [gdbstub.o] Error 1


Attachment: gdbstubs.diff
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>