From dima@chg.ru  Fri Mar 30 03:38:43 2001
Return-Path: <dima@chg.ru>
Received: from chg.ru (netserv1.chg.ru [193.233.46.3])
	by hub.freebsd.org (Postfix) with ESMTP id 25D2A37B719
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Mar 2001 03:38:42 -0800 (PST)
	(envelope-from dima@chg.ru)
Received: (from dima@localhost)
	by chg.ru (8.9.3/8.9.3) id PAA65237;
	Fri, 30 Mar 2001 15:38:39 +0400 (MSD)
	(envelope-from dima)
Message-Id: <200103301138.PAA65237@chg.ru>
Date: Fri, 30 Mar 2001 15:38:39 +0400 (MSD)
From:   <dima@Chg.RU>
Reply-To: dima@Chg.RU
To: FreeBSD-gnats-submit@freebsd.org
Subject: Incorrect way to start SVR4 emulation on boot
X-Send-Pr-Version: 3.2

>Number:         26215
>Category:       conf
>Synopsis:       Incorrect way to start SVR4 emulation on boot
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    newton
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 30 03:40:01 PST 2001
>Closed-Date:    Sun Apr 15 00:18:37 PDT 2001
>Last-Modified:  Sun Apr 15 00:19:01 PDT 2001
>Originator:     Dmitry Sivachenko
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:

Recent FreeBSD-STABLE

>Description:

svr4.ko requires streams.ko to be loaded.
/usr/sbin/svr4 takes care of this.
/usr/sbin/svr4 should be used in /etc/rc instead of 'kldload svr4'.

>How-To-Repeat:

Add svr4_enable="YES" in /etc/rc.conf and reboot.
An error occurs while loading svr4.ko.

>Fix:
	
--- rc.orig	Fri Mar 30 15:31:35 2001
+++ rc	Fri Mar 30 15:31:46 2001
@@ -622,7 +622,7 @@
 #
 case ${svr4_enable} in
 [Yy][Ee][Ss])
-	echo -n ' svr4';	kldload svr4 > /dev/null 2>&1
+	echo -n ' svr4';	svr4 > /dev/null 2>&1
 	;;
 esac
 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->newton 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Apr 4 22:07:41 PDT 2001 
Responsible-Changed-Why:  

Word is that Mr. Newton is knowledgeable in this area 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26215 

From: <newton@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: dima@Chg.RU
Subject: Re: conf/26215: Incorrect way to start SVR4 emulation on boot
Date: Mon, 9 Apr 2001 15:40:01 -0700 (PDT)

 In PR conf/26215, you wrote:
 
  > Release
  >     FreeBSD 3.3-RELEASE i386
 
 Are you sure about this?  svr4 wasn't released until 4.0.
 
 At the time it was released, the module was loaded from rc.i386, and it
 used the svr4(8) script in the manner you've suggesed in the fix attached
 to conf/26215.
 
 Sheldon Hearn did a rearrangement of rc and rc.i386 on 18 Aug 2000, when
 he moved svr4 and linux into /etc/rc and used kldload to load them instead
 of the svr4 script.  At a similar time, it was noted that the module
 dependency system was able to work out that svr4 required stremas, and 
 the /usr/sbin/svr4 shell script was removed.
 
 The fact that you've said you're running 3.3-RELEASE leaves me wondering
 which version you're *really* running -- If it really is 3.3-RELEASE, then
 you'll be using the old LKM interface, and "kldload svr4" in /etc/rc
 won't really be appropriate, but you'd know that anyway because you're 
 well-versed enough in rocket-science to run the module on an unsupported
 OS :-)  
 
 If you're really running 4.x, then this PR should be a non-event on a 
 recent enough -current (say, 18 Aug 2000) because modules understand how
 to load their own dependencies.  If you don't believe that's the case,
 I'll blow the dust off my test box and put today's -current on it and 
 work outwhere the problem lies, but I believe it should be a non-event.
 
 If your 4.x is older than that, you might have problems because module
 dependencies weren't quite working the way they do now.  If that's the case,
 then yes, the suggested fix is correct.
 
 So -- Can you please let me know what version of FreeBSD you're running?
 That's really what I need to work out what (if anything) needs to be committed
 to fix this.
 
    - mark
 
 --------------------------------------------------------------------
 I tried an internal modem,                    newton@atdot.dotat.org
      but it hurt when I walked.                          Mark Newton
 ----- Voice: +61-4-1620-2223 ------------- Fax: +61-8-82231777 -----
 

From: =?koi8-r?B?5M3J1NLJyiDzydfB3sXOy88=?= <dima@Chg.RU>
To: newton@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org, dima@Chg.RU
Subject: Re: conf/26215: Incorrect way to start SVR4 emulation on boot
Date: Tue, 10 Apr 2001 12:47:05 +0400

 I am running 4.3-BETA as of March 23.
 
 --dima
 
 PS: I just submitted this PR from machine running 3.3-RELEASE...
 
 
 On Mon, Apr 09, 2001 at 03:40:01PM -0700, newton@FreeBSD.org wrote:
 > In PR conf/26215, you wrote:
 > 
 >  > Release
 >  >     FreeBSD 3.3-RELEASE i386
 > 
 > Are you sure about this?  svr4 wasn't released until 4.0.
 > 
 > At the time it was released, the module was loaded from rc.i386, and it
 > used the svr4(8) script in the manner you've suggesed in the fix attached
 > to conf/26215.
 > 
 > Sheldon Hearn did a rearrangement of rc and rc.i386 on 18 Aug 2000, when
 > he moved svr4 and linux into /etc/rc and used kldload to load them instead
 > of the svr4 script.  At a similar time, it was noted that the module
 > dependency system was able to work out that svr4 required stremas, and 
 > the /usr/sbin/svr4 shell script was removed.
 > 
 > The fact that you've said you're running 3.3-RELEASE leaves me wondering
 > which version you're *really* running -- If it really is 3.3-RELEASE, then
 > you'll be using the old LKM interface, and "kldload svr4" in /etc/rc
 > won't really be appropriate, but you'd know that anyway because you're 
 > well-versed enough in rocket-science to run the module on an unsupported
 > OS :-)  
 > 
 > If you're really running 4.x, then this PR should be a non-event on a 
 > recent enough -current (say, 18 Aug 2000) because modules understand how
 > to load their own dependencies.  If you don't believe that's the case,
 > I'll blow the dust off my test box and put today's -current on it and 
 > work outwhere the problem lies, but I believe it should be a non-event.
 > 
 > If your 4.x is older than that, you might have problems because module
 > dependencies weren't quite working the way they do now.  If that's the case,
 > then yes, the suggested fix is correct.
 > 
 > So -- Can you please let me know what version of FreeBSD you're running?
 > That's really what I need to work out what (if anything) needs to be committed
 > to fix this.
 > 
 >    - mark
 > 
 > --------------------------------------------------------------------
 > I tried an internal modem,                    newton@atdot.dotat.org
 >      but it hurt when I walked.                          Mark Newton
 > ----- Voice: +61-4-1620-2223 ------------- Fax: +61-8-82231777 -----
 > 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sun Apr 15 00:18:37 PDT 2001 
State-Changed-Why:  
A fix was committed to -current and -stable yesterday, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26215 
>Unformatted:
