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