From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 19:46:26 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 B3ED716A4CE for ; Thu, 17 Feb 2005 19:46:26 +0000 (GMT) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66AF243D54 for ; Thu, 17 Feb 2005 19:46:26 +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 1D1rbQ-0009ch-Mc; Thu, 17 Feb 2005 12:46:24 -0700 In-Reply-To: <33170.146.6.178.5.1108668417.squirrel@mail.cm.utexas.edu> References: <200502171310.03383.josh@tcbug.org> <33170.146.6.178.5.1108668417.squirrel@mail.cm.utexas.edu> Mime-Version: 1.0 (Apple Message framework v619.2) Message-Id: From: Chad Leigh -- Shire.Net LLC Date: Thu, 17 Feb 2005 12:46:19 -0700 To: virenp@cm.utexas.edu X-Mailer: Apple Mail (2.619.2) 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: Josh Paetzel cc: freebsd-questions@freebsd.org Subject: Re: problems getting a jail running on 5.3-RELEASE using man 8 jail 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, 17 Feb 2005 19:46:26 -0000 Sorry to top post but this is general info There is a bug in 5.3-RELEASE make files that has been fixed in -STABLE. See the archives for previous discussions on this. Chad On Feb 17, 2005, at 12:26 PM, Viren Patel wrote: >> I am running a 5.3-RELEASE-p5 machine. >> >> $uname -a >> FreeBSD twinmp.tcbug.org 5.3-RELEASE-p5 FreeBSD >> 5.3-RELEASE-p5 #0: Wed >> Feb 9 16:54:40 CST 2005 >> jpaetzel@twinmp.tcbug.org:/usr/obj/usr/src/sys/TWINMP >> i386 >> >> Hardware is basic PC sound/lan/video, 4 IDE channels, dual >> AMD MP >> processors. dmesg is attached. >> >> I am following the following procedure in the jail >> manpage: >> >> #D=/usr/local/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 >> >> I get to: >> #make world DESTDIR=$D >> and the compile fails at the following point: >> >> ===> games/fortune/strfile >> /usr/obj/usr/src/i386/usr/src/games/fortune/strfile >> created >> for /usr/src/games/fortune/strfile >> rm -f .depend >> mkdep -f .depend -a >> -I/usr/obj/usr/src/i386/legacy/usr/include >> /usr/src/games/fortune/strfile/strfile.c >> echo >> strfile: /storage/jail/usr/lib/libc.a >> /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >>>> .depend >> cc -O -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 /storage/jail/usr/lib/libc.a. >> Stop >> *** Error code 2 >> >> Stop in /usr/src. >> *** Error code 1 >> >> Stop in /usr/src. >> *** Error code 1 >> >> Stop in /usr/src. >> >> This is reproducable on my hardware with RELEASE-5.3, >> RELEASE-5.3-p2 >> and RELEASE-5.3-p5. I found an email in the -questions >> mailing list >> in which the author has the same errors that I do >> attempting to build >> world. >> >> >> >> If I replace: >> #make world DESTDIR=$D with >> #env DESTDIR=$D make world everything goes fine. >> >> (just for kicks I tested with /bin/sh /bin/csh and >> /usr/local/etc/zsh) >> >> I considered sending a patch for man 8 jail but thought it >> would be >> better to get input first. If a solution isn't found I'll >> send-pr >> the docproj with a patch. >> >> -- >> Thanks, >> >> Josh Paetzel >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > Hello. I have also had success with: > > #/bin/tcsh > #setenv DESTDIR /path/to/jail > then follow the instructions for "Setting up a Jail > Directory Tree". > > FYI: also look at "Managing Jails on FreeBSD 5" at > http://www.devco.net - invaluable and should be added, if > possible, to the jail man pages IMHO. > > -- > Viren Patel > Chemistry & Biochemistry > University of Texas at Austin > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"