This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Compiling SystemTap with elfutils-0.165 fails
- From: Torsten Polle <Torsten dot Polle at gmx dot de>
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: systemtap at sourceware dot org
- Date: Wed, 30 Mar 2016 22:01:11 +0200
- Subject: Re: Compiling SystemTap with elfutils-0.165 fails
- Authentication-results: sourceware.org; auth=none
- References: <A2EF1846-E71A-4EEA-941D-8BD20FF05196 at gmx dot de> <1459367071 dot 8147 dot 46 dot camel at redhat dot com>
> 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