Subject: port-sparc/7811: Kernel will not build without compat_13 if using compat_sunos
To: None <gnats-bugs@gnats.netbsd.org>
From: Jon Buller <jonb@metronet.com>
List: netbsd-bugs
Date: 06/18/1999 20:50:47
>Number:         7811
>Category:       port-sparc
>Synopsis:       Kernel will not build without compat_13 if using compat_sunos
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc-maintainer (NetBSD/sparc Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 18 20:50:00 1999
>Last-Modified:
>Originator:     Jon Buller
>Organization:
	
>Release:        current around 06/07/1999
>Environment:
	
System: NetBSD bullball.heeia.hi.us 1.4C NetBSD 1.4C (GENERIC) #1: Wed May 26 18:18:37 MEST 1999 pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
	compile a kernel with compat_sunos but no compat_13.  (I'm assuming
	from the error message during the compile.)

ld -Ttext F0004000 -e start -n -X -o netbsd ${SYSTEM_OBJ} vers.o
sunos_machdep.o: In function `sunos_sys_sigreturn':
sunos_machdep.o(.text+0x14c): undefined reference to `compat_13_sys_sigreturn'
aout_sysent.o(.data+0x33c): undefined reference to `compat_13_sys_sigreturn'
*** Error code 1

>How-To-Repeat:
	I'll send the entire config file if desired, I just recompiled the
	kernel with compat_13 added and it linked fine.
>Fix:
	Workaround: add compat_13 if you want compat_sunos.  Perhaps
	compat_sunos should define compat_13 in the signal handling code.
>Audit-Trail:
>Unformatted: