Subject: failed to compile new ./lib/libc/stdlib/malloc.c
To: None <port-sparc@netbsd.org>
From: None <ks@ub.uni-mainz.de>
List: port-sparc
Date: 06/28/1999 16:26:00
trying another 'make build' an my ss5 running NetBSD 1.4D, source
supped today, I got the following:

cc -O2 -DALL_STATE  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS  -D_REENTRANT -I/import/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -c /import/src/lib/libc/stdlib/malloc.c
/import/src/lib/libc/stdlib/malloc.c: In function `map_pages':
/import/src/lib/libc/stdlib/malloc.c:314: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c:314: (Each undeclared identifier is reported only once
/import/src/lib/libc/stdlib/malloc.c:314: for each function it appears in.)
/import/src/lib/libc/stdlib/malloc.c: In function `extend_pgdir':
/import/src/lib/libc/stdlib/malloc.c:344: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `malloc_init':
/import/src/lib/libc/stdlib/malloc.c:465: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `malloc_pages':
/import/src/lib/libc/stdlib/malloc.c:507: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `malloc_make_chunks':
/import/src/lib/libc/stdlib/malloc.c:593: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `imalloc':
/import/src/lib/libc/stdlib/malloc.c:719: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `irealloc':
/import/src/lib/libc/stdlib/malloc.c:749: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `free_pages':
/import/src/lib/libc/stdlib/malloc.c:849: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `free_bytes':
/import/src/lib/libc/stdlib/malloc.c:969: `pgshift' undeclared (first use in this function)
/import/src/lib/libc/stdlib/malloc.c: In function `ifree':
/import/src/lib/libc/stdlib/malloc.c:1042: `pgshift' undeclared (first use in this function)
*** Error code 1

Stop.

don't know how to cure this, as pgshift seems only to be usable in
kernel context?! (looking at the definitions in <sys/param.h> and
sys/arch/sparc/sparc/locore.s)

-ks