Subject: Re: proc table mismatch?
To: G C Wing <mason@werple.apana.org.au>
From: Michael L. VanLoon -- HeadCandy.com <michaelv@HeadCandy.com>
List: current-users
Date: 09/23/1994 16:02:07
>michaelv@HeadCandy.com (Michael L. VanLoon -- HeadCandy.com) writes:
>:>when I tried to do a "ps" I got an error message along the lines of:
>:>proc table mismatch([number] 640 blocks)
>:You need to rebuild your libkvm and/or your ps binary.  (Rebuilding
>:both being the best alternative, rebuilding libkvm first.)

>I had this. You shouldn't have to rebuild ps, w, etc. only libkvm.
>This happened to me when I did "make" (in libkvm dir), after getting updated
>sources. Try "make clean", then "make". One or more of the older objects
>was stuffing mine (and probably yours) up.
>-- 
>Mason [G.C.W]  mason@werple.apana.org.au     Hurt...Agony...Pain...LOVE-IT

This isn't enough, because ps isn't dynamically linked.  So, just
rebuilding libkvm will not get the new library stuff into ps (but it
will get it into w, since w is dynamically linked).  So, you have to
rebuild ps after rebuilding libkvm.

Also, don't forget to do a ``make depend'' after getting new sources.
In fact, in most cases, a ``make depend all'' should be enough -- a
``make clean'' shouldn't be necessary as long as you do a make depend.
Of course, for the most sure-fire results, doing a ``make clean depend
all'' will guarantee you the best of all results, at a cost in cpu
cycles.

				--Michael

-----------------------------------------------------------------------------
   Michael L. VanLoon     michaelv@HeadCandy.com     michaelv@iastate.edu
  Free your mind and your machine -- NetBSD free un*x for PC/Mac/Amiga/etc.
     Working NetBSD ports: 386+PC, Mac, Amiga, HP300, Sun3, Sun4c, PC532
               In progress: DEC pmax (MIPS R2k/3k), VAX, Sun4m
-----------------------------------------------------------------------------