Subject: 1.4 -> current
To: None <port-sparc@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc
Date: 08/15/1999 16:52:58
I wanted to move one of my SPARCs from 1.4 to -current (specifically,
the sup of 08-13).  So I looked at the "a.out to ELF" faq and started
in.  But I'd barely started when I got trouble.  When trying to build
the first -current kernel,

cc -g -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DSUN4 -DSUN4C -DSUN4M -DRASTERCONSOLE -DRASTERCONS_WONB -DRASTERCONS_FULLSCREEN -DLKM -DDIAGNOSTIC -DDEBUG -DSCSIDEBUG -DCOMPAT_14 -DNS -DMAXUSERS=32 -D_KERNEL  -c param.c
cc1: warnings being treated as errors
In file included from param.c:48:
../../../../sys/systm.h:196: warning: conflicting types for built-in function `memcmp'
../../../../sys/systm.h:197: warning: conflicting types for built-in function `memcpy'
../../../../sys/systm.h:199: warning: conflicting types for built-in function `memset'
*** Error code 1

Stop.

This appears to be because sys/arch/sparc/include/ansi.h in the old
tree defines _BSD_SIZE_T_ as unsigned int, whereas the new one defines
it as unsigned long.  This ends up getting used for size_t, which
breaks the prototypes in systm.h.

For the time being, I'm going to add a private patch to change this
back, since on my SPARCs, unsigned int and unsigned long are the same.
But I'd be interested to know what the right fix is....

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B