Compiling SystemTap with elfutils-0.165 fails

Mark Wielaard mjw@redhat.com
Wed Mar 30 19:44:00 GMT 2016


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



More information about the Systemtap mailing list