This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
systemtap gives compilation error
- From: "ashutosh.mehra" <mehra dot ashutosh at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 16 Jan 2008 01:43:26 -0800 (PST)
- Subject: systemtap gives compilation error
Hi,
I have been trying to execute sample scripts that come with systemtap
source.
But on executing them, i get compilation error:
> stap top.stp -v -k
Result of above command is:
Pass 1: parsed user script and 53 library script(s) in 330usr/10sys/350real
ms.
Pass 2: analyzed script: 2 probe(s), 2 function(s), 0 embed(s), 1 global(s)
in 390usr/320sys/715real ms.
Pass 3: translated to C into
"/tmp/stapxti3xu/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c" in
10usr/0sys/1real ms.
Pass 4: compiled C into "stap_45c157819bc80aebd1ecf8cfc85278af_1376.ko" in
590usr/240sys/845real ms.
Pass 4: compilation failed. Try again with more '-v' (verbose) options.
I even tried to compile the module and insert it manually by issuing
following command:
>make -C /usr/src/linux2.6.23.9 M=`pwd` modules
but it generates following error:
make: Entering directory `/usr/src/linux-2.6.23.9'
CC [M] /tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.o
In file included from
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c:36:
/usr/share/systemtap/runtime/stack.c: In function â_stp_ustack_sprintâ:
/usr/share/systemtap/runtime/stack.c:124: error: âstruct task_structâ has no
member named âthread_infoâ
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c: In function
âsystemtap_module_initâ:
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c:781: error:
âHRTIMER_RELâ undeclared (first use in this function)
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c:781: error:
(Each undeclared identifier is reported only once
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c:781: error: for
each function it appears in.)
cc1: warnings being treated as errors
/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.c:782: warning:
assignment from incompatible pointer type
make[1]: *** [/tmp/stapKgw4zf/stap_45c157819bc80aebd1ecf8cfc85278af_1376.o]
Error 1
make: *** [_module_/tmp/stapKgw4zf] Error 2
make: Leaving directory `/usr/src/linux-2.6.23.9'
Can someone help me out?
Thanx in advance
--
View this message in context: http://www.nabble.com/systemtap-gives-compilation-error-tp14875981p14875981.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.