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

2005-03-22 Thread George Hartzell


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'

([EMAIL PROTECTED])[9:59am]srcmake world DESTDIR=/usr/jails/cgl
--
 make world started on Tue Mar 22 09:59:27 PST 2005
--

--
 Rebuilding the temporary build tree
--
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

--
 stage 1.1: legacy release compatibility shims
--
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 

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

2005-03-22 Thread Robert Gogolok
George Hartzell wrote:
Can anyone suggest a way forward?
I think I did only make world without DESTDIR and specified it of 
course afterwards when doing make installworld.

Greetings,
Robert!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2005-03-22 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2005-03-22, Robert Gogolok scribbled these
curious markings:
 I think I did only make world without DESTDIR and specified it of 
 course afterwards when doing make installworld.

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.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2005-03-22 Thread Robert Gogolok
Christopher Nehren wrote:
I think I did only make world without DESTDIR and specified it of 
course afterwards when doing make installworld.
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.
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2005-03-22 Thread Robert Gogolok
George Hartzell wrote:
=== 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
I've found now the mail from freebsd-current again:
http://lists.freebsd.org/mailman/htdig/freebsd-current/2004-November/042348.html
Robert
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2005-03-22 Thread George Hartzell

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

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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]