Subject: Re: compiling from sources just supped...
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: current-users
Date: 01/29/1999 08:21:05
In message <199901281719.SAA00722@betty.ub.uni-mainz.de>
	on Thu, 28 Jan 1999 18:19:43 +0100,
	ks@betty.ub.uni-mainz.de wrote:
> ... i got this one on i386:
> 
> cc -O2 -DALL_STATE  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -c /usr/src/lib/libc/gen/disklabel.c
> In file included from /usr/include/sys/disklabel.h:48,
>                  from /usr/src/lib/libc/gen/disklabel.c:49:
> /usr/include/machine/disklabel.h:42: sys/disklabel_mbr.h: No such file or directory
> *** Error code 1
/usr/src/sys/sys/Makefile should be modified.  (Patch is attached bellow.)

> and this one on sparc:
> 
> all ===> libc
> cc -O2 -DALL_STATE  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/mnt/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -c nslexer.c
> cc1: warnings being treated as errors
> nslexer.c: In function `_nsyylex':
> nslexer.c:709: warning: label `find_rule' defined but not used
> nslexer.c: At top level:
> nslexer.c:1679: warning: `yy_flex_realloc' defined but not used
> *** Error code 1
Have you updated lex(1)?

Index: sys/sys/Makefile
===================================================================
RCS file: /usr/local/libdata/cvs/netbsd/sys/sys/Makefile,v
retrieving revision 1.1.1.1.2.2
diff -c -r1.1.1.1.2.2 Makefile
*** Makefile	1999/01/25 15:12:10	1.1.1.1.2.2
--- Makefile	1999/01/28 23:08:04
***************
*** 5,10 ****
--- 5,11 ----
  
  INCS=	acct.h ataio.h audioio.h buf.h callout.h cdefs.h cdio.h chio.h \
  	clist.h conf.h core.h device.h dir.h dirent.h disk.h disklabel.h \
+ 	disklabel_mbr.h \
  	dkbad.h dkio.h dkstat.h dmap.h domain.h errno.h exec.h exec_aout.h \
  	exec_ecoff.h exec_elf.h exec_script.h extent.h fcntl.h fdio.h \
  	featuretest.h file.h filedesc.h filio.h gmon.h inttypes.h ioccom.h \

--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>