newbe compiling kde-lite problem

Joerg Sonnenberger joerg at britannica.bec.de
Sat Jan 8 10:51:21 PST 2005


On Fri, Jan 07, 2005 at 01:05:21PM +0100, Tomas wrote:
> CPU.c:47: `CPUSTATES' undeclared here (not in a function)
[snip]
> CPU.c:85: `CP_USER' undeclared (first use in this function)
> CPU.c: In function `printCPUNice':
> CPU.c:97: `CP_NICE' undeclared (first use in this function)
> CPU.c: In function `printCPUSys':
> CPU.c:109: `CP_SYS' undeclared (first use in this function)
> CPU.c: In function `printCPUIdle':
> CPU.c:121: `CP_IDLE' undeclared (first use in this function)

If you want to fix this, change the port to include kinfo.h instead
of sys/dkstat.h, link against libkinfo and get the data via
kinfo_get_sched_cputime. The structure kinfo_cputime has a field
for any of this stats, have a look at src/usr.bin/systat/iostat.c rev 1.4
for how to use this.

Of course, if you write patches, submit them back for the next KDE version
:)

Joerg





More information about the Bugs mailing list