From jeremyp@gsmx07.alcatel.com.au  Mon Jan  3 17:12:31 2000
Return-Path: <jeremyp@gsmx07.alcatel.com.au>
Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10])
	by hub.freebsd.org (Postfix) with ESMTP id 0786714BCD
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Mon,  3 Jan 2000 17:12:28 -0800 (PST)
	(envelope-from jeremyp@gsmx07.alcatel.com.au)
Received: by border.alcanet.com.au id <40325>; Tue, 4 Jan 2000 12:05:11 +1100
Message-Id: <00Jan4.120511est.40325@border.alcanet.com.au>
Date: Tue, 4 Jan 2000 12:05:10 +1100
From: peter.jeremy@ALCATEL.COM.AU
Sender: jeremyp@gsmx07.alcatel.com.au
To: freefall-gnats@gsmx07.alcatel.com.au
Subject: PicoBSD Kernel link fails
X-Send-Pr-Version: 3.2

>Number:         15870
>Category:       kern
>Synopsis:       PicoBSD Kernel link fails
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    small
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan  3 17:20:00 PST 2000
>Closed-Date:    Mon Dec 18 11:07:25 PST 2000
>Last-Modified:  Sat Aug 24 19:45:12 PDT 2002
>Originator:     Peter Jeremy
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Alcatel Australia Limited
>Environment:

	Host is pre-signal-change -current building PicoBSD from
	the latest -current.

>Description:

	When building PicoBSD, the build script defines a global
	variable $SIZE to hold the MFS size.  The same variable is
	used by the kernel Makefile to refer to the size(1) command.
	This causes the kernel link step to fail as follows:
linking kernel
2400: not found
*** Error code 127

	The fix is to unset SIZE before the kernel build.

	In addition, the command `make depend all' is not safe
	because the updated dependency list will not be re-read
	between the `depend' and `all' steps.  This should be
	run as two separate makes.

>How-To-Repeat:

	# ed /usr/src/release/picobsd/dial/PICOBSD
	g/wd/s/^/#
	/wcd0/s/^/#
	w
	q
	# cd /usr/src/release/picobsd/build
	# sh build.sh
	Select "just build it"

>Fix:

Index: src/release/picobsd/build/Makefile.conf
===================================================================
RCS file: /home/CVSROOT/src/release/picobsd/build/Makefile.conf,v
retrieving revision 1.4
diff -u -r1.4 Makefile.conf
--- Makefile.conf	1999/11/30 21:41:11	1.4
+++ Makefile.conf	1999/12/22 20:25:24
@@ -17,5 +17,6 @@
 	(cd ${CONF}; \
 	config ${CONFFILE}; \
 	cd ${COMPILE}; \
-	make depend all)
+	unset SIZE; \
+	make depend && make all)
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-small 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Aug 24 04:28:40 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer group. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15870 
State-Changed-From-To: open->feedback 
State-Changed-By: joe 
State-Changed-When: Sun Nov 5 04:39:04 PST 2000 
State-Changed-Why:  
Recent changes have harnessed the 'make buildkernel' target, 
and I've not seen the bug mentioned here.  Is it still an 
issue? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15870 
State-Changed-From-To: feedback->closed 
State-Changed-By: joe 
State-Changed-When: Mon Dec 18 11:07:25 PST 2000 
State-Changed-Why:  
Requested feedback wasn't received. 
I don't believe that this is an issue anymore.  If it is please 
open another PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15870 
Responsible-Changed-From-To: freebsd-small->small 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sat Aug 24 19:44:48 PDT 2002 
Responsible-Changed-Why:  
Use short names for mailing list to make searches    
using the web query form work with the shown responsible. 


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