Subject: Re: port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled
To: None <port-sun3-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 06/13/2006 22:10:03
The following reply was made to PR port-sun3/33721; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, port-sun3-maintainer@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled
Date: Tue, 13 Jun 2006 18:05:30 -0400

 On Jun 13,  7:55pm, sigmfsk@aol.com (sigmfsk@aol.com) wrote:
 -- Subject: port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled
 
 | >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).
 
 Can you try including <sys/device.h> in linux_sg.c before scsiconf.h
 and send a patch?
 
 christos