Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!ncar!gatech!bloom-beacon!bu-cs!mirror!otto!jimi!stevie!ray From: ray@stevie.cs.unlv.edu (Ray Tripamer) Newsgroups: comp.windows.x Subject: X11R3 Load widget Problem on Sun 386i Message-ID: <1022@jimi.cs.unlv.edu> Date: 5 Jan 89 22:54:31 GMT Sender: news@jimi.cs.unlv.edu Reply-To: ray@jimi.cs.unlv.edu (Ray Tripamer) Organization: University of Nevada, Las Vegas Lines: 20 [] 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