Bug #308
closedmake world + jail issues
0%
Description
I'm having some issues attempting to build a jail per the jail(8) man
page, following through the steps outlined there I've hit a few
issues.
Once I get to building the world. i.e. 'make world
DESTDIR=/usr/jailroot' I've fallen on some issues, all of which appear
to be related to paths;
First run 'install' threw an error 64 part way through because it
couldn't find one of the destination directories, solved by doing
'mkdir /usr/jailroot/usr ; mkdir /usr/jailroot/usr/include'.
Next run 'install' error code 64 again at a different stage, 'mkdir
/usr/jailroot/usr/libdata'
After these issues are bypassed I hit the following error;
mkdep -f .depend -a
-I/usr/obj/usr/src/world_i386/usr/src/gnu/usr.bin/cc34/cc
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/.
.//../cc_prep
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep/conf
- Error code 1
ig -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.
4/gcc -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc
-3.4/gcc/config
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../c
ontrib/gcc-3.4/include -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\"
-DPREFIX1=\"/usr\" -DPREFIX2=\"/usr\" -DSTACK_PROTECTOR
-DHAVE_STDLIB_H -DHAVE_STRING_H -DGENERATOR_FILE -I.
/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/
gengenrtl.c
Stop in /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl.
- Error code 1
- Error code 1
- Error code 1
- Error code 1
- Error code 1
- Error code 1
Stop in /usr/src.
Any assistance greatly appreciated
Morgan
Updated by bill.marquette about 18 years ago
On 9/6/06, Morgan Reed <morgan.s.reed@gmail.com> wrote:
I'm having some issues attempting to build a jail per the jail(8) man
page, following through the steps outlined there I've hit a few
issues.Once I get to building the world. i.e. 'make world
DESTDIR=/usr/jailroot' I've fallen on some issues, all of which appear
to be related to paths;
First run 'install' threw an error 64 part way through because it
couldn't find one of the destination directories, solved by doing
'mkdir /usr/jailroot/usr ; mkdir /usr/jailroot/usr/include'.
Next run 'install' error code 64 again at a different stage, 'mkdir
/usr/jailroot/usr/libdata'After these issues are bypassed I hit the following error;
mkdep -f .depend -a
-I/usr/obj/usr/src/world_i386/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/.
.//../cc_prep
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep/config -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.
4/gcc -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc
-3.4/gcc/config
ontrib/gcc-3.4/include -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\"
-I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../c
-DPREFIX1=\"/usr\" -DPREFIX2=\"/usr\" -DSTACK_PROTECTOR
-DHAVE_STDLIB_H -DHAVE_STRING_H -DGENERATOR_FILE -I.
/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/
gengenrtl.cStop in /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl.
- Error code 1
Stop in /usr/src/gnu/usr.bin/cc34/cc_tools.
- Error code 1
Stop in /usr/src/gnu/lib/gcc34/libgcc.
- Error code 1
Stop in /usr/src.
- Error code 1
Stop in /usr/src.
- Error code 1
Stop in /usr/src.
- Error code 1
- Error code 1
Stop in /usr/src.
Any assistance greatly appreciated
Morgan
Good timing, I had the same issues myself last night and went to bed
rather than track them down :) Presumably, I'm at the needing to
mkdir /usr/jails/devel/usr/include step that you failed on first.
sh /usr/src/tools/install.sh -C -o root -g wheel -m 444
/usr/src/include/a.out.h /usr/src/include/ar.h
/usr/src/include/assert.h /usr/src/include/bitstring.h
/usr/src/include/complex.h /usr/src/include/cpio.h
/usr/src/include/ctype.h /usr/src/include/db.h
/usr/src/include/dirent.h /usr/src/include/disktab.h
/usr/src/include/dlfcn.h /usr/src/include/elf.h
/usr/src/include/elf-hints.h /usr/src/include/err.h
/usr/src/include/fnmatch.h /usr/src/include/fstab.h
/usr/src/include/fts.h /usr/src/include/getopt.h
/usr/src/include/glob.h /usr/src/include/grp.h
/usr/src/include/histedit.h /usr/src/include/iconv.h
/usr/src/include/ieeefp.h /usr/src/include/ifaddrs.h
/usr/src/include/iso646.h /usr/src/include/inttypes.h
/usr/src/include/langinfo.h /usr/src/include/libgen.h
/usr/src/include/limits.h /usr/src/include/link.h
/usr/src/include/locale.h /usr/src/include/malloc.h
/usr/src/include/math.h /usr/src/include/memory.h
/usr/src/include/mpool.h /usr/src/include/ndbm.h
/usr/src/include/netdb.h /usr/src/include/nl_types.h
/usr/src/include/nlist.h /usr/src/include/objformat.h
/usr/src/include/paths.h /usr/src/include/pthread.h
/usr/src/include/pthread_np.h /usr/src/include/pwd.h
/usr/src/include/ranlib.h /usr/src/include/readpassphrase.h
/usr/src/include/regex.h /usr/src/include/regexp.h
/usr/src/include/resolv.h /usr/src/include/re_comp.h
/usr/src/include/rmd160.h /usr/src/include/search.h
/usr/src/include/setjmp.h /usr/src/include/sgtty.h
/usr/src/include/signal.h /usr/src/include/stab.h
/usr/src/include/stdarg.h /usr/src/include/stdbool.h
/usr/src/include/stddef.h /usr/src/include/stdint.h
/usr/src/include/stdio.h /usr/src/include/stdlib.h
/usr/src/include/string.h /usr/src/include/stringlist.h
/usr/src/include/strings.h /usr/src/include/struct.h
/usr/src/include/sysexits.h /usr/src/include/tar.h
/usr/src/include/time.h /usr/src/include/timers.h
/usr/src/include/ttyent.h /usr/src/include/unistd.h
/usr/src/include/ulimit.h /usr/src/include/utime.h
/usr/src/include/utmp.h /usr/src/include/vis.h
/usr/src/include/wchar.h /usr/src/include/wctype.h osreldate.h
/usr/jails/devel/usr/include
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
- Error code 64
- Error code 1
- Error code 1
- Error code 1
- Error code 1
Stop in /usr/src.
--Bill
Updated by joerg about 18 years ago
On Wed, Sep 06, 2006 at 10:33:55PM +1000, Morgan Reed wrote:
Once I get to building the world. i.e. 'make world
DESTDIR=/usr/jailroot' I've fallen on some issues, all of which appear
to be related to paths;
Use "make buildworld && make installworld DESTDIR=..." instead.
Joerg
Updated by bill.marquette about 18 years ago
On 9/6/06, Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
On Wed, Sep 06, 2006 at 10:33:55PM +1000, Morgan Reed wrote:
Once I get to building the world. i.e. 'make world
DESTDIR=/usr/jailroot' I've fallen on some issues, all of which appear
to be related to paths;Use "make buildworld && make installworld DESTDIR=..." instead.
Joerg
Thanks, that seems to work better. Here's a patch against the man page :)
--Bill
Index: usr.sbin/jail/jail.8
===================================================================
RCS file: /home/dcvs/src/usr.sbin/jail/jail.8,v
retrieving revision 1.4
diff u -r1.4 jail.8 usr.sbin/jail/jail.8 9 Nov 2004 08:52:46 -0000 1.4
--
+++ usr.sbin/jail/jail.8 6 Sep 2006 15:37:15 -0000@ -78,7 +78,7
@
D=/here/is/the/jail
cd /usr/src
mkdir -p $D
-make world DESTDIR=$D
+make buildworld && make installworld DESTDIR=$D
cd etc
make distribution DESTDIR=$D -DNO_MAKEDEV_RUN
cd $D/dev
Updated by morgan.s.reed about 18 years ago
On 9/7/06, Bill Marquette <bill.marquette@gmail.com> wrote:
On 9/6/06, Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
On Wed, Sep 06, 2006 at 10:33:55PM +1000, Morgan Reed wrote:
Once I get to building the world. i.e. 'make world
DESTDIR=/usr/jailroot' I've fallen on some issues, all of which appear
to be related to paths;Use "make buildworld && make installworld DESTDIR=..." instead.
Joerg
Worked for me too.
Thanks.