This seems to happen when you do a buildworld with MACHINE == pc32
followed by an installworld with MACHINE == i386.
/usr/include/machine/param.h with the necessary definition doesn't seem
to get installed then.
I'll commit a check to installworld similar to that done for buildworld
to ensure that this can't happen.
A quick-and-dirty fix would be to edit makewhatis.c to define MACHINE
temporarily (see patch). It can be removed then after a successful
{build,install}world.
Index: makewhatis.c
===================================================================
RCS file: /home/dcvs/src/usr.sbin/makewhatis/makewhatis.c,v
retrieving revision 1.2
diff -u -u -r1.2 makewhatis.c
--- makewhatis.c 16 Jan 2005 04:59:53 -0000 1.2
+++ makewhatis.c 12 Nov 2006 13:13:50 -0000
@@ -1021,6 +1021,10 @@
whatis_proto = new_sbuf();
whatis_final = new_sbuf();
+#ifndef MACHINE
+#define MACHINE "pc32"
+#endif
+
if ((machine = getenv("MACHINE")) == NULL)
machine = MACHINE;
Sascha
|