From: Masami Hiramatsu <mhiramat@redhat.com>
To: Borislav Petkov <bp@amd64.org>
Cc: Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] perf, probe-finder: Build fix on Debian
Date: Mon, 29 Mar 2010 11:50:56 -0400 [thread overview]
Message-ID: <4BB0CC60.8010604@redhat.com> (raw)
In-Reply-To: <20100329154132.GA16223@aftab>
Borislav Petkov wrote:
> Building chokes with
>
> In file included from /usr/include/gelf.h:53,
> from /usr/include/elfutils/libdw.h:53,
> from util/probe-finder.h:61,
> from util/probe-finder.c:39:
> /usr/include/libelf.h:98: error: expected specifier-qualifier-list before 'off64_t'
> /usr/include/libelf.h:160: error: expected specifier-qualifier-list before 'off64_t'
> /usr/include/libelf.h:201: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_update'
> /usr/include/libelf.h:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_getbase'
> /usr/include/libelf.h:305: error: expected declaration specifiers or '...' before 'off64_t'
> /usr/include/libelf.h:317: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_getaroff'
> make: *** [util/probe-finder.o] Error 1
> make: *** Waiting for unfinished jobs....
> rm .perf.dev.null
>
> which is due to the fact that </usr/include/libelf.h> isn't seeing
> off64_t from <sys/types.h>
>
> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Thank you for fixing it :)
However, all library checking routine in Makefile use
"-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64", so I think
it is better to add these flags to ALL_CFLAGS.
Thank you,
> ---
>
> This happens on current -git: v2.6.34-rc2-288-gb72c409
>
> tools/perf/Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> index 8a8f52d..19c34a5 100644
> --- a/tools/perf/Makefile
> +++ b/tools/perf/Makefile
> @@ -508,7 +508,7 @@ ifneq ($(shell sh -c "(echo '\#include <dwarf.h>'; echo '\#include <libdw.h>'; e
> msg := $(warning No libdw.h found or old libdw.h found, disables dwarf support. Please install elfutils-devel/elfutils-dev);
> BASIC_CFLAGS += -DNO_DWARF_SUPPORT
> else
> - BASIC_CFLAGS += -I/usr/include/elfutils
> + BASIC_CFLAGS += -I/usr/include/elfutils -D_LARGEFILE64_SOURCE
> EXTLIBS += -lelf -ldw
> LIB_OBJS += util/probe-finder.o
> endif
--
Masami Hiramatsu
e-mail: mhiramat@redhat.com
next prev parent reply other threads:[~2010-03-29 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 15:41 [PATCH] perf, probe-finder: Build fix on Debian Borislav Petkov
2010-03-29 15:50 ` Masami Hiramatsu [this message]
2010-03-29 16:47 ` [PATCH -v2] " Borislav Petkov
2010-03-29 16:58 ` Masami Hiramatsu
2010-04-03 9:28 ` [tip:perf/urgent] " tip-bot for Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB0CC60.8010604@redhat.com \
--to=mhiramat@redhat.com \
--cc=bp@amd64.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.