Subject: Re: port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled
To: None <gnats-bugs@netbsd.org, port-sun3-maintainer@netbsd.org,>
From: None <SigmFSK@aol.com>
List: netbsd-bugs
Date: 06/13/2006 22:56:13
-------------------------------1150253773
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

 
In a message dated 6/13/2006 6:10:10 P.M. Eastern Standard Time,  
christos@zoulas.com writes:

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



Hi Christos:
Adding the line per your suggestion enabled "make" to complete a successful  
build.
 
I'm still new to NetBSD and am currently running NetBSD 3.0 for  Sun3 inside 
the TME Sun3 emulator and don't have an easy way to export the  patch 
differences from TME to the netbsd web-site.  Can you make this  suggested patch 
contribution for me?
thanks,
arthur

-------------------------------1150253773
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DUS-ASCII">
<META content=3D"MSHTML 6.00.5296.0" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY:=20=
Arial"=20
bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT id=3Drol=
e_document=20
face=3DArial color=3D#000000 size=3D2>
<DIV>
<DIV>In a message dated 6/13/2006 6:10:10 P.M. Eastern Standard Time,=20
christos@zoulas.com writes:</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: blue 2px solid"><=
FONT=20
  style=3D"BACKGROUND-COLOR: transparent" face=3DArial color=3D#000000 size=
=3D2>The=20
  following reply was made to PR port-sun3/33721; it has been noted by=20
  GNATS.<BR><BR>From: christos@zoulas.com (Christos Zoulas)<BR>To:=20
  gnats-bugs@NetBSD.org, port-sun3-maintainer@netbsd.org,<BR>&nbsp; &nbsp;=20
  gnats-admin@netbsd.org, netbsd-bugs@netbsd.org<BR>Cc: <BR>Subject: Re:=20
  port-sun3/33721: Kernel cannot be built with COMPAT_LINUX enabled<BR>Date:=
=20
  Tue, 13 Jun 2006 18:05:30 -0400<BR><BR>On Jun 13,&nbsp; 7:55pm,=20
  sigmfsk@aol.com (sigmfsk@aol.com) wrote:<BR>-- Subject: port-sun3/33721:=20
  Kernel cannot be built with COMPAT_LINUX enabled<BR><BR>| &gt;Number:&nbsp=
;=20
  &nbsp; &nbsp; &nbsp;&nbsp; 33721<BR>| &gt;Category:&nbsp; &nbsp; &nbsp;&nb=
sp;=20
  port-sun3<BR>| &gt;Synopsis:&nbsp; &nbsp; &nbsp;&nbsp; Kernel cannot be bu=
ilt=20
  with COMPAT_LINUX enabled<BR>| &gt;Confidential:&nbsp;&nbsp; no<BR>|=20
  &gt;Severity:&nbsp; &nbsp; &nbsp;&nbsp; non-critical<BR>| &gt;Priority:&nb=
sp;=20
  &nbsp; &nbsp;&nbsp; low<BR>| &gt;Responsible:&nbsp; &nbsp;=20
  port-sun3-maintainer<BR>| &gt;State:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
  open<BR>| &gt;Class:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sw-bug<BR>|=20
  &gt;Submitter-Id:&nbsp;&nbsp; net<BR>| &gt;Arrival-Date:&nbsp;&nbsp; Tue J=
un=20
  13 19:55:00 +0000 2006<BR>| &gt;Originator:&nbsp; &nbsp;&nbsp; Arthur=20
  Townsend<BR>| &gt;Release:&nbsp; &nbsp; &nbsp; &nbsp; 3.0<BR>|=20
  &gt;Organization:<BR>| &gt;Environment:<BR>| NetBSD 3.0 NetBSD 3.0 (WITHSU=
NOS)=20
  #0: Mon Jun 12 22:40:11 EDT 2006=20
  root@:/usr/src/sys/arch/sun3/compile/WITHSUNOS sun3<BR>| &gt;Description:<=
BR>|=20
  If updating the kernel by UNcommenting COMPAT_SVR4 and COMPAT_LINUX, then=20
  rebuilding the kernel, the build fails at:<BR>| In file included from=20
  ../../../../compat/linux/common/linux_sg.c:41:=20
  ../../../../dev/scsipi/scsiconf.h:65: error: field 'sc_dev' has incomplete=
=20
  type<BR>| *** Error Code 1<BR>| Stop.<BR>| <BR>| I do not have an arguable=
=20
  need to do this.&nbsp; I just uncommented all the COMPAT_xxxxx lines in th=
e=20
  kernel, and the build failed.&nbsp; I really only needed COMPAT_SUNOS.<BR>=
|=20
  &gt;How-To-Repeat:<BR>| Uncomment COMPAT_SVR4 and COMPAT_LINUX and rebuild=
=20
  kernel.&nbsp; (probably only need to uncomment COMPAT_LINUX).<BR><BR>Can y=
ou=20
  try including &lt;sys/device.h&gt; in linux_sg.c before scsiconf.h<BR>and=20=
send=20
  a patch?<BR><BR>christos<BR></FONT></BLOCKQUOTE></DIV>
<DIV></DIV>
<DIV>Hi Christos:</DIV>
<DIV>Adding the line per your suggestion enabled "make" to complete a succes=
sful=20
build.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm still new to NetBSD and am currently running&nbsp;NetBSD 3.0 for=20
Sun3&nbsp;inside the TME Sun3 emulator and don't have an easy way to export=20=
the=20
patch differences from TME to the netbsd web-site.&nbsp; Can you make this=20
suggested patch contribution for me?</DIV>
<DIV>thanks,</DIV>
<DIV>arthur</DIV></FONT></BODY></HTML>

-------------------------------1150253773--