From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23552 invoked by alias); 27 Apr 2003 17:52:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23538 invoked from network); 27 Apr 2003 17:52:23 -0000 Received: from unknown (HELO sparky.j-son.org) (213.64.105.80) by sources.redhat.com with SMTP; 27 Apr 2003 17:52:23 -0000 Received: (from chj@localhost) by sparky.j-son.org (8.11.6/8.11.6) id h3RHqGQ01124; Sun, 27 Apr 2003 19:52:16 +0200 Date: Sun, 27 Apr 2003 22:03:00 -0000 From: c.christian.joensson@telia.com To: Nix , gdb-gnats@sources.redhat.om, gdb-patches@sources.redhat.com Subject: Re: build/955: build failure with GDB-5.3: sparc-nat.c structure redefinition errors with sparc64-linux, glibc-2.2.x Message-ID: <20030427195216.A1115@sparky.j-son.org> References: <20030427150800.19859.qmail@sources.redhat.com> <20030427153321.GA3394@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030427153321.GA3394@nevyn.them.org>; from drow@mvista.com on Sun, Apr 27, 2003 at 11:33:21AM -0400 X-SW-Source: 2003-04/txt/msg00513.txt.bz2 On Sun, Apr 27, 2003 at 11:33:21AM -0400, Daniel Jacobowitz wrote: > On Sun, Apr 27, 2003 at 03:08:00PM -0000, Nix wrote: > > The following reply was made to PR build/955; it has been noted by GNATS. > > > > From: Nix > > To: Christian =?iso-8859-1?q?J=F6nsson?= > > Cc: , , > > , > > Subject: Re: build/955: build failure with GDB-5.3: sparc-nat.c structure redefinition errors with sparc64-linux, glibc-2.2.x > > Date: 27 Apr 2003 15:45:01 +0100 > > > > On Sun, 27 Apr 2003, Christian Jönsson spake: > > > http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&databas > > > e=gdb&pr=955 > > > > > > Is *anything* happening on this issue in gdb cvs HEAD? > > > > My apologies for not following up; this patch, abstracted from Debian > > (where fading memory tells me it is due to Daniel Jacobowitz), fixes it, > > but is probably too ugly to go in; the incompatibility test should > > really be done by configure: > > Right on the origin and ugliness counts, which is why I never got > around to doing anything about it. But it's better than nothing, since > it lets sparc-linux build, so I suppose it should go in... does anyone object? > > > Index: gdb/gdb/sparc-nat.c > > =================================================================== > > RCS file: /cvs/src/src/gdb/sparc-nat.c,v > > retrieving revision 1.13.12.1 > > diff -u -r1.13.12.1 sparc-nat.c > > --- gdb/gdb/sparc-nat.c 3 Dec 2002 22:35:49 -0000 1.13.12.1 > > +++ gdb/gdb/sparc-nat.c 27 Apr 2003 14:39:53 -0000 > > @@ -33,6 +33,13 @@ > > #include > > #include > > #ifdef __linux__ > > +/* Sadly, conflicts with on Linux. And > > + -D_GNU_SOURCE brings in implicitly with . > > + Hack around this. */ > > +#undef FPU_REGS_TYPE > > +#define fpu asm_reg_fpu > > +#define fq asm_reg_fq > > +#define fpq asm_reg_fpq > > #include > > #else > > #include well, I'd be happy if it went in, I'd sure want a fresh gdb for both sparc-linux and sparc64-linux, I haven't had a working gdb for sparc64-linux ever... it sure could go into both cvs HEAD and the 5.3 branch, I guess. Thanks for your efforts! Cheers, /ChJ