problems getting a jail running on 5.3-RELEASE using man 8 jail

Josh Paetzel josh at
Thu Feb 17 19:10:10 GMT 2005

I am running a 5.3-RELEASE-p5 machine.

$uname -a
FreeBSD 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Wed 
Feb  9 16:54:40 CST 2005     
jpaetzel at  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:

#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
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 


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.


Josh Paetzel
-------------- next part --------------
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 at
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
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 805240832 (767 MB)
avail memory = 774049792 (738 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <GBT AWRDACPI> 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: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x50e0-0x50ff,0x5000-0x50df,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <AMD 762 host to AGP bridge> port 0xc000-0xc003 mem 0xfc000000-0xfc000fff,0xe8000000-0xefffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce FX 5700LE> mem 0xf0000000-0xf7ffffff,0xf8000000-0xf8ffffff irq 17 at device 5.0 on pci1
nvidia0: [GIANT-LOCKED]
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 768 UDMA100 controller> 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: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci2: <ACPI PCI bus> on pcib2
ohci0: <OHCI (generic) USB controller> mem 0xfb025000-0xfb025fff irq 19 at device 0.0 on pci2
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> 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: <Creative EMU10K1> port 0x9000-0x901f irq 18 at device 6.0 on pci2
pcm0: <eMicro EM28028 AC97 Codec>
fxp0: <Intel 82550 Pro/100 Ethernet> port 0x9800-0x983f mem 0xfb000000-0xfb01ffff,0xfb024000-0xfb024fff irq 16 at device 7.0 on pci2
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:0d:61:20:2d:ad
atapci1: <Promise PDC20276 UDMA133 controller> 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: <floppy drive controller> 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: <Standard parallel printer port> port 0x778-0x77b,0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xd0000-0xd27ff on isa0
pmtimer0 on isa0
sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
ad0: 76319MB <WDC WD800JB-00CRA1/17.07W17> [155061/16/63] at ata0-master UDMA100
acd0: DVDROM <LITEON DVD-ROM LTD163D/GHR3> at ata1-master UDMA33
acd1: CDRW <SONY CD-RW CRX195E1/ZYS5> at ata1-slave UDMA33
ad4: 76319MB <WDC WD800BB-00DAA3/75.13B75> [155061/16/63] at ata2-master UDMA100
ad6: 76319MB <WDC WD800BB-00CAA1/17.07W17> [155061/16/63] at ata3-master UDMA100
ar0: 76293MB <ATA RAID1 array> [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

More information about the freebsd-questions mailing list