This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: systemtap failing to compile on Ubuntu Hardy


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]