From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9452 invoked by alias); 26 Mar 2012 02:52:39 -0000 Received: (qmail 9444 invoked by uid 22791); 26 Mar 2012 02:52:38 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Mar 2012 02:52:26 +0000 Received: by pbcup15 with SMTP id up15so5829844pbc.0 for ; Sun, 25 Mar 2012 19:52:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.229.169 with SMTP id sr9mr48725176pbc.164.1332730345300; Sun, 25 Mar 2012 19:52:25 -0700 (PDT) Received: by 10.68.63.226 with HTTP; Sun, 25 Mar 2012 19:52:25 -0700 (PDT) In-Reply-To: <20120325122119.GA3636@host2.jankratochvil.net> References: <20120325122119.GA3636@host2.jankratochvil.net> Date: Mon, 26 Mar 2012 02:52:00 -0000 Message-ID: Subject: Re: [Build Error] return type defaults to 'int' From: Zhihua Che To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00072.txt.bz2 =E5=9C=A8 2012=E5=B9=B43=E6=9C=8825=E6=97=A5 =E4=B8=8B=E5=8D=888:21=EF=BC= =8CJan Kratochvil =E5=86=99=E9=81=93=EF=BC=9A > On Sun, 25 Mar 2012 14:16:37 +0200, Zhihua Che wrote: >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 I'm building gdb using git repository and ma= ybe find a bug. >> After configure, several .c files are generated under /gdb, >> such as c-exp.c cp-name-parser.c, but they are all not complying with >> c grammar. Precisely, the functions in them miss a return value, like >> the below >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 main() { return 0;} > > Install flex and bison and then delete this gdb source tree, unpack it and > rebuild again. =C2=A0Best rebuild your distro gdb first which will instal= l all the > pre-requisite build tools. > > I agree GDB should behave better. > > > Regards, > Jan After installing bison=EF=BC=8CI guess I made it and it worked, maybe I mis= sed something during configure.