Subject: pkg/8728: lavaps broken on sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-bugs
Date: 11/01/1999 11:59:08
>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: