SystemTap 3.0 doesn't work on Ubuntu 14.04.4 LTS

Mark Wielaard mjw@redhat.com
Wed Mar 30 08:06:00 GMT 2016


On Wed, 2016-03-30 at 00:53 +0300, Aleksander Alekseev wrote:
> Hello
> 
> Thanks for your replies!
> 
> > What issues do you have?
> > It is certainly supposed to build against elfutils 0.165.
> 
> `make` fails like this:
> 
> http://pastebin.com/raw/afHGbFpE
>
> In file included from include-elfutils/gelf.h:32:0,
>                  from include-elfutils/elfutils/libdw.h:32,
>                  from session.h:29,
>                  from tapset-dynprobe.cxx:12:
> include-elfutils/libelf.h:280:8: error: ‘Elf32_Chdr’ does not name a type
>  extern Elf32_Chdr *elf32_getchdr (Elf_Scn *__scn);
>         ^

That is because your glibc is old and elf.h doesn't contain the new
definitions. That has been fixed by:
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=344ca0775da729e1bfdd61bb88ba4c64befece07
Which should also be included in the debian/ubuntu package sources.

It should also be in 0.166 to be released later this week.

Cheers,

Mark



More information about the Systemtap mailing list