On ia64 #include "task_finder.c" need some function from regs-ia64.c

William Cohen wcohen@redhat.com
Thu Apr 2 21:26:00 GMT 2009


When compiling recent checkout of systemtap on ia64 the inclusion of
"task_finder.c" ended up needed some code in reg-ia64.h. Did some permutations
of includes to make sure that regs.c and regs-ia64.c are included before
task_finder.c. That patch has verified to work on ia64 and x86_64. Below is the
error message before the added patch.

-Will

$ ../install/bin/stap -vv
/home/wcohen/systemtap_write/systemtap/testsuite/systemtap.base/add.stp
...
Running make -C "/lib/modules/2.6.18-128.1.6.el5/build" M="/tmp/stapXrytey"
modules >/dev/null
In file included from
/home/wcohen/systemtap_write/install/share/systemtap/runtime/task_finder.c:43,
                 from
/home/wcohen/systemtap_write/install/share/systemtap/runtime/runtime.h:90,
                 from /tmp/stapXrytey/stap_5484.c:45:
/home/wcohen/systemtap_write/install/share/systemtap/runtime/syscall.h: In
function ‘____stp_user_syscall_arg’:
/home/wcohen/systemtap_write/install/share/systemtap/runtime/syscall.h:275:
error: implicit declaration of function ‘__ia64_fetch_register’
cc1: warnings being treated as errors
/home/wcohen/systemtap_write/install/share/systemtap/runtime/syscall.h:275:
warning: return makes pointer from integer without a cast
In file included from /tmp/stapXrytey/stap_5484.c:48:
/home/wcohen/systemtap_write/install/share/systemtap/runtime/regs-ia64.c: At top
level:
/home/wcohen/systemtap_write/install/share/systemtap/runtime/regs-ia64.c:75:
error: conflicting types for ‘__ia64_fetch_register’
/home/wcohen/systemtap_write/install/share/systemtap/runtime/syscall.h:275:
error: previous implicit declaration of ‘__ia64_fetch_register’ was here

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: moveinclude.diff
URL: <http://sourceware.org/pipermail/systemtap/attachments/20090402/e0d02bef/attachment.ksh>


More information about the Systemtap mailing list