This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
'PAGE_KERNEL' undeclared error and fix
- From: Tong Li <tong dot n dot li at intel dot com>
- To: systemtap at sources dot redhat dot com
- Date: Mon, 4 Dec 2006 10:58:57 -0800 (PST)
- Subject: 'PAGE_KERNEL' undeclared error and fix
Hi all,
I'm using the latest CVS source, but a simple stap module fails to compile
(on both 2.6.16 and 2.6.19 x86_64).
In file included from
/usr/local/share/systemtap/runtime/transport/transport.c:20,
from /usr/local/share/systemtap/runtime/io.c:14,
from /usr/local/share/systemtap/runtime/print.c:15,
from /usr/local/share/systemtap/runtime/runtime.h:75,
from
/tmp/stapSfnYmS/stap_0e14f82b0d506cfdc9cf0c8bba663562_186.c:34:
/usr/local/share/systemtap/runtime/transport/symbols.c: In function
'_stp_alloc_module':
/usr/local/share/systemtap/runtime/transport/symbols.c:73: error:
'PAGE_KERNEL' undeclared (first use in this function)
/usr/local/share/systemtap/runtime/transport/symbols.c:73: error: (Each
undeclared identifier is reported only once
/usr/local/share/systemtap/runtime/transport/symbols.c:73: error: for each
function it appears in.)
make[1]: *** [/tmp/stapSfnYmS/stap_0e14f82b0d506cfdc9cf0c8bba663562_186.o]
Error 1
make: *** [_module_/tmp/stapSfnYmS] Error 2
Adding '#include <asm/pgtable.h>' in runtime/alloc.c seems to fix the
problem.
tong