Subject: port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled
To: None <port-sun3-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigmfsk@aol.com>
List: netbsd-bugs
Date: 06/13/2006 19:55:00
>Number:         33721
>Category:       port-sun3
>Synopsis:       Kernel cannot be built with COMPAT_LINUX enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sun3-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 13 19:55: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
>Description:
If updating the kernel by UNcommenting COMPAT_SVR4 and COMPAT_LINUX, then rebuilding the kernel, the build fails at:
In file included from ../../../../compat/linux/common/linux_sg.c:41: ../../../../dev/scsipi/scsiconf.h:65: error: field 'sc_dev' has incomplete type
*** Error Code 1
Stop.

I do not have an arguable need to do this.  I just uncommented all the COMPAT_xxxxx lines in the kernel, and the build failed.  I really only needed COMPAT_SUNOS.
>How-To-Repeat:
Uncomment COMPAT_SVR4 and COMPAT_LINUX and rebuild kernel.  (probably only need to uncomment COMPAT_LINUX).
>Fix: