Subject: port-sun3/33720: COMPAT_SUNOS kernel option not enabled by default on NetBSD for Sun3
To: None <port-sun3-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigmfsk@aol.com>
List: netbsd-bugs
Date: 06/13/2006 19:30:01
>Number:         33720
>Category:       port-sun3
>Synopsis:       COMPAT_SUNOS kernel option not enabled by default on NetBSD for Sun3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sun3-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 13 19:30:00 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.0
>Organization:
>Environment:
NetBSD 3.0 NetBSD 3.0 (WITHSUNOS) #0: Mon Jun 12 22:40:11 EDT 2006 root@:/usr/src/sys/arch/sun3/compile/WITHSUNOS sun3

(note: Though I can't imagine that it makes a difference, it is important to point out that I'm not running an actual Sun3.  I'm running TME from under the emulators path of pkgsrc).
>Description:
After loading NetBSD 3.0 on a Sun3, attempting to run a SunOS executable produces the message: Exec format error. Wrong Architecture.  After loading syssrc.tar, the /usr/src/sys/arch/sun3/conf/GENERIC shows the option COMPAT_SUNUS enabled.  I copied GENERIC to WITHSUNOS, without making any changes.  I rebuilt the WITHSUNOS kernel, updated the kernel to WITHSUNS, and now sun executables run.  It seems that the syssrc.tar info is correct, but the actual original tape build sets were built with the option commented out???
>How-To-Repeat:
Load NetBSD 3.0 to a Sun3.  Attempt to run a SunOS executable (hello world program).
>Fix:
Rebuilt kernel.