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: None <SigmFSK@aol.com>
List: netbsd-bugs
Date: 06/14/2006 03:00:04
The following reply was made to PR port-sun3/33721; it has been noted by GNATS.
From: SigmFSK@aol.com
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 22:56:13 EDT
-------------------------------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> =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, 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>| >Number: =
;=20
33721<BR>| >Category: &nb=
sp;=20
port-sun3<BR>| >Synopsis: Kernel cannot be bu=
ilt=20
with COMPAT_LINUX enabled<BR>| >Confidential: no<BR>|=20
>Severity: non-critical<BR>| >Priority:&nb=
sp;=20
low<BR>| >Responsible: =20
port-sun3-maintainer<BR>| >State: =20
open<BR>| >Class: sw-bug<BR>|=20
>Submitter-Id: net<BR>| >Arrival-Date: Tue J=
un=20
13 19:55:00 +0000 2006<BR>| >Originator: Arthur=20
Townsend<BR>| >Release: 3.0<BR>|=20
>Organization:<BR>| >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>| >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. I just uncommented all the COMPAT_xxxxx lines in th=
e=20
kernel, and the build failed. I really only needed COMPAT_SUNOS.<BR>=
|=20
>How-To-Repeat:<BR>| Uncomment COMPAT_SVR4 and COMPAT_LINUX and rebuild=
=20
kernel. (probably only need to uncomment COMPAT_LINUX).<BR><BR>Can y=
ou=20
try including <sys/device.h> 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> </DIV>
<DIV>I'm still new to NetBSD and am currently running NetBSD 3.0 for=20
Sun3 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. Can you make this=20
suggested patch contribution for me?</DIV>
<DIV>thanks,</DIV>
<DIV>arthur</DIV></FONT></BODY></HTML>
-------------------------------1150253773--