From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 19:10:10 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 990AE16A4CF for ; Thu, 17 Feb 2005 19:10:10 +0000 (GMT) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C6F343D3F for ; Thu, 17 Feb 2005 19:10:08 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from twinmp (12-218-21-193.client.mchsi.com[12.218.21.193]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20050217191005m9100ouerbe>; Thu, 17 Feb 2005 19:10:05 +0000 From: Josh Paetzel To: freebsd-questions@freebsd.org Date: Thu, 17 Feb 2005 13:10:03 -0600 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_LwOFCYhkUmP05Ck" Message-Id: <200502171310.03383.josh@tcbug.org> Subject: 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:10:10 -0000 --Boundary-00=_LwOFCYhkUmP05Ck Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --Boundary-00=_LwOFCYhkUmP05Ck Content-Type: text/plain; charset="us-ascii"; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmesg.txt" Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE-p5 #0: Wed Feb 9 16:54:40 CST 2005 jpaetzel@twinmp.tcbug.org:/usr/obj/usr/src/sys/TWINMP Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) MP 2400+ (2000.08-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Features=0x383fbff AMD Features=0xc0480000 real memory = 805240832 (767 MB) avail memory = 774049792 (738 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0x50e0-0x50ff,0x5000-0x50df,0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: port 0xc000-0xc003 mem 0xfc000000-0xfc000fff,0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xf0000000-0xf7ffffff,0xf8000000-0xf8ffffff irq 17 at device 5.0 on pci1 nvidia0: [GIANT-LOCKED] isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 7.3 (no driver attached) pcib2: at device 16.0 on pci0 pci2: on pcib2 ohci0: mem 0xfb025000-0xfb025fff irq 19 at device 0.0 on pci2 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/13.20, addr 2, iclass 3/1 ums0: 4 buttons and Z dir. pcm0: port 0x9000-0x901f irq 18 at device 6.0 on pci2 pcm0: fxp0: port 0x9800-0x983f mem 0xfb000000-0xfb01ffff,0xfb024000-0xfb024fff irq 16 at device 7.0 on pci2 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:0d:61:20:2d:ad atapci1: port 0xac00-0xac0f,0xa800-0xa803,0xa400-0xa407,0xa000-0xa003,0x9c00-0x9c07 mem 0xfb020000-0xfb023fff irq 18 at device 8.0 on pci2 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x778-0x77b,0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xd0000-0xd27ff on isa0 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec ad0: 76319MB [155061/16/63] at ata0-master UDMA100 acd0: DVDROM at ata1-master UDMA33 acd1: CDRW at ata1-slave UDMA33 ad4: 76319MB [155061/16/63] at ata2-master UDMA100 ad6: 76319MB [155061/16/63] at ata3-master UDMA100 ar0: 76293MB [9726/255/63] status: READY subdisks: disk0 READY on ad4 at ata2-master disk1 READY on ad6 at ata3-master SMP: AP CPU #1 Launched! Mounting root from ufs:/dev/ad0s2a --Boundary-00=_LwOFCYhkUmP05Ck--