Welcome to LQ.
Quote:
common.c:38:22: error: asm/page.h: No such file or directory
|
64bits CentOS6 example : $ locate asm/page.h
.. The reply is : /usr/src/kernels/2.6.32-358.14.1.el6.x86_64/arch/x86/include/asm/page.h
.. provided by the package 'kernel-devel'.
32bits CentOS6 example : /usr/src/kernels/2.6.32-279.9.1.el6.i686/arch/x86/include/asm/page.h
But I don't think you can compile a sysstat from year 2004 on CentOS 6.x.
The only way that asm/page.h could be included in an easy way was :
1) cd sysstat-5.0.6/ && ln -s /usr/src/kernels/2.6.32-358.14.1.el6.x86_64/arch/x86/include/asm
2) Edit common.c, line 38 to : #include "asm/page.h"
... ( No luck with adding 'asm/page.h' to CFLAGS or INCLUDES , etc.)
When 'asm/page.h' is accepted, you will just get some other errors.
Compilers used : The default gcc (-4.4.7), and gcc34, gcc32.
Suggest : Use a later sysstat, or compile version 5.0.6 on an old OS.
-