Subject: None
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Brian Moore <ziff@eecs.umich.edu>
List: current-users
Date: 03/16/1994 01:27:23
Has anyone run into this problem with the 3/15 sources?  I'm trying to do a
rebuild of the entire /usr/src tree.  When it gets to usr.sbin/iostat, it
complains about things not being defined in /usr/src/usr.bin/vmstat/names.c.
Sure enough, the file names.c is included by vmstat.c, which contains the
defines for names.c. 

cc   -O -I/sys -I/usr/src/usr.sbin/iostat/../../usr.bin/vmstat  -o iostat
/usr/src/usr.sbin/iostat/iostat.c -lkvm
/usr/src/usr.sbin/iostat/../../usr.bin/vmstat/names.c: In function
`read_names':
In file included from /usr/src/usr.sbin/iostat/iostat.c:122:
/usr/src/usr.sbin/iostat/../../usr.bin/vmstat/names.c:62: `X_ISADEVTAB'
undeclared (first use this function)
/usr/src/usr.sbin/iostat/../../usr.bin/vmstat/names.c:62: (Each undeclared
identifier is reported only once
/usr/src/usr.sbin/iostat/../../usr.bin/vmstat/names.c:62: for each function it
appears in.)
*** Error code 1

It looks like the VM stuff got updated and the stuff in iostat was left in the
old state.  
iostat/iostat.c
#ifdef i386
#define	X_ISA_BIO	(X_END+1)
	{ "_isa_subdev" },
#endif
	{ NULL },
};

vmstat/vmstat.c
#define	X_ISADEVTAB	(X_END+1)
	{ "_isa_devtab" },
#endif i386
	{ "" },
};

vmstat/names.c
	isa_devtab = nl[X_ISADEVTAB].n_value;
	if (isa_devtab == 0) {
		(void) fprintf(stderr,
		    "vmstat: disk init info not in namelist\n");
		exit(1);
	}

Thought someone would want to know.

Brian Moore
ziff@eecs.umich.edu

------------------------------------------------------------------------------