You must not be following the right build process, described in /usr/src/Makefile
Other build mechanisms won't do the right thing. Trust me; I do more than a handful of builds a day... > I am having a problem building current today also where it stops on > rpc.lockd, except my error messages are different. Arghh, right at the end > of the build process. Any help appreciated. > > Rob > > Here are the error messages: > > *===> usr.sbin/rpc.lockd > cc -O2 -pipe -I. -DSYSLOG -c nlm_prot_svc.c > cc -O2 -pipe -I. -DSYSLOG -c /usr/src/usr.sbin/rpc.lockd/lockd.c > /usr/src/usr.sbin/rpc.lockd/lockd.c: In function `main': > /usr/src/usr.sbin/rpc.lockd/lockd.c:96: error: `NLM_SM' undeclared (first > use in this function) > /usr/src/usr.sbin/rpc.lockd/lockd.c:96: error: (Each undeclared identifier > is reported only once > /usr/src/usr.sbin/rpc.lockd/lockd.c:96: error: for each function it appears > in.) > /usr/src/usr.sbin/rpc.lockd/lockd.c:99: error: `NLM_VERS4' undeclared (first > use in this function) > *** Error code 1 > > Stop in /usr/src/usr.sbin/rpc.lockd (line 92 of /usr/share/mk/sys.mk). > *** Error code 1 > > Stop in /usr/src/usr.sbin (line 48 of /usr/share/mk/bsd.subdir.mk). > *** Error code 1 > > Stop in /usr/src (line 48 of /usr/share/mk/bsd.subdir.mk). > *** Error code 1 > > Stop in /usr/src (line 73 of Makefile). > *