Subject: Re: build failure: pmap
To: Hisashi T Fujinaka <email@example.com>
From: Steven M. Bellovin <firstname.lastname@example.org>
Date: 01/29/2004 17:13:29
In message <Pine.NEB.4.58.0401291404320.510@kerry>, Hisashi T Fujinaka writes:
>On Thu, 29 Jan 2004, Steve Bellovin wrote:
>> # compile pmap/pmap.o
>> /usr/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-
>prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitializ
>ed -Werror -nostdinc -isystem /usr/netbsd/usr/include -c /usr/src/usr.
>> /usr/src/usr.bin/pmap/pmap.c: In function `dump_vm_map_entry_regular':
>> /usr/src/usr.bin/pmap/pmap.c:326: error: `UVM_MAP_STATIC' undeclared (first
>use in this function)
>> /usr/src/usr.bin/pmap/pmap.c:326: error: (Each undeclared identifier is repo
>rted only once
>> /usr/src/usr.bin/pmap/pmap.c:326: error: for each function it appears in.)
>> /usr/src/usr.bin/pmap/pmap.c:327: error: `UVM_MAP_KMEM' undeclared (first us
>e in this function)
>> *** Failed target: pmap.o
>> *** Failed command: /usr/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-pr
>ototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-tradition
>al -Wno-uninitialized -Werror -nostdinc -isystem /usr/netbsd/usr/include -c /u
>> *** Error code 1
>> nbmake: stopped in /usr/src/usr.bin/pmap
>> This is on i386 with up-to-the-second source.
>You missed my message about cd usr.bin/pmap && make clean && etc, but
>now that I did that and tried a build, it stops. I had to actually clean
>and then make includes && make dependall in that directory before a
>build would complete.
I thought I'd seen that it was fixed, but I'd deleted that message
before I encountered the problem myself...
Anyway -- my build script starts by deleting /usr/obj (where my .o
files go) and /usr/netbsd (where I put the newly-built system), so I
know that I don't need to do a 'make clean'... I'll try your
suggestion later tonight, when I next have a chance to build the system.
--Steve Bellovin, http://www.research.att.com/~smb