[comp.windows.x] X11R3 Load widget Problem on Sun 386i

ray@stevie.cs.unlv.edu (Ray Tripamer) (01/06/89)

[]
I discovered a problem with the Load widget when I was trying to run
xload on my 386i (SunOS 4.0.1).  It didn't work, complaining
"can't get name list from /vmunix".

First, the load average variable in the kernel is "avenrun" as
opposed to "_avenrun" which is what ended up getting compiled from
the X11R3 distribution.

Next, nlist(3) on the 386i returns 0 in the n_value field of the nlist
struct instead of the n_type field when the symbol is not found.  This
caused the if statement to generate the above error message.

So, I simply changed the if statement, and adjusted the #define for
the "#define KERNEL_LOAD_VAR" to remove the _ from the string, recompiled
libXaw and xload, and it works fine now.

--
Ray Tripamer
ray@jimi.cs.unlv.edu