Subject: Re: top won't run with UVM
To: Thorsten Frueauf <s_frueau@ira.uka.de>
From: Brad Salai <bsalai@servtech.com>
List: current-users
Date: 03/11/1998 09:28:05
At 1:17 PM +0100 3/11/98, Thorsten Frueauf wrote:
>Hello!
>
>> I tried rebuilding top since I'm using the UVM option, and it builds fine,
>> but still fails to run.
>
>Did you use the pkg system?
>
>> any idea how I can fix this?
>
>add "UVM=1" to /etc/mk.conf
>cd /usr/pkgsrc/sysutils/top
>make
>make install
>
>If this does not work, please send-pr.
>
>
Here is what I get. I found uvm_extern.h in  /usr/src/sys/uvm/uvm_extern.h
do you know where it should be?


law:top {108} make && make install
>> Checksum OK for top-3.5beta7.tar.gz.
===>  Extracting for top-3.5beta7
===>  Patching for top-3.5beta7
===>  Applying NetBSD patches for top-3.5beta7
===>  Configuring for top-3.5beta7
/bin/cp /usr/pkgsrc/sysutils/top/files/defaults
/usr/pkgsrc/sysutils/top/work/to
p-3.5beta7/.defaults
chmod a-x /usr/pkgsrc/sysutils/top/work/top-3.5beta7/install

Reading configuration from last time...

Using these settings:
        Bourne Shell   /bin/sh
          C compiler   cc
    Compiler options   -DHAVE_GETOPT -O
         Awk command   awk
     Install command   /usr/bin/install

              Module   netbsd13
             LoadMax   5.0
        Default TOPN   -1
        Nominal TOPN   18
       Default Delay   2
Random passwd access   yes
          Table Size   47
               Owner   root
         Group Owner   kmem
                Mode   2755
       bin directory   $(PREFIX)/bin
       man directory   $(PREFIX)/man/man1
       man extension   1
       man style       man

Building Makefile...
Building top.local.h...
Building top.1...
Doing a "make clean".
rm -f *.o top core core.* sigdesc.h
To create the executable, type "make".
To install the executable, type "make install".
===>  Building for top-3.5beta7
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c top.c
awk -f sigconv.awk /usr/include/sys/signal.h >sigdesc.h
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c commands.c
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c display.c
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c screen.c
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c username.c
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c utils.c
utils.c: In function `errmsg':
utils.c:348: warning: return discards `const' from pointer target type
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c version.c
cc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM  -c getopt.c
cc "-DOSREV=13E" -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -DUVM -c machine.c
machine.c:46: uvm/uvm_extern.h: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
law:top {109}

Brad

Stephen B. Salai                            Phone (716) 325-5553
Cumpston & Shaw                             Fax    (716) 262-3906
Two State Street                            email bsalai@tmonline.com
Rochester, NY 14614