Subject: 24 Mar kernel build failure
To: None <port-pmax@NetBSD.ORG>
From: Erik Bertelsen <erik@sockdev.uni-c.dk>
List: port-pmax
Date: 03/25/1997 14:09:39
DECStation 3100
newly installet snapshot (16 Mar 1997) base, comp, text.

Updated sources (24. Mar 1997)

Rebuilt and installed make & config.

Re-configured custom kernel.

Make clean && make depend && make

two problems:

1. compilation error:
cc  -O -Werror -mno-abicalls -mno-half-pic -I. -I../../../../arch
-I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DEXEC_ELF32
-DEXEC_SCRIPT -DCPU_R3000 -DDS3100 -DMIPS1 -DDIAGNOSTIC -DDEBUG
-DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DNTP -DFIFO -DFFS -DNFS
-DNFSSERVER -DNULLFS -DINET -DHZ=256 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DMAXUSERS=16 -D_KERNEL  -Dpmax   -c
../../../../arch/pmax/pmax/pmax_trap.c
In file included from ../../../../arch/pmax/pmax/pmax_trap.c:89:
../../../../dev/ic/am7990var.h:57: field `sc_media' has incomplete type
*** Error code 1

I can fix this with the following patch, but maybe am7990var.h should
be patched instead ?

Index: pmax_trap.c
===================================================================
RCS file: /sw/cvs-base/src/sys/arch/pmax/pmax/pmax_trap.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 pmax_trap.c
*** pmax_trap.c 1997/03/16 16:20:49     1.1.1.2
--- pmax_trap.c 1997/03/25 14:00:45
***************
*** 83,88 ****
--- 83,89 ----
  #include <netinet/in.h>
  #include <net/if.h>
  #include <net/if_ether.h>
+ #include <net/if_media.h>
  #include <netinet/if_inarp.h>
  
  struct ifnet; struct ethercom;
====================

2. Linker dies:
sh ../../../../conf/newvers.sh
cc  -O -Werror -mno-abicalls -mno-half-pic -I. -I../../../../arch
-I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DEXEC_ELF32
-DEXEC_SCRIPT -DCPU_R3000 -DDS3100 -DMIPS1 -DDIAGNOSTIC -DDEBUG
-DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DNTP -DFIFO -DFFS -DNFS
-DNFSSERVER -DNULLFS -DINET -DHZ=256 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DMAXUSERS=16 -D_KERNEL  -Dpmax   -c vers.c
ld.old -N -Ttext 80030000 -e start -x -o netbsd ${SYSTEM_OBJ} vers.o
ld.old: final link failed: Bad value
*** Error code 1

Any explanation ?

regards
Erik Bertelsen