LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2013, 04:11 PM   #1
n3kfh
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Exclamation Error from make process on CentOS 6.4 w/sysstat 5.0.6 package


I'm attempting to compile sysstat 5.0.6 on CentOS 6.4.
This is because we have non-root access to an embedded system that is running this old version of sysstat, and we want to review and analyze the data off system.

When I attempt to execute the make command, I receive the following error. Can someone help point me in the right direction?

[uname@hostname sysstat-5.0.6]$ cat /etc/redhat-release
CentOS release 6.4 (Final)

[uname@hostname sysstat-5.0.6]$ make
gcc -c -o common.o -Wall -Wstrict-prototypes -pipe -O2 -fno-strength-reduce common.c
common.c:38:22: error: asm/page.h: No such file or directory
common.c: In function ‘get_kb_shift’:
common.c:403: error: ‘PAGE_SIZE’ undeclared (first use in this function)
common.c:403: error: (Each undeclared identifier is reported only once
common.c:403: error: for each function it appears in.)
make: *** [common.o] Error 1
 
Old 08-03-2013, 03:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

-

Last edited by knudfl; 08-03-2013 at 03:38 AM.
 
Old 08-03-2013, 06:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
P.S. : Sysstat-5.0.6 compiles out of the box ... on e.g. CentOS 3.9 .

Example 32bits package sysstat50-5.0.6-1.el3.i386.rpm
https://docs.google.com/file/d/0B7S2...it?usp=sharing
 
Old 08-03-2013, 05:07 PM   #4
n3kfh
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
That's great news! Thanks so much for the tip.

Last edited by n3kfh; 08-03-2013 at 05:14 PM. Reason: Found the ISO I was looking for
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos 4.3 sysstat error salimshahzad Linux - Newbie 4 10-27-2010 12:52 AM
Linux Centos 5 : Error during Package Updater [ SOLVED ] LinuxNewbie81 Linux - Software 1 10-21-2010 02:07 AM
Help installing package sysstat-6.0.2 Sergei Z Linux - Newbie 3 06-03-2007 10:30 AM
LXer: How To Monitor A System With Sysstat On Centos 4.3 LXer Syndicated Linux News 0 08-20-2006 08:21 PM
SLES9 sysstat package fails when using interval and count parms dasny SUSE / openSUSE 0 06-21-2006 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration