Subject: bin/3989: crunchide fails to build on pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 08/15/1997 12:44:57
>Number:         3989
>Category:       bin
>Synopsis:       crunchide fails to build on pmax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 14 20:05:01 1997
>Last-Modified:
>Originator:     Simon Burge
>Organization:
	IBM Global Services Australia
>Release:        NetBSD-current 970815
>Environment:
System: NetBSD vlad 1.2G NetBSD 1.2G (MONA) #0: Fri Aug 8 23:36:18 EST 1997 simonb@vlad:/usr/src/sys/arch/pmax/compile/MONA pmax


>Description:
	Crunchide fails to build on the pmax, with the following errors:

===> usr.bin/crunch/crunchide
cc -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -c /usr/src/usr.bin/crunch/crunchide/
exec_aout.c
/usr/src/usr.bin/crunch/crunchide/exec_aout.c: In function `check_reloc':
/usr/src/usr.bin/crunch/crunchide/exec_aout.c:195: structure has no member named `r_baserel'
/usr/src/usr.bin/crunch/crunchide/exec_aout.c:195: structure has no member named `r_jmptable'
/usr/src/usr.bin/crunch/crunchide/exec_aout.c:195: structure has no member named `r_symbolnum'
/usr/src/usr.bin/crunch/crunchide/exec_aout.c:198: structure has no member named `r_symbolnum'
*** Error code 1 (continuing)
`all' not remade because of errors.

>How-To-Repeat:
	make build on a pmax.
>Fix:
        Not known for sure.  The following get's things to compile, but
        I don't know if it's "correct".

*** /ftp/pub/NetBSD/NetBSD-current/src/usr.bin/crunch/crunchide/extern.h	Wed Aug  6 13:23:00 1997
--- extern.h	Fri Aug 15 12:41:13 1997
***************
*** 33,38 ****
--- 33,40 ----
  #ifdef __alpha__
  #define	NLIST_ECOFF
  #define	NLIST_ELF64
+ #elif defined __mips__
+ #define	NLIST_ELF32
  #else
  #define	NLIST_AOUT
  /* #define	NLIST_ECOFF */
>Audit-Trail:
>Unformatted: