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: Errors compiling a tap on kernel 4.8.0-0.bpo.2-amd64


On 01/19/2017 08:20 PM, webman@manfbraun.de wrote:
> Hello !
> 
> I had just to reinstall my server, where I need some TAPs.
> In this setup I moved on to kernel 4.8.0-0.bpo.2-amd64
> to get newer features.
> Now, my taps (any - so it looks) dont compile.
> I followed the instructions in the debian readme and
> installed the required packages without error.
> 
> Example:
> 
> root@grid:/ops/taps# stap watchport53.stp
> /tmp/stapmHsuXa/stap_e2a5f917741269f4e397d293840ffdda_26964_src.c:10:29:
> fatal error: runtime_defines.h: No such file or directory
>  #include "runtime_defines.h"
>                              ^
> compilation terminated.
> /usr/src/linux-headers-4.8.0-0.bpo.2-common/scripts/Makefile.build:294:
> recipe for target
> '/tmp/stapmHsuXa/stap_e2a5f917741269f4e397d293840ffdda_26964_src.o' failed
> make[3]: ***
> [/tmp/stapmHsuXa/stap_e2a5f917741269f4e397d293840ffdda_26964_src.o] Error 1
> /usr/src/linux-headers-4.8.0-0.bpo.2-common/Makefile:1490: recipe for target
> '_module_/tmp/stapmHsuXa' failed
> make[2]: *** [_module_/tmp/stapmHsuXa] Error 2
> Makefile:150: recipe for target 'sub-make' failed
> make[1]: *** [sub-make] Error 2
> Makefile:8: recipe for target 'all' failed
> make: *** [all] Error 2
> WARNING: kbuild exited with status: 2
> Pass 4: compilation failed.  [man error::pass4]
> Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
> 
> The source is:
> ===
> global the_daddr = ""   # override with -G the_daddr=127.0.0.1
> 
> global the_dport = 53    # override with -G the_dport=53
> 
> 
> probe netfilter.ip.local_out {
>     if ((the_dport == 0 || the_dport == dport) &&
>         (the_daddr == "" || the_daddr == daddr))
>             printf("%s[%d] sent packet to %s:%d\n", execname(), tid(),
> daddr, dport)
> }
> ===
> 
> Any tips would be great! Just to be sure to have it mentioned:
> I am using ZFS on root. I verified the permission and settings
> with a computer, where this works and this looks ok.
> [Linux grid 4.8.0-0.bpo.2-amd64 #1 SMP Debian 4.8.15-2~bpo8+2 (2017-01-17)
> x86_64 GNU/Linux ]

> I forgot the version of systemtap, I am using:
>
> "3.0-6~bpo8+1" (on debian 8.7, kernel 4.8.0-0.bpo.2-amd64).
>

It looks like you've got 2 problems here. Not being able to find
runtime_defines.h looks like your install isn't complete (or you are
missing a subpackage). Your next problem is that kernel 4.8 came out
after systemtap 3.0 came out. So, you may need to use systemtap HEAD and
build systemtap from source.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


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