From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 08:51:21 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B5AB16A4CE for ; Thu, 10 Feb 2005 08:51:21 +0000 (GMT) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5685443D1F for ; Thu, 10 Feb 2005 08:51:21 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.43) id 1CzA2f-0000ox-QZ; Thu, 10 Feb 2005 01:51:19 -0700 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619) Message-Id: From: Chad Leigh -- Shire.Net LLC Date: Thu, 10 Feb 2005 01:51:16 -0700 To: Josh Paetzel , r p X-Mailer: Apple Mail (2.619) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on hobbiton.shire.net X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50 autolearn=disabled version=3.0.0 X-Spam-Level: X-SA-Exim-Version: 4.1+cvs (built Mon, 23 Aug 2004 08:44:05 -0700) X-SA-Exim-Scanned: Yes (on hobbiton.shire.net) cc: freebsd-questions@freebsd.org Subject: Re: jail manpage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 08:51:21 -0000 On Feb 10, 2005, at 12:50 AM, r p wrote: >> On Wed, 9 Feb 2005 14:12:06 -0600, Josh Paetzel > wrote: >>> I've been trying get jails working on my 5.3-RELEASE-p2 machine. >>> I've tried following the instructions in man 8 jail >>> >>> D=/here/is/the/jail >>> cd /usr/src >>> mkdir -p $D >>> make world DESTDIR=$D >>> cd etc >>> make distribution DESTDIR=$D >>> mount_devfs devfs $D/dev >>> cd $D >>> ln -sf dev/null kernel >>> >>> It dies at make world DESTDIR=$D with the following error: >>> >>> cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include >>> c/usr/src/games/fortune/strfile/strfile.c >>> >>> make: don't know how to make /jail/test/usr/lib/libc.a. Stop >>> ***Error code 2 >>> Stopping /usr/src > > Hi, > > I had the same problem. Googling showd me to use the line "env > DESTDIR=$D make world" instead of "make world DESTDIR=$D". After I did > this it all worked fine. Hmm, I will have to try that. I posted this same problem a few days ago. Never did get an answer, though I figured out a solution myself. This problem actually goes back to when 5.3 first came out. There was a problem and the fix got committed to the -STABLE branch but it appears it never got into the -RELEASE branch. I went to 5.3-RELEASE-p5 about a week ago and had a similar or same problem as the OP. My solution was to take the Makefile and Makefile.inc from the root of the source directory from a -STABLE src tree and stick them in my -RELEASE source tree. That allowed me to build fine and the jails work just fine. Of course, this is not the best solution. Chad