'PAGE_KERNEL' undeclared error and fix

Tong Li tong.n.li@intel.com
Mon Dec 4 20:15:00 GMT 2006


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



More information about the Systemtap mailing list