From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29676 invoked by alias); 25 Mar 2004 22:40:03 -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 29659 invoked from network); 25 Mar 2004 22:40:00 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 25 Mar 2004 22:40:00 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C93522B92; Thu, 25 Mar 2004 17:40:00 -0500 (EST) Message-ID: <40635FC0.9040508@gnu.org> Date: Thu, 25 Mar 2004 22:40:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Manoj Iyer Cc: gdb-patches@sources.redhat.com Subject: Re: [6.1] TUI in doco? (compiler errors) References: <4057859D.1020900@gnu.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00642.txt.bz2 > I dont know how much you care abt this for 6.1 to be shippable... > > I get compiler errors compiling TUI, I am compiling GDB as a 64bit binary > on a ppc64 machine, I saw similar compiler errors in ppc-linux-tdep.c, > because it contained an enum as follows... I think this was identified as Novell specific? What final include file and sequence of includes caused the problem? > enum { > ELF_NGREG = 48, > ELF_NFPREG = 33, > ELF_NVRREG = 33 > }; > > ELF_XXX are already defined in a header file, so this breaks the build > beause the latest GCC sees 48 = 48. > > I see similar messages with TUI build. > > -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 ./tui/tui-command.c > cc1: warning: -Wuninitialized is not supported without -O > In file included from tui/tui-command.c:28: > tui/tui-data.h:40: error: parse error before "WINDOW" > tui/tui-data.h:40: warning: no semicolon at end of struct or union > tui/tui-data.h:52: error: parse error before '}' token > tui/tui-data.h:224: error: field `data_window' has incomplete type > tui/tui-data.h:278: error: field `generic' has incomplete type > In file included from tui/tui-command.c:29: You're going to need to provide a lot more detail. Andrew