From nobody@FreeBSD.org  Fri Jun 26 15:52:48 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B0595106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jun 2009 15:52:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6FC598FC23
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jun 2009 15:52:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5QFql3B083531
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jun 2009 15:52:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5QFqlEh083530;
	Fri, 26 Jun 2009 15:52:47 GMT
	(envelope-from nobody)
Message-Id: <200906261552.n5QFqlEh083530@www.freebsd.org>
Date: Fri, 26 Jun 2009 15:52:47 GMT
From: Scot Hetzel <swhetzel@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 8.0-CURRENT  fails to build boot_crunch binaries (make release.4)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136071
>Category:       bin
>Synopsis:       [build] 8.0-CURRENT fails to build boot_crunch binaries (make release.4)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    jamie
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 26 16:00:05 UTC 2009
>Closed-Date:    Mon Jul 06 17:21:14 UTC 2009
>Last-Modified:  Mon Jul 06 17:21:14 UTC 2009
>Originator:     Scot Hetzel
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010.hetzel.org 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Thu Jun 25 23:09:40 CDT 2009     root@hp010.hetzel.org:/usr/obj/usr/src/8x-zfs/sys/DV8135NR  amd64

>Description:
While performing a 'make release ...', the build failed when generating the boot_crunch binary (release.4) because jail_getid and jail_errmsg  were not found in any of the required libraries used to link ifconfig.lo to the boot_crunch binary.  The cause of the build failure was due to a missing dependency on the jail library in the /usr/src/release/{arch}/boot_crunch.conf file.


>How-To-Repeat:
cd /usr/src
make buildworld
cd /usr/src/release
make release CVSROOT=/home/ncvs CHROOTDIR=/path/to/release/dir
>Fix:
The attached patch adds -ljail to the /usr/src/release/{arch}/boot_crunch.conf files.

Patch attached with submission follows:

Index: amd64/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/amd64/boot_crunch.conf,v
retrieving revision 1.66
diff -u -r1.66 boot_crunch.conf
--- amd64/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.66
+++ amd64/boot_crunch.conf	26 Jun 2009 15:20:04 -0000
@@ -42,4 +42,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
-libs -lbsdxml -larchive -lbz2 -lusb
+libs -lbsdxml -larchive -lbz2 -lusb -ljail
Index: i386/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/i386/boot_crunch.conf,v
retrieving revision 1.66
diff -u -r1.66 boot_crunch.conf
--- i386/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.66
+++ i386/boot_crunch.conf	26 Jun 2009 15:20:22 -0000
@@ -42,4 +42,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
-libs -lbsdxml -larchive -lbz2 -lusb
+libs -lbsdxml -larchive -lbz2 -lusb -ljail
Index: ia64/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/ia64/boot_crunch.conf,v
retrieving revision 1.17
diff -u -r1.17 boot_crunch.conf
--- ia64/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.17
+++ ia64/boot_crunch.conf	26 Jun 2009 15:22:01 -0000
@@ -46,4 +46,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs -ldevinfo
-libs -lgeom -lbsdxml -larchive -lbz2 -lusb
+libs -lgeom -lbsdxml -larchive -lbz2 -lusb -ljail
Index: pc98/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/pc98/boot_crunch.conf,v
retrieving revision 1.65
diff -u -r1.65 boot_crunch.conf
--- pc98/boot_crunch.conf	20 Aug 2008 13:35:39 -0000	1.65
+++ pc98/boot_crunch.conf	26 Jun 2009 15:22:13 -0000
@@ -41,4 +41,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2
+libs -larchive -lbz2 -ljail
Index: powerpc/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/powerpc/boot_crunch.conf,v
retrieving revision 1.9
diff -u -r1.9 boot_crunch.conf
--- powerpc/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.9
+++ powerpc/boot_crunch.conf	26 Jun 2009 15:22:21 -0000
@@ -44,4 +44,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs
-libs -lbsdxml -larchive -lbz2 -lusb
+libs -lbsdxml -larchive -lbz2 -lusb -ljail
Index: sparc64/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/sparc64/boot_crunch.conf,v
retrieving revision 1.13
diff -u -r1.13 boot_crunch.conf
--- sparc64/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.13
+++ sparc64/boot_crunch.conf	26 Jun 2009 15:22:30 -0000
@@ -42,4 +42,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2 -lusb
+libs -larchive -lbz2 -lusb -ljail
Index: sun4v/boot_crunch.conf
===================================================================
RCS file: /home/ncvs/src/release/sun4v/boot_crunch.conf,v
retrieving revision 1.6
diff -u -r1.6 boot_crunch.conf
--- sun4v/boot_crunch.conf	9 Mar 2009 17:05:31 -0000	1.6
+++ sun4v/boot_crunch.conf	26 Jun 2009 15:22:38 -0000
@@ -42,4 +42,4 @@
 
 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2 -lusb
+libs -larchive -lbz2 -lusb -ljail


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jamie 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Jun 27 10:28:50 UTC 2009 
Responsible-Changed-Why:  
Jamie can you check the patch and if ok, get it comitted? 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/136071: commit references a PR
Date: Mon, 29 Jun 2009 13:59:40 +0000 (UTC)

 Author: jamie
 Date: Mon Jun 29 13:59:30 2009
 New Revision: 195156
 URL: http://svn.freebsd.org/changeset/base/195156
 
 Log:
   Add libjail to the boot_crunch binaries (for ifconfig).
   
   PR:		136071
   Submitted by:	Scot Hetzel
   Approved by:	re (kensmith), bz (mentor)
 
 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf
 
 Modified: head/release/amd64/boot_crunch.conf
 ==============================================================================
 --- head/release/amd64/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/amd64/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -42,4 +42,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb
 +libs -lbsdxml -larchive -lbz2 -lusb -ljail
 
 Modified: head/release/i386/boot_crunch.conf
 ==============================================================================
 --- head/release/i386/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/i386/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -42,4 +42,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb
 +libs -lbsdxml -larchive -lbz2 -lusb -ljail
 
 Modified: head/release/ia64/boot_crunch.conf
 ==============================================================================
 --- head/release/ia64/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/ia64/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -46,4 +46,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs -ldevinfo
 -libs -lgeom -lbsdxml -larchive -lbz2 -lusb
 +libs -lgeom -lbsdxml -larchive -lbz2 -lusb -ljail
 
 Modified: head/release/pc98/boot_crunch.conf
 ==============================================================================
 --- head/release/pc98/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/pc98/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -41,4 +41,4 @@ progs sysinstall
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
 -libs -larchive -lbz2
 +libs -larchive -lbz2 -ljail
 
 Modified: head/release/powerpc/boot_crunch.conf
 ==============================================================================
 --- head/release/powerpc/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/powerpc/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -44,4 +44,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs
 -libs -lbsdxml -larchive -lbz2 -lusb
 +libs -lbsdxml -larchive -lbz2 -lusb -ljail
 
 Modified: head/release/sparc64/boot_crunch.conf
 ==============================================================================
 --- head/release/sparc64/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/sparc64/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -42,4 +42,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
 -libs -larchive -lbz2 -lusb
 +libs -larchive -lbz2 -lusb -ljail
 
 Modified: head/release/sun4v/boot_crunch.conf
 ==============================================================================
 --- head/release/sun4v/boot_crunch.conf	Mon Jun 29 10:59:36 2009	(r195155)
 +++ head/release/sun4v/boot_crunch.conf	Mon Jun 29 13:59:30 2009	(r195156)
 @@ -42,4 +42,4 @@ progs usbconfig
  
  libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
 -libs -larchive -lbz2 -lusb
 +libs -larchive -lbz2 -lusb -ljail
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: jamie 
State-Changed-When: Mon Jul 6 16:59:38 UTC 2009 
State-Changed-Why:  
Fixed with suggested patch. 

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