Subject: UPAGES on sparc? [was: pkg/8728: lavaps broken on sparc (fwd)]
To: None <tech-kern@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 11/02/1999 02:26:14
A quick 'grep -l UPAGES /sys/arch/*/include/param.h' indicates that UPAGES
is not defined on sparc, sparc64, pmax, newsmips, m68k and hpcmisp'
<machine/param.h>. Could someone knowledgable please

1. Look if it makes sense to add UPAGES to the named archs' files
2. suggest a workaround for the lavaps package that can be used
   until the next major release?

Thanks!


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra

---------- Forwarded message ----------
Date: Mon, 1 Nov 1999 14:54:37 -0500 (EST)
From: mcmahill@mtl.mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: pkg/8728: lavaps broken on sparc


>Number:         8728
>Category:       pkg
>Synopsis:       lavaps broken on sparc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov  1 11:57:00 1999
>Last-Modified:
>Originator:     Dan McMahill
>Organization:

>Release:        1.4.1<NetBSD-current source date>
>Environment:
	
System: NetBSD cowboy-burt 1.4.1 NetBSD 1.4.1 (COWBOY-BURT) #1: Sat Oct 2 21:08:08 EDT 1999 dan@cowboy-burt:/amd/dinah-moe/export/src/sys/arch/sparc/compile/COWBOY-BURT sparc


>Description:

sysutils/lavaps package doesn't build on sparc-1.4.1.
This is the initial rev of the lavaps package.
	
>How-To-Repeat:
cd /usr/pkgsrc/sysutils/lavaps
make

see:
........
c++ -DPACKAGE=\"lavaps\" -DVERSION=\"1.8\" -DHAVE_TCL_H=1 -DHAVE_TK_H=1  -I. -I.   -I/usr/X11R6/incl
ude -I/usr/pkg/include/tcl8.0 -I/usr/pkg/include/tk8.0 -I/usr/local/include/tk8.0 -I/usr/local/inclu
de/tcl8.0  -I/usr/pkg/include/tcl8.0 -I/usr/pkg/include/tk8.0 -I/usr/local/include/tk8.0 -I/usr/loca
l/include/tcl8.0 -DUSE_PROCESS_SCAN_FREEBSD -g -Wall -DUSE_TCL_BLOB  -I/usr/X11R6/include -c process
_scan_freebsd.cc
process_scan_freebsd.cc: In method `void process_scan_freebsd::life(class process_model *)':
process_scan_freebsd.cc:251: `UPAGES' undeclared (first use this function)
process_scan_freebsd.cc:251: (Each undeclared identifier is reported only once
process_scan_freebsd.cc:251: for each function it appears in.)
process_scan_freebsd.cc:261: confused by earlier errors, bailing out
*** Error code 1

Stop.

	
>Fix:

don't know.  

I noted that:
/usr/include/i386/param.h:#define       UPAGES          2               /* pages of u-area */
(i386-1.4.1)
(lavaps works on i386)

and:

dan@cowboy-burt 316 # find /usr/include -type f -exec grep UPAGES {} /dev/null \;
/usr/include/sparc/vmparam.h: * Note that each process has at least UPAGES+CLSIZE pages which are not
dan@cowboy-burt 318 # uname -a
NetBSD cowboy-burt 1.4.1 NetBSD 1.4.1 (COWBOY-BURT) #1: Sat Oct  2 21:08:08 EDT 1999     dan@cowboy-burt:/amd/dinah-moe/export/src/sys/arch/sparc/compile/COWBOY-BURT sparc

ie, no UPAGES on sparc.

looks like (based on comments) that some of the lavaps code in process_scan_freebsd.cc is from the FreeBSD ps code.  We may need
a netbsd version of this module.


	
>Audit-Trail:
>Unformatted: