Re: [PATCH] tools/perf/Makefile: drop _FORTIFY_SOURCE right beforeredefinition

From: Sergei Trofimovich
Date: Sat Feb 23 2013 - 06:35:32 EST


On Fri, 22 Feb 2013 12:08:14 -0300
Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx> wrote:

> Em Fri, Feb 22, 2013 at 01:17:54PM +0300, Sergei Trofimovich escreveu:
> > From: Sergei Trofimovich <slyfox@xxxxxxxxxx>
> >
> > Gentoo's toolchain sets _FORTIFY_SOURCE by default
> > which leads to very obscure error:
> >
> > perf # make clean && make
> > Makefile:455: No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev
> > Makefile:470: *** No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static. Stop
> >
> > Patch explicitely undefines _FORTIFY_SOURCE. Thanks!
>
> There was a fix merged recently related to this define, can you please
> check?
>
> git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
>
> branch
>
> perf/core
>
> This patch:
>
> http://git.kernel.org/?p=linux/kernel/git/acme/linux.git;a=commitdiff;h=1807606ac70da5cda870362c13e71d60e94f9c13
>
> - Arnaldo

Yeah, works fine as well. Thank you!

--

Sergei

Attachment: signature.asc
Description: PGP signature