home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / admin / 5501 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.3 KB

  1. Xref: sparky comp.sys.sun.admin:5501 comp.sys.sun.misc:3657
  2. Newsgroups: comp.sys.sun.admin,comp.sys.sun.misc
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!quanta!coil
  4. From: coil@quanta.eng.ohio-state.edu (Stacy D. Coil)
  5. Subject: Help: Top won't work with SunOS 4.1.2
  6. Message-ID: <1992Aug13.150847.24983@ee.eng.ohio-state.edu>
  7. Sender: news@ee.eng.ohio-state.edu
  8. Organization: The Ohio State University Dept of Electrical Engineering
  9. Date: Thu, 13 Aug 1992 15:08:47 GMT
  10. Lines: 60
  11.  
  12. Has anyone had trouble getting top version 3.0 to run on a Sun4c running
  13. SunOS 4.1.2?
  14.  
  15. I down loaded the the package from export.lcs.mit.edu and compiled it
  16. on a sun4c running 4.1.2.
  17.  
  18. I set the executables uid to root and gid to kmem.  Then I set the
  19. set group on execution bit.
  20.  
  21.     -rwxr-sr-x  1 root        73728 Aug 12 11:34 top
  22.  
  23. When I run top from a client that is running 4.1.2, I get the following:
  24.  
  25.     [106] ./top
  26.     top: cannot open /dev/kmem: Permission denied
  27.     kvm_open: Permission denied
  28.  
  29. When I do a ls -lg on /dev/kmem of the client, I get 
  30.  
  31.     crw-r-----  1 root     kmem       3,   1 Oct 31  1991 /dev/kmem
  32.  
  33.  
  34. However, top does run on the server.  The long listing of /dev/kmem is
  35.  
  36.     crw-r-----  1 root     kmem       3,   1 Feb 11  1992 /dev/kmem
  37.  
  38. I thought that all that one has to do to allow a program to read
  39. /dev/kmem is to set the group of the program to kmem, then set the
  40. 'set gid bit on execution'.  Is there something with SunOS that I must
  41. say that this program is worthy of reading kmem?
  42.  
  43. Also, if I try running top (compiled on a machine running SunOS 4.1.2)
  44. from a server running SunOS 4.1.1, I get the following:
  45.  
  46.     [103] top 
  47.     ld.so: warning: /usr/lib/libc.so.1.6 has older revision than expected 7
  48.     Segmentation fault
  49.  
  50. And if I try to run top (compiled on a machine running SunOS 4.1.1)
  51. from a server running SunOS 4.1.2, I  get 
  52.  
  53.     [107] top
  54.     Segmentation fault
  55.  
  56. I take it that some of the typedefs in kvm.h has been changed.  
  57.  
  58. If anyone has any knowledge of this please enlighten me.
  59.  
  60.  
  61. --    Stacy
  62.  
  63. -------------------------------------------------------------------------------
  64. Stacy D. Coil                     The Ohio State University
  65. System Programmer        Electrical Engineering Computer Facilities
  66. coil@ee.eng.ohio-state.edu              Columbus, Ohio
  67. coil@cis.ohio-state.edu                  (614) 292-1416
  68. -------------------------------------------------------------------------------
  69.  
  70.  
  71.  
  72.