From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21959 invoked by alias); 8 Feb 2002 15:57:52 -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 21807 invoked from network); 8 Feb 2002 15:57:50 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 8 Feb 2002 15:57:50 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16ZDPK-0004NO-00; Fri, 08 Feb 2002 10:57:50 -0500 Date: Fri, 08 Feb 2002 07:57:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Cc: "Martin M. Hunt" Subject: Re: [RFA] fix for utils.c bool problem Message-ID: <20020208105750.A16802@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com, "Martin M. Hunt" References: <200202072133.NAA28346@cygnus.com> <20020207163944.A30605@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020207163944.A30605@nevyn.them.org> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00229.txt.bz2 On Thu, Feb 07, 2002 at 04:39:44PM -0500, Daniel Jacobowitz wrote: > On Thu, Feb 07, 2002 at 01:32:53PM -0800, Martin M. Hunt wrote: > > Am I the only one seeing this? On three different build systems I am getting errors like > > > > gcc -c -g -O2 -I/usr/include/v9 -I. -I../../src/gdb -I../../src/gdb/config -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl -DMI_OUT=1 -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized ../../src/gdb/utils.c > > In file included from /usr/progressive/lib/gcc-lib/sparc-sun-solaris2.5/2.96-gnupro-00r1/include/curses.h:5, > > from ../../src/gdb/utils.c:30: > > /usr/include/curses.h:69: conflicting types for `_Bool' > > /usr/progressive/lib/gcc-lib/sparc-sun-solaris2.5/2.96-gnupro-00r1/include/stdbool.h:41: previous declaration of `_Bool' > > > > Some newer versions of gcc apparently have stdbool.h improvements that > > fix the problem. Another fix is to simply reorder the patch, which fixes builds > > on all of my systems (Windows, Linux, Solaris) > > This is the patch I alluded to earlier today on binutils@. It's not > quite complete, since TUI is also affected; I've attached mine. I'm > quite surprised that this fixes the problem for you without the > corresponding bfd patch that I haven't committed yet! No one objected, so I've committed this. As far as I know GDB should build everywhere it used to before I started playing with bool, as long as you update both BFD and GDB. If I'm wrong, please let me know. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer