Re: [PATCH 1/2] perf: fix build error

From: Arnaldo Carvalho de Melo
Date: Mon Jul 23 2012 - 14:18:51 EST


Em Mon, Jul 23, 2012 at 09:16:08PM +0300, Kirill A. Shutemov escreveu:
> On Mon, Jul 23, 2012 at 08:02:44PM +0200, Arnaldo Carvalho de Melo wrote:
> > Em Mon, Jul 23, 2012 at 06:00:44PM +0300, Kirill A. Shutemov escreveu:
> > > util/parse-events.c:29:5: error: redundant redeclaration of âparse_events_parseâ [-Werror=redundant-decls]
> > > util/parse-events-bison.h:99:5: note: previous declaration of âparse_events_parseâ was here
> > > cc1: all warnings being treated as errors

> > Causes the build to fail for me:

> > cc1: warnings being treated as errors
> > util/parse-events.c: In function âparse_events__scannerâ:
> > util/parse-events.c:701: error: implicit declaration of function âparse_events_parseâ
> > util/parse-events.c:701: error: nested extern declaration of âparse_events_parseâ
> > make: *** [/home/acme/git/build/perf/util/parse-events.o] Error 1
> > make: *** Waiting for unfinished jobs....
> > make: Leaving directory `/home/git/linux/tools/perf'
>
> What bison version do you have?

[acme@sandy linux]$ rpm -q bison
bison-2.4.1-5.el6.x86_64

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/