Comment 11 for bug 1237390

Revision history for this message
katsu (katsukatsu-deactivatedaccount) wrote :

verify condition: ubuntu 12.04.3(kernel-3.8) in virtualbox.

-------------------
[Test Case]
# echo 'probe timer.s(1) {exit();}' | stap - ; echo $?

* Actual Result:
In file included from /usr/share/systemtap/runtime/transport/transport.c:53:0,
                 from /usr/share/systemtap/runtime/print.c:18,
                 from /usr/share/systemtap/runtime/runtime.h:128,
                 from /tmp/stapTSxLrZ/stap_34d5fb5c9ba75ea41176182eabf9f52f_642.c:59:
/usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: initialization from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: (near initialization for '__stp_relay_callbacks.create_buf_file') [-Werror]
In file included from /usr/share/systemtap/runtime/print.c:18:0,
                 from /usr/share/systemtap/runtime/runtime.h:128,
                 from /tmp/stapTSxLrZ/stap_34d5fb5c9ba75ea41176182eabf9f52f_642.c:59:
/usr/share/systemtap/runtime/transport/transport.c: In function '_stp_get_root_dir':
/usr/share/systemtap/runtime/transport/transport.c:386:8: error: 'struct hlist_head' has no member named 'next'
In file included from /tmp/stapTSxLrZ/stap_34d5fb5c9ba75ea41176182eabf9f52f_642.c:61:0:
/usr/share/systemtap/runtime/stat.c: In function '_stp_stat_get':
/usr/share/systemtap/runtime/stat.c:213:2: error: 'cpu_possible_map' undeclared (first use in this function)
/usr/share/systemtap/runtime/stat.c:213:2: note: each undeclared identifier is reported only once for each function it appears in
/usr/share/systemtap/runtime/stat.c: In function '_stp_stat_clear':
/usr/share/systemtap/runtime/stat.c:248:2: error: 'cpu_possible_map' undeclared (first use in this function)
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapTSxLrZ/stap_34d5fb5c9ba75ea41176182eabf9f52f_642.o] Error 1
make: *** [_module_/tmp/stapTSxLrZ] Error 2
Warning: make exited with status: 2
Pass 4: compilation failed. Try again with another '--vp 0001' option.
1
#
-------------------

enable precise-proposed

$ sudo apt-get install -t precise-proposed systemtap

upgrade systemtap-common 1.6-1ubuntu1 1.6-1ubuntu1.1
upgrade systemtap 1.6-1ubuntu1 1.6-1ubuntu1.1
upgrade systemtap-runtime 1.6-1ubuntu1 1.6-1ubuntu1.1

-------------------
[verification case]

$ uname -r
3.8.0-35-generic
$ sudo -i
# echo 'probe timer.s(1) {exit();}' | stap - ; echo $?

* Actual Result:
0
#
(script compiles and starts running. exits with 0.)
-------------------

good works & thank you.