NetBSD Problem Report #26249
Received: (qmail 20022 invoked by uid 605); 11 Jul 2004 16:48:12 -0000
Message-Id: <20040711164629.6D8F327B572@mail.nixsys.bz>
Date: Sun, 11 Jul 2004 12:46:29 -0400 (EDT)
From: diro@nixsys.bz
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: diro@nixsys.bz
To: gnats-bugs@gnats.netbsd.org
Subject: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
X-Send-Pr-Version: 3.95
>Number: 26249
>Category: pkg
>Synopsis: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: cube
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 11 16:49:00 +0000 2004
>Closed-Date: Mon Jul 12 20:20:24 +0000 2004
>Last-Modified: Mon Jul 12 20:20:24 +0000 2004
>Originator:
>Release: NetBSD 1.6.2
>Organization:
>Environment:
System: NetBSD nixsys 1.6.2 NetBSD 1.6.2 (NIXSYS) #10: Thu Mar 4 22:20:38 EST 2004 root@nixsys:/usr/src/sys/arch/alpha/compile/NIXSYS alpha
Architecture: alpha
Machine: alpha
>Description:
=> Checksum OK for top-3.5beta9.tar.gz.
===> Extracting for top-3.5b9
===> Patching for top-3.5b9
===> Applying pkgsrc patches for top-3.5b9
===> Overriding tools for top-3.5b9
===> Configuring for top-3.5b9
/bin/cp /usr/src/sys/pkgsrc/sysutils/top/files/defaults.netbsd13 /usr/src/sys/pkgsrc/sysutils/top/work/top-3.5beta9/.defaults
/bin/chmod a-x /usr/src/sys/pkgsrc/sysutils/top/work/top-3.5beta9/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.5b9
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c top.c
awk -f sigconv.awk /usr/include/sys/signal.h >sigdesc.h
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c commands.c
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c display.c
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c screen.c
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c username.c
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c utils.c
utils.c: In function `errmsg':
utils.c:358: warning: return discards qualifiers from pointer target type
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c version.c
gcc -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c getopt.c
gcc "-DOSREV=162" -DHAVE_GETOPT -DORDER -DHAVE_GETOPT -O -c machine.c
machine.c:46: vm/vm_swap.h: No such file or directory
*** Error code 1
Stop.
make: stopped in /usr/src/sys/pkgsrc/sysutils/top/work/top-3.5beta9
*** Error code 1
Stop.
make: stopped in /usr/src/sys/pkgsrc/sysutils/top
*** Error code 1
>How-To-Repeat:
make top in pkgsrc-current
>Fix:
>Release-Note:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: diro@nixsys.bz, gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: pkg/26249: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Sun, 11 Jul 2004 13:48:37 -0400
On Jul 11, 12:46pm, diro@nixsys.bz (diro@nixsys.bz) wrote:
-- Subject: pkg/26249: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
top is part of the base system; why are you trying to re-compile it?
christos
From: diro@nixsys.bz
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26249: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Sun, 11 Jul 2004 15:19:09 -0400
On Sun, Jul 11, 2004 at 01:48:37PM -0400, Christos Zoulas wrote:
> On Jul 11, 12:46pm, diro@nixsys.bz (diro@nixsys.bz) wrote:
> -- Subject: pkg/26249: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
>
> top is part of the base system; why are you trying to re-compile it?
>
> christos
Well, you know, I find it remotely beneficial to NetBSD to compile and test the pkgs in pkgsrc-current. I realize now that the version of top shipped with 1.6.2 is more up-to-date than the one in the pkgsrc tree, so I guess this build is rather pointless. Regardless, the problem still exists.
!tr
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26249 CVS commit: pkgsrc/sysutils/top
Date: Sun, 11 Jul 2004 19:53:06 +0000 (UTC)
Module Name: pkgsrc
Committed By: cube
Date: Sun Jul 11 19:53:06 UTC 2004
Modified Files:
pkgsrc/sysutils/top: DESCR Makefile PLIST distinfo
Removed Files:
pkgsrc/sysutils/top/patches: patch-aa patch-ab patch-ac patch-ae
patch-af patch-ag patch-ah patch-ai
Log Message:
Update to version 3.6alpha7. Thanks to Christos Zoulas for NetBSD support.
Fixes PR 26249.
To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 pkgsrc/sysutils/top/DESCR pkgsrc/sysutils/top/PLIST
cvs rdiff -r1.29 -r1.30 pkgsrc/sysutils/top/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/sysutils/top/distinfo
cvs rdiff -r1.7 -r0 pkgsrc/sysutils/top/patches/patch-aa
cvs rdiff -r1.11 -r0 pkgsrc/sysutils/top/patches/patch-ab
cvs rdiff -r1.8 -r0 pkgsrc/sysutils/top/patches/patch-ac
cvs rdiff -r1.2 -r0 pkgsrc/sysutils/top/patches/patch-ae
cvs rdiff -r1.1 -r0 pkgsrc/sysutils/top/patches/patch-af \
pkgsrc/sysutils/top/patches/patch-ag pkgsrc/sysutils/top/patches/patch-ah \
pkgsrc/sysutils/top/patches/patch-ai
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: cube
State-Changed-When: Sun Jul 11 19:55:26 UTC 2004
State-Changed-Why:
top was updated.
Responsible-Changed-From-To: pkg-manager->cube
Responsible-Changed-By: cube
Responsible-Changed-When: Sun Jul 11 19:55:26 UTC 2004
Responsible-Changed-Why:
I handle it.
From: diro@nixsys.bz
To: gnats-bugs@gnats.netbsd.org
Cc: cube@netbsd.org, pkg-manager@netbsd.org
Subject: Re: pkg/26249 sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Sun, 11 Jul 2004 16:38:34 -0400
On Sun, Jul 11, 2004 at 07:56:10PM -0000, cube@netbsd.org wrote:
> Synopsis: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
>
> State-Changed-From-To: open->feedback
> State-Changed-By: cube
> State-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> State-Changed-Why:
> top was updated.
>
>
> Responsible-Changed-From-To: pkg-manager->cube
> Responsible-Changed-By: cube
> Responsible-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> Responsible-Changed-Why:
> I handle it.
Great that top was updated! It still breaks on compile, but now with a different error. This maybe should be a separate PR:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... alpha-unknown-netbsd1.6.2
checking host system type... alpha--netbsd
checking target system type... alpha--netbsd
checking for alpha--netbsd-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gawk... /usr/bin/awk
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking OS revision number... 162
checking for kstat_open in -lkstat... no
checking for kvm_open in -lkvm... yes
checking for elf32_getphdr in -lelf... no
checking for library containing tgetent... -ltermcap
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for a good signal.h... /usr/include/sys/signal.h
checking whether sys_errlist is declared... no
checking return type of signal handlers... void
checking for getopt... yes
checking for strerror... yes
checking for snprintf... yes
checking for sighold... no
checking for sigrelse... no
checking for correct ls options... ls -l
checking for a platform module... none
Configure doesn't recognize this system and doesn't know
what module to assign to it. Help the cause and run the
following command to let the maintainers know about this
deficiency! Thanks. Just cut and paste the following:
uname -a | mail -s netbsd bill@lefebvre.org
configure: error: System type netbsd unrecognized
*** Error code 1
Stop.
make: stopped in /usr/src/sys/pkgsrc/sysutils/top
*** Error code 1
Stop.
make: stopped in /sys/pkgsrc/sysutils/top
!tr
From: diro@nixsys.bz
To: cube@cubidou.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26249 sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Sun, 11 Jul 2004 17:10:35 -0400
On Sun, Jul 11, 2004 at 10:49:01PM +0200, cube@cubidou.net wrote:
> On Sun, Jul 11, 2004 at 04:38:34PM -0400, diro@nixsys.bz wrote:
> > On Sun, Jul 11, 2004 at 07:56:10PM -0000, cube@netbsd.org wrote:
> > > Synopsis: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
> > >
> > > State-Changed-From-To: open->feedback
> > > State-Changed-By: cube
> > > State-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > State-Changed-Why:
> > > top was updated.
> > >
> > >
> > > Responsible-Changed-From-To: pkg-manager->cube
> > > Responsible-Changed-By: cube
> > > Responsible-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > Responsible-Changed-Why:
> > > I handle it.
> >
> > Great that top was updated! It still breaks on compile, but now with a different error. This maybe should be a separate PR:
>
> I'm stupid, I forgot to commit Christos's patches...
>
> Quentin Garnier.
=) No worries. I do things like that semi-frequently. Sometimes we type faster than we think! =D
Anyway, this pkg makes it thru configure, but breaks on the build:
nixsys% cvs update -dP
? README.html
cvs update: Updating .
P distinfo
cvs update: Updating files
cvs update: Updating patches
U patches/patch-aj
U patches/patch-ak
U patches/patch-al
cvs update: Updating pkg
nixsys% make depend
nixsys% make
===> Checking for vulnerabilities in top-3.6a7
=> Checksum OK for top-3.6alpha7.tar.gz.
===> Extracting for top-3.6a7
===> Patching for top-3.6a7
===> Applying pkgsrc patches for top-3.6a7
===> Overriding tools for top-3.6a7
===> Configuring for top-3.6a7
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... alpha-unknown-netbsd1.6.2
checking host system type... alpha--netbsd
checking target system type... alpha--netbsd
checking for alpha--netbsd-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gawk... /usr/bin/awk
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking OS revision number... 162
checking for kstat_open in -lkstat... no
checking for kvm_open in -lkvm... yes
checking for elf32_getphdr in -lelf... no
checking for library containing tgetent... -ltermcap
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for a good signal.h... /usr/include/sys/signal.h
checking whether sys_errlist is declared... no
checking return type of signal handlers... void
checking for getopt... yes
checking for strerror... yes
checking for snprintf... yes
checking for sighold... no
checking for sigrelse... no
checking for correct ls options... ls -l
checking for a platform module... netbsd15
checking address space size... 32 bit
checking for installation settings... owner=root, group=wheel, mode=4711
configure: creating ./config.status
config.status: creating Makefile
config.status: creating top.1
config.status: creating config.h
===> Building for top-3.6a7
/usr/bin/awk -f ./sigconv.awk /usr/include/sys/signal.h >sigdesc.h
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c commands.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c display.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c screen.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c top.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c username.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c utils.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c version.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c ./machine/m_netbsd15.c
./machine/m_netbsd15.c: In function `get_process_info':
./machine/m_netbsd15.c:480: `LSZOMB' undeclared (first use in this function)
./machine/m_netbsd15.c:480: (Each undeclared identifier is reported only once
./machine/m_netbsd15.c:480: for each function it appears in.)
./machine/m_netbsd15.c:480: `LSDEAD' undeclared (first use in this function)
./machine/m_netbsd15.c:482: `LSRUN' undeclared (first use in this function)
./machine/m_netbsd15.c:482: `LSONPROC' undeclared (first use in this function)
./machine/m_netbsd15.c: In function `format_next_process':
./machine/m_netbsd15.c:529: `L_INMEM' undeclared (first use in this function)
./machine/m_netbsd15.c:560: `LSSLEEP' undeclared (first use in this function)
./machine/m_netbsd15.c:570: `LSONPROC' undeclared (first use in this function)
./machine/m_netbsd15.c:571: `LSRUN' undeclared (first use in this function)
./machine/m_netbsd15.c:573: warning: unreachable code at beginning of switch statement
*** Error code 1
Stop.
make: stopped in /usr/src/sys/pkgsrc/sysutils/top/work/top-3.6alpha7
*** Error code 1
Stop.
make: stopped in /usr/src/sys/pkgsrc/sysutils/top
*** Error code 1
Stop.
make: stopped in /sys/pkgsrc/sysutils/top
!tr
From: cube@cubidou.net
To: diro@nixsys.bz
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26249 sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Sun, 11 Jul 2004 23:15:13 +0200
On Sun, Jul 11, 2004 at 05:10:35PM -0400, diro@nixsys.bz wrote:
> On Sun, Jul 11, 2004 at 10:49:01PM +0200, cube@cubidou.net wrote:
> > On Sun, Jul 11, 2004 at 04:38:34PM -0400, diro@nixsys.bz wrote:
> > > On Sun, Jul 11, 2004 at 07:56:10PM -0000, cube@netbsd.org wrote:
> > > > Synopsis: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
> > > >
> > > > State-Changed-From-To: open->feedback
> > > > State-Changed-By: cube
> > > > State-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > > State-Changed-Why:
> > > > top was updated.
> > > >
> > > >
> > > > Responsible-Changed-From-To: pkg-manager->cube
> > > > Responsible-Changed-By: cube
> > > > Responsible-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > > Responsible-Changed-Why:
> > > > I handle it.
> > >
> > > Great that top was updated! It still breaks on compile, but now with a different error. This maybe should be a separate PR:
> >
> > I'm stupid, I forgot to commit Christos's patches...
> >
> > Quentin Garnier.
>
> =) No worries. I do things like that semi-frequently. Sometimes we type faster than we think! =D
>
> Anyway, this pkg makes it thru configure, but breaks on the build:
[...]
> gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c ./machine/m_netbsd15.c
> ./machine/m_netbsd15.c: In function `get_process_info':
> ./machine/m_netbsd15.c:480: `LSZOMB' undeclared (first use in this function)
> ./machine/m_netbsd15.c:480: (Each undeclared identifier is reported only once
> ./machine/m_netbsd15.c:480: for each function it appears in.)
> ./machine/m_netbsd15.c:480: `LSDEAD' undeclared (first use in this function)
> ./machine/m_netbsd15.c:482: `LSRUN' undeclared (first use in this function)
> ./machine/m_netbsd15.c:482: `LSONPROC' undeclared (first use in this function)
> ./machine/m_netbsd15.c: In function `format_next_process':
> ./machine/m_netbsd15.c:529: `L_INMEM' undeclared (first use in this function)
> ./machine/m_netbsd15.c:560: `LSSLEEP' undeclared (first use in this function)
> ./machine/m_netbsd15.c:570: `LSONPROC' undeclared (first use in this function)
> ./machine/m_netbsd15.c:571: `LSRUN' undeclared (first use in this function)
> ./machine/m_netbsd15.c:573: warning: unreachable code at beginning of switch statement
I expected it but I've been too lazy to test myself on -1-6 :)
I'll make it work.
Quentin Garnier.
From: diro@nixsys.bz
To: cube@cubidou.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26249 sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
Date: Mon, 12 Jul 2004 12:50:30 -0400
On Sun, Jul 11, 2004 at 11:15:13PM +0200, cube@cubidou.net wrote:
> On Sun, Jul 11, 2004 at 05:10:35PM -0400, diro@nixsys.bz wrote:
> > On Sun, Jul 11, 2004 at 10:49:01PM +0200, cube@cubidou.net wrote:
> > > On Sun, Jul 11, 2004 at 04:38:34PM -0400, diro@nixsys.bz wrote:
> > > > On Sun, Jul 11, 2004 at 07:56:10PM -0000, cube@netbsd.org wrote:
> > > > > Synopsis: sysutils/top-3.5beta9 can't find or needs vm/vm_swap.h
> > > > >
> > > > > State-Changed-From-To: open->feedback
> > > > > State-Changed-By: cube
> > > > > State-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > > > State-Changed-Why:
> > > > > top was updated.
> > > > >
> > > > >
> > > > > Responsible-Changed-From-To: pkg-manager->cube
> > > > > Responsible-Changed-By: cube
> > > > > Responsible-Changed-When: Sun Jul 11 19:55:26 UTC 2004
> > > > > Responsible-Changed-Why:
> > > > > I handle it.
> > > >
> > > > Great that top was updated! It still breaks on compile, but now with a different error. This maybe should be a separate PR:
> > >
> > > I'm stupid, I forgot to commit Christos's patches...
> > >
> > > Quentin Garnier.
> >
> > =) No worries. I do things like that semi-frequently. Sometimes we type faster than we think! =D
> >
> > Anyway, this pkg makes it thru configure, but breaks on the build:
> [...]
> > gcc -DHAVE_CONFIG_H -I. -I. -O2 -mieee -c ./machine/m_netbsd15.c
> > ./machine/m_netbsd15.c: In function `get_process_info':
> > ./machine/m_netbsd15.c:480: `LSZOMB' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:480: (Each undeclared identifier is reported only once
> > ./machine/m_netbsd15.c:480: for each function it appears in.)
> > ./machine/m_netbsd15.c:480: `LSDEAD' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:482: `LSRUN' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:482: `LSONPROC' undeclared (first use in this function)
> > ./machine/m_netbsd15.c: In function `format_next_process':
> > ./machine/m_netbsd15.c:529: `L_INMEM' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:560: `LSSLEEP' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:570: `LSONPROC' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:571: `LSRUN' undeclared (first use in this function)
> > ./machine/m_netbsd15.c:573: warning: unreachable code at beginning of switch statement
>
> I expected it but I've been too lazy to test myself on -1-6 :)
>
> I'll make it work.
>
> Quentin Garnier.
You sure did. top-3.6a7 builds and installs fine.
Thanks very much,
!tr
State-Changed-From-To: feedback->closed
State-Changed-By: cube
State-Changed-When: Mon Jul 12 20:20:09 UTC 2004
State-Changed-Why:
Issue is fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.