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: SystemTap + Android | Compiling Script | ERROR


> No, you need the '-r BUILD_TREE' option so that systemtap will compile a
> module for your target kernel, not for your running kernel.
>

Well is there a work around then, because I can see this error getting
repeated for a couple of definitions.

/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/alloc.c:345:14:
error: static declaration of 'vzalloc' follows non-static declaration
 static void *vzalloc(unsigned long size)
              ^
In file included from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/runtime.h:23:0,
                 from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapEaz4QM/monitor_fopen_src.c:26:
include/linux/vmalloc.h:68:14: note: previous declaration of 'vzalloc' was here
 extern void *vzalloc(unsigned long size);
              ^
In file included from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/runtime.h:212:0,
                 from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapEaz4QM/monitor_fopen_src.c:26:
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/alloc.c:380:14:
error: static declaration of 'vmalloc_node' follows non-static
declaration
 static void *vmalloc_node(unsigned long size, int node __attribute__((unused)))
              ^
In file included from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/runtime.h:23:0,
                 from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapEaz4QM/monitor_fopen_src.c:26:
include/linux/vmalloc.h:70:14: note: previous declaration of
'vmalloc_node' was here
 extern void *vmalloc_node(unsigned long size, int node);
              ^
In file included from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/runtime.h:212:0,
                 from
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapEaz4QM/monitor_fopen_src.c:26:
/root/sukritk/systemtap-android/installed//share/systemtap/runtime/linux/alloc.c:387:14:
error: static declaration of 'vzalloc_node' follows non-static
declaration

Manually going into the alloc.c and commenting these definitions
doesn’t feel like the best solution?

-Ayush


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