Subject: compiling src/lib/csu/sparc_elf/crt0.c failed
To: None <port-sparc@netbsd.org>
From: None <ks@ub.uni-mainz.de>
List: port-sparc
Date: 06/28/1999 15:33:14
hi,

just tried a 'make build' on my ss5 running NetBSD 1.4D (elf) and got
this one:
cc -O2 -fPIC -Werror   -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/import/src/lib/csu/sparc_elf/../../../libexec/ld.elf_so -I/import/src/lib/csu/sparc_elf/../common_elf -c -DCRT0 /import/src/lib/csu/sparc_elf/crt0.c -o crt0.o
In file included from /import/src/lib/csu/sparc_elf/../common_elf/common.h:41,
                 from /import/src/lib/csu/sparc_elf/crt0.c:35:
/import/src/lib/csu/sparc_elf/../../../libexec/ld.elf_so/rtld.h:65: #error "Sparc has a variable page size"
*** Error code 1

Stop.

seems VARPSZ should be defined in the Makefile in ./lib/csu/sparc_elf?
I only found VARPSZ defined in 
./usr.bin/ldd/ldd_elf/Makefile:CPPFLAGS+= -DVARPSZ

so I applied the following patch and ./lib/csu at least compiles...

*** ./lib/csu/sparc_elf/Makefile.orig      Mon Mar 22 13:09:32 1999
--- ./lib/csu/sparc_elf/Makefile Mon Jun 28 14:20:07 1999
***************
*** 1,3 ****
--- 1,4 ----
  #     $NetBSD: Makefile,v 1.4 1999/03/20 00:32:41 thorpej Exp $
  
  .include "${.CURDIR}/../common_elf/Makefile.inc"
+ CPPFLAGS+=    -DVARPSZ