public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* test errors
@ 2013-08-25  5:27 Hatt Tom
  2013-08-26 10:56 ` Frank Ch. Eigler
  0 siblings, 1 reply; 5+ messages in thread
From: Hatt Tom @ 2013-08-25  5:27 UTC (permalink / raw)
  To: systemtap

hi:
I have installed systemtap on ubuntu , then I run example script to
test it ,it report errors as below :

Pass 1: parsed user script and 76 library script(s) using
22900virt/13628res/2296shr kb, in 110usr/40sys/457real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0
global(s) using 23164virt/14360res/2576shr kb, in 0usr/10sys/24real
ms.
Pass 3: translated to C into
"/tmp/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.c" using
23164virt/14444res/2652shr kb, in 0usr/0sys/0real ms.
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/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.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/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.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/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.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/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.o]
Error 1

How do I fix this problem ?
-- 
Best Regards!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test errors
  2013-08-25  5:27 test errors Hatt Tom
@ 2013-08-26 10:56 ` Frank Ch. Eigler
  2013-08-27  2:39   ` Hatt Tom
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Ch. Eigler @ 2013-08-26 10:56 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 659 bytes --]


net.study.sea wrote:

> I have installed systemtap on ubuntu, then I run example script to
> test it ,it report errors as below :

(You did not identify the stap -V release.)

> [...]
> /tmp/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.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]
> [...]

This and the other errors (due to kernel changes), you listed are
corrected in the recent 2.3 release.

- FChE

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test errors
  2013-08-26 10:56 ` Frank Ch. Eigler
@ 2013-08-27  2:39   ` Hatt Tom
  2013-08-27  2:42     ` Frank Ch. Eigler
  0 siblings, 1 reply; 5+ messages in thread
From: Hatt Tom @ 2013-08-27  2:39 UTC (permalink / raw)
  To: Frank Ch. Eigler, systemtap

thank you for reply!

chould I take a look at the pathes for those error?





2013/8/26 Frank Ch. Eigler <fche@redhat.com>:
>
> net.study.sea wrote:
>
>> I have installed systemtap on ubuntu, then I run example script to
>> test it ,it report errors as below :
>
> (You did not identify the stap -V release.)
>
>> [...]
>> /tmp/stapM9t340/stap_f1bd95e175cd674df020573f666998a1_739.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]
>> [...]
>
> This and the other errors (due to kernel changes), you listed are
> corrected in the recent 2.3 release.
>
> - FChE



-- 
Best Regards!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test errors
  2013-08-27  2:39   ` Hatt Tom
@ 2013-08-27  2:42     ` Frank Ch. Eigler
  2013-08-27 11:44       ` Hatt Tom
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Ch. Eigler @ 2013-08-27  2:42 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

Hi -

> chould I take a look at the pathes for those error?

See the git history.
For example, the create_buf_file incompatibility was fixed in 

commit 857163157b80fbd1d813742ef0c9c111c146a573
Author: Alexander Y. Fomichev <git.user@gmail.com>
Date:   Fri May 31 14:46:56 2013 -0500


- FChE

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test errors
  2013-08-27  2:42     ` Frank Ch. Eigler
@ 2013-08-27 11:44       ` Hatt Tom
  0 siblings, 0 replies; 5+ messages in thread
From: Hatt Tom @ 2013-08-27 11:44 UTC (permalink / raw)
  To: Frank Ch. Eigler, systemtap

thanks a lot!
BTW ,How do I with systemtap get to know the count of opened socket by
on process  ?

2013/8/27 Frank Ch. Eigler <fche@redhat.com>:
> Hi -
>
>> chould I take a look at the pathes for those error?
>
> See the git history.
> For example, the create_buf_file incompatibility was fixed in
>
> commit 857163157b80fbd1d813742ef0c9c111c146a573
> Author: Alexander Y. Fomichev <git.user@gmail.com>
> Date:   Fri May 31 14:46:56 2013 -0500
>
>
> - FChE



-- 
Best Regards!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-27 11:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-25  5:27 test errors Hatt Tom
2013-08-26 10:56 ` Frank Ch. Eigler
2013-08-27  2:39   ` Hatt Tom
2013-08-27  2:42     ` Frank Ch. Eigler
2013-08-27 11:44       ` Hatt Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).