This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap failing to compile on Ubuntu Hardy
- From: "Anup C Shan" <anupcshan at gmail dot com>
- To: "Mark Wielaard" <mwielaard at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 9 May 2008 17:18:03 +0530
- Subject: Re: systemtap failing to compile on Ubuntu Hardy
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gS1TBn1hkySCYYQQCczTywIhCz4CN9qLIde7Rp/xRqs=; b=Yfhd2vRgQAQNFgvg4lFI9rMXLDClCphFvZ57pKGoZw+kqzPreuWWbvJ5TM2nHPswd/zVrbkLfty4gYyNx2pz5v5jQj0li85W3tiq4vuQRNEQijUPLC/6IRRPyE6crL9DL+7P/IUwXjo6xpe2FZh1lNBw5odILQjZBWN3v0Vuq+k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WesUMQ5KjHNPb8vw/TQXXIEspU7dkrnbXKJL5vVxhSueEyUcelOyeRUb2TDkiRMVR/GKxcUc+WJsJZOpQmzI/GDOrIpBGPFgJQSf5KHz6gwYFJRb4ZegFlZvZH2bsdZtA3GRcHXs0YzhftEykeffhtJzbXH3PdRKnGFziNcq/Es=
- References: <ab332f4e0805090128i4a383cala2472404766d2314@mail.gmail.com> <1210331439.3113.2.camel@dijkstra.wildebeest.org> <ab332f4e0805090418l1fb52f67j5160cfddabe41dae@mail.gmail.com> <1210332922.3113.5.camel@dijkstra.wildebeest.org>
Hi Mark,
On Fri, May 9, 2008 at 5:05 PM, Mark Wielaard <mwielaard@redhat.com> wrote:
> Hi Anup,
>
> On Fri, 2008-05-09 at 16:48 +0530, Anup C Shan wrote:
>> On Fri, May 9, 2008 at 4:40 PM, Mark Wielaard <mwielaard@redhat.com> wrote:
>> > Hi Anup,
>> >
>> > On Fri, 2008-05-09 at 13:58 +0530, Anup C Shan wrote:
>> >> cc1: warnings being treated as errors
>> >> /home/anup/systemtap/elfutils-0.131/src/elflint.c: In function âcheck_dynamicâ:
>> >> /home/anup/systemtap/elfutils-0.131/src/elflint.c:1511: warning:
>> >> initialized field overwritten
>> >> /home/anup/systemtap/elfutils-0.131/src/elflint.c:1511: warning: (near
>> >> initialization for âdependencies[2]â)
>> >> make[3]: *** [elflint.o] Error 1
>> >> [...]
>> >> Any ideas on how to fix this?
>> >
>> > You might want to try elfutils-0.134 from which contains this patch:
>> >
>> > 2008-01-03 Roland McGrath <roland@redhat.com>
>> >
>> > * ld.h (linked_from_dso_p): Use __attribute__ ((__gnu_inline__)).
>> > * elflint.c (check_dynamic): Remove duplicate initializer.
>> >
>> > You can get it from: https://fedorahosted.org/releases/e/l/elfutils/
>>
>> Thanks..
>> But its still giving the same error again with elfutils-0.134 :
>
> Those don't look like the same errors. These are warnings about the use
> of C99 inlines when not using that, or when having -fgnu89-inline
> defined. How did you configure? Did you set any CFLAGS?
>
> Cheers,
>
> Mark
>
>> In file included from /home/anup/systemtap/elfutils-0.134/libebl/libebl.h:54,
>> from
>> /home/anup/systemtap/elfutils-0.134/libebl/../libasm/libasm.h:32,
>> from /home/anup/systemtap/elfutils-0.134/libebl/libeblP.h:54,
>> from
>> /home/anup/systemtap/elfutils-0.134/libebl/eblopenbackend.c:63:
>> /home/anup/systemtap/elfutils-0.134/libdw/libdw.h:649: warning: C99
>> inline functions are not supported; using GNU89
>> /home/anup/systemtap/elfutils-0.134/libdw/libdw.h:649: warning: to
>> disable this warning use -fgnu89-inline or the gnu_inline function
>> attribute
>> /home/anup/systemtap/elfutils-0.134/libdw/libdw.h:656: warning: C99
>> inline functions are not supported; using GNU89
>
>
Had not compiled with -fgnu89-inline. But with CFLAGS=-fgnu89-inline,
it compiled properly.. Thanks a lot.