[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-sparc
Subject:    compiling src/lib/csu/sparc_elf/crt0.c failed
From:       ks () ub ! uni-mainz ! de
Date:       1999-06-28 13:33:14
[Download RAW message or body]


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic