This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Errors compiling a tap on kernel 4.8.0-0.bpo.2-amd64
- From: <webman at manfbraun dot de>
- To: <systemtap at sourceware dot org>
- Date: Fri, 20 Jan 2017 03:20:19 +0100
- Subject: Errors compiling a tap on kernel 4.8.0-0.bpo.2-amd64
- Authentication-results: sourceware.org; auth=none
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 ]
Thanks anyway,
Manfred