Professional Web Applications Themes

Problems building jails under RELENG_5_3 (5.3-RELEASE-p5) - FreeBSD

I'm having trouble building a jail under 5.3 (RELENG_5_3). I'm following the process in the jail man page and it dies trying to compile on of the bootstrap tools. Google and the freebsd-questions archives show several other people reporting the problem, but I havn't seen anyone post a solution. I last cvsup'ed around 3/16. Can anyone suggest a way forward? Thanks, g. Here's my /etc/make.conf # # To avoid building various parts of the base system: # NO_FORTRAN= true # do not build g77 and related libraries NO_I4B= true # do not build isdn4bsd package #NO_SENDMAIL= true # do not ...

  1. #1

    Default Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)



    I'm having trouble building a jail under 5.3 (RELENG_5_3).

    I'm following the process in the jail man page and it dies trying to
    compile on of the bootstrap tools.

    Google and the freebsd-questions archives show several other people
    reporting the problem, but I havn't seen anyone post a solution.

    I last cvsup'ed around 3/16.

    Can anyone suggest a way forward?

    Thanks,

    g.

    Here's my /etc/make.conf

    #
    # To avoid building various parts of the base system:
    #
    NO_FORTRAN= true # do not build g77 and related libraries
    NO_I4B= true # do not build isdn4bsd package
    #NO_SENDMAIL= true # do not build sendmail and related programs
    # build from ports (sendmail-sasl) instead.

    CVS_UPDATE= true

    # pick these up from ports instead!
    #NO_SENDMAIL=true
    #NO_MAILWRAPPER=true
    #SENDMAIL_CF_DIR= /usr/local/share/sendmail/cf
    #SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
    #SENDMAIL_LDFLAGS=-L/usr/local/lib
    #SENDMAIL_LDADD=-lsasl2


    WITH_SSL_AND_PLAINTEXT=YES # for imap-uw
    WITH_DB3=YES

    #BATCH=yes
    NOCLEANDEPENDS=yes
    PACKAGES=/usr/ports/packages

    # use the version from the cups port instead.
    NO_LPR= true # do not build lpr and related programs

    # added by use.perl 2005-03-16 12:40:43
    PERL_VER=5.8.6
    PERL_VERSION=5.8.6

    and here's what I get when I do a 'make world DESTDIR=/usr/jails/cgl'

    (rootash)[9:59am]src>>make world DESTDIR=/usr/jails/cgl
    -------------------------------------------------------------- [/ref][/ref]
    --------------------------------------------------------------

    -------------------------------------------------------------- [/ref][/ref]
    --------------------------------------------------------------
    rm -rf /usr/obj/usr/src/i386
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/bin
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/games
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/include/c++/3.3
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/include/sys
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/lib
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/libexec
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/sbin
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/dict
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devX100
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devX100-12
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devX75
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devX75-12
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devascii
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devcp1047
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devdvi
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devhtml
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devkoi8-r
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devlatin1
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devlbp
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devlj4
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devps
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/groff_font/devutf8
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/tmac/mdoc
    mkdir -p /usr/obj/usr/src/i386/legacy/usr/share/tmac/mm
    mkdir -p /usr/obj/usr/src/i386/lib
    mkdir -p /usr/obj/usr/src/i386/usr/bin
    mkdir -p /usr/obj/usr/src/i386/usr/include
    mkdir -p /usr/obj/usr/src/i386/usr/lib/compat/aout
    mkdir -p /usr/obj/usr/src/i386/usr/libdata/ldscripts
    mkdir -p /usr/obj/usr/src/i386/usr/libexec
    mkdir -p /usr/obj/usr/src/i386/usr/sbin
    mkdir -p /usr/obj/usr/src/i386/usr/share/misc
    mkdir -p /usr/obj/usr/src/i386/usr/share/snmp/defs
    mkdir -p /usr/obj/usr/src/i386/usr/share/snmp/mibs
    mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/obj/usr/src/i386/usr/include >/dev/null
    ln -sf /usr/src/sys /usr/obj/usr/src/i386

    -------------------------------------------------------------- [/ref][/ref]
    --------------------------------------------------------------
    cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 DESTDIR= INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk DESTDIR=/usr/jails/cgl -m /usr/src/share/mk" /usr/obj/usr/src/make.i386/make -f Makefile.inc1 BOOTSTRAPPING=503001 -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS legacy
    ===> tools/build
    /usr/obj/usr/src/i386/usr/src/tools/build created for /usr/src/tools/build
    cd /usr/src/tools/build; /usr/obj/usr/src/make.i386/make buildincludes; /usr/obj/usr/src/make.i386/make installincludes
    rm -f .depend
    mkdep -f .depend -a -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/tools/build/dummy.c
    cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/tools/build/dummy.c
    building static egacy library
    ranlib libegacy.a
    sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libegacy.a /usr/obj/usr/src/i386/legacy/usr/lib

    -------------------------------------------------------------- [/ref][/ref]
    --------------------------------------------------------------
    cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 DESTDIR= INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk DESTDIR=/usr/jails/cgl -m /usr/src/share/mk" /usr/obj/usr/src/make.i386/make -f Makefile.inc1 BOOTSTRAPPING=503001 -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools
    ===> 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: /usr/jails/cgl/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 /usr/jails/cgl/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.
    (rootash)[9:59am]src>>

    George Guest

  2. #2

    Default Re: Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)

    George Hartzell wrote: 
    I think I did only "make world" without DESTDIR and specified it of
    course afterwards when doing "make installworld".

    Greetings,
    Robert!
    Robert Guest

  3. #3

    Default Re: Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 2005-03-22, Robert Gogolok scribbled these
    curious markings: 

    "make world" builds and installs the world onto your current system,
    leaving a /usr/obj intact. Unless you specified a DESTDIR for the
    installworld, it was spurious, replacing files already installed.

    Best Regards,
    Christopher Nehren
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCQH7+k/lo7zvzJioRAvcbAJ9uk5UEfmqB/vB6kcstNTA4bx0tdwCdGDQj
    Zw8pvTooa9Ui2LTmU6NNDG8=
    =8psv
    -----END PGP SIGNATURE-----

    --
    I abhor a system designed for the "user", if that word is a coded
    pejorative meaning "stupid and unsophisticated". -- Ken Thompson
    If you ask the wrong questions, you get answers like "42" and "God".
    Unix is user friendly. However, it isn't idiot friendly.

    Christopher Guest

  4. #4

    Default Re: Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)

    Christopher Nehren wrote: [/ref]
    > "make world" builds and installs the world onto your current system,
    > leaving a /usr/obj intact. Unless you specified a DESTDIR for the
    > installworld, it was spurious, replacing files already installed.[/ref]

    ARGH, right, sorry!

    I did a "make buildworld" and afterwards a "make installworld DESTDIR=..."


    See also:
    http://www.bsdforen.de/showthread.php?p=62201#post62201
    german, but you should recognize the error at the top, and the response
    on 21.11.2004, 17:19 from the nick Ice


    Robert
    Robert Guest

  5. #5

    Default Re: Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)

    George Hartzell wrote: 
    I've found now the mail from freebsd-current again:
    http://lists.freebsd.org/mailman/htdig/freebsd-current/2004-November/042348.html


    Robert

    Robert Guest

  6. #6

    Default Re: Problems building jails under RELENG_5_3 (5.3-RELEASE-p5)


    George Hartzell writes: 

    Pardon my following up to my own post, but in the interest of having a
    solution in the archives, here's a shar file of two diffs that'll make
    it work as doented in the jail man page.

    The problem seems to be some changes to /usr/src/Makefile and
    /usr/src/Makefile.inc1 that were quickly fixed on the RELENG_5 branch
    but never included back into the RELENG_5_3 branch.

    I grabbed those two files from the FreeBSD CVS repository via the web
    interface, just after the fix for this problem. I moved them into
    /usr/src and they seem to work fine. The functional Makefile is
    version 1.306.2.1 and Makefile.inc1 is version 1.438.2.5.

    I'm including a shar file containing the diffs between my
    5.3-RELEASE-p5 system and those files, hopefully it'll be useful to
    other folks.

    g.

    # This is a shell archive. Save it in a file, remove anything before
    # this line, and then unpack it by entering "sh file". Note, it may
    # create directories; files and directories will be owned by you and
    # have default permissions.
    #
    # This archive contains:
    #
    # Makefile.diff
    # Makefile.inc1.diff
    #
    echo x - Makefile.diff
    sed 's/^X//' >Makefile.diff << 'END-of-Makefile.diff'
    X2c2
    X< # $FreeBSD: src/Makefile,v 1.306 2004/08/09 11:38:41 harti Exp $
    X---
    X> # $FreeBSD: /repoman/r/ncvs/src/Makefile,v 1.306.2.1 2004/11/08 19:38:31 ru Exp $
    X87a88,94
    X> _MAKEOBJDIRPREFIX!= /usr/bin/env -i \
    X> PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \
    X> -f /dev/null -V MAKEOBJDIRPREFIX dummy
    X> .if !empty(_MAKEOBJDIRPREFIX)
    X> .error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
    X> (in /etc/make.conf) or command-line variable.
    X> .endif
    X147,148d153
    X< .if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR)
    X< .if make(world)
    X150c155,156
    X< .endif
    X---
    X>
    X> .if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR)
    X245c251
    X< # with reasonable chance of success, regardless of how old your
    X---
    X> # with a reasonable chance of success, regardless of how old your
    X248,249c254,255
    X< i386_mach= pc98
    X< universe:
    X---
    X> universe: universe_prologue
    X> universe_prologue:
    X253,254c259,264
    X< .for arch in i386 sparc64 alpha ia64 amd64
    X< .for mach in ${arch} ${${arch}_mach}
    X---
    X> .for target in i386 i386:pc98 sparc64 alpha ia64 amd64
    X> .for arch in ${target:C/:.*$//}
    X> .for mach in ${target:C/^.*://}
    X> universe: universe_${mach}
    X> .ORDER: universe_prologue universe_${mach} universe_epilogue
    X> universe_${mach}:
    X265c275
    X< cd ${.CURDIR} && ${MAKE} ${JFLAG} buildkernels TARGET_ARCH=${arch} TARGET=${mach}
    X---
    X> cd ${.CURDIR} && ${MAKE} buildkernels TARGET_ARCH=${arch} TARGET=${mach}
    X268a279,281
    X> .endfor
    X> universe: universe_epilogue
    X> universe_epilogue:
    X277,278d289
    X< .endif
    X<
    X285a297
    X> .endif
    END-of-Makefile.diff
    echo x - Makefile.inc1.diff
    sed 's/^X//' >Makefile.inc1.diff << 'END-of-Makefile.inc1.diff'
    X2c2
    X< # $FreeBSD: src/Makefile.inc1,v 1.438.2.4.2.1 2004/10/24 09:24:25 scottl Exp $
    X---
    X> # $FreeBSD: /repoman/r/ncvs/src/Makefile.inc1,v 1.438.2.5 2004/11/08 19:38:31 ru Exp $
    X93,99d92
    X< _MAKEOBJDIRPREFIX!= env -i PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \
    X< -f /dev/null -V MAKEOBJDIRPREFIX dummy
    X< .if !empty(_MAKEOBJDIRPREFIX)
    X< .error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
    X< (in /etc/make.conf) or command-line variable.
    X< .endif
    X<
    X183,184c176
    X< BMAKEENV= DESTDIR= \
    X< INSTALL="sh ${.CURDIR}/tools/install.sh" \
    X---
    X> BMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \
    X189a182
    X> DESTDIR= \
    X196a190
    X> DESTDIR= \
    X204d197
    X< DESTDIR=${WORLDTMP} \
    X208c201
    X< WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1
    X---
    X> WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1 DESTDIR=${WORLDTMP}
    X669c662
    X< cd ${.CURDIR}; ${CVS} -R -q update -rRELENG_5_3 -P -d
    X---
    X> cd ${.CURDIR}; ${CVS} -R -q update -rRELENG_5 -P -d
    END-of-Makefile.inc1.diff
    exit

    George Guest

Similar Threads

  1. Sharing directories with jails
    By Chris in forum FreeBSD
    Replies: 11
    Last Post: March 4th, 03:55 PM
  2. Replies: 3
    Last Post: March 4th, 01:48 AM
  3. [PHP-DEV] Extension building problems
    By Brian J. France in forum PHP Development
    Replies: 0
    Last Post: August 13th, 10:31 PM
  4. [PHP-DEV] Extension building problems
    By Sascha Schumann in forum PHP Development
    Replies: 0
    Last Post: August 13th, 10:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139