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: Compiling SystemTap with elfutils-0.165 fails


> Am 30.03.2016 um 21:44 schrieb Mark Wielaard <mjw@redhat.com>:
> 
> On Wed, 2016-03-30 at 21:39 +0200, Torsten Polle wrote:
>> make[2]: Entering directory `/home/polle/work/repository/systemtap-i686-linux-gnu'
>>  CXX      stap-main.o
>> In file included from include-elfutils/gelf.h:32:0,
>>                 from include-elfutils/elfutils/libdw.h:32,
>>                 from ../systemtap/elaborate.h:25,
>>                 from ../systemtap/main.cxx:14:
>> include-elfutils/libelf.h:280:8: error: âElf32_Chdrâ does not name a type
>> include-elfutils/libelf.h:281:8: error: âElf64_Chdrâ does not name a type
>> 
>> It seems that include-elfutils/libelf.h tries to pull in elf.h but fails to include the one from elfutils-0.165. Instead my copy in /usr/include is included, which stems from an older version of elfutils. I can fix the problem by copying work/repository/elfutils-0.165/libelf/elf.h to work/repository/systemtap-i686-linux-gnu/include-elfutils.
> 
> That probably works, but better to use this patch:
> https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=344ca0775da729e1bfdd61bb88ba4c64befece07
> 
> That will also be in elfutils 0.166 (probably to be released tomorrow).
> Then any old glibc version of elf.h is supported.
> 
> Cheers,
> 
> Mark

The patch solved my issue.

Thanks,
Torsten

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