From owner-freebsd-current@FreeBSD.ORG Mon May 21 11:43:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F41B9106564A; Mon, 21 May 2012 11:43:41 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 65EB78FC08; Mon, 21 May 2012 11:43:40 +0000 (UTC) Received: from zugang.kibab.com (unknown [78.110.54.255]) by mx0.deglitch.com (Postfix) with ESMTPA id 538458FC27; Mon, 21 May 2012 15:43:39 +0400 (MSK) Received: from 80.154.94.20 (SquirrelMail authenticated user kibab) by zugang.kibab.com with HTTP; Mon, 21 May 2012 13:43:39 +0200 Message-ID: <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com> In-Reply-To: <20120521103623.GD65093@felucia.tataz.chchile.org> References: <4FB92FCE.7050407@kibab.com> <20120521103623.GD65093@felucia.tataz.chchile.org> Date: Mon, 21 May 2012 13:43:39 +0200 From: "Ilya Bakulin" To: "Ilya Bakulin" , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 11:43:42 -0000 On Mon, May 21, 2012 12:36 pm, Jeremie Le Hen wrote: > Can you provide the exact commands you have used to create your chroot? > Sure! 1. The build host is FreeBSD 8.2-RELEASE-p3 amd64 2. Directory where project resides ($PROJROOT): /home/kibab/repos/freebsd-cap-git 2. FreeBSD-CURRENT sources are in $PROJROOT/freebsd 3. Object directory is $PROJROOT/obj 4. Installation directory is $PROJROOT/inst 5. Building world: while in $PROJROOT/freebsd, I type: make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 buildworld ...After a while, build ends... 6. while in $PROJROOT/freebsd, type `sudo make buildenv`, after entering build environment I set nessesary env variables: PROJROOT=/home/kibab/repos/freebsd-cap-git MAKEOBJDIRPREFIX=/home/kibab/repos/freebsd-cap-git/obj DISTDIR=/home/kibab/repos/freebsd-cap-git/inst DESTDIR=/home/kibab/repos/freebsd-cap-git/inst 7. After that, type: make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 installworld Now I can chroot to newly installed system. FreeBSD 8.2 still allows running 10-CURRENT binaries, so that's not a problem: kibab@ssh%pwd /home/kibab/repos/freebsd-cap-git/inst kibab@ssh%sudo chroot `pwd` /bin/csh # ls -l /usr/lib | grep libgcc_s lrwxr-xr-x 1 0 0 71 May 20 17:31 libgcc_s.so -> /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libgcc_s.so.1 So the path to shared library is invalid! This setup was functional for about a year, and it was broken by recent update. I tried with clean object directory as well, this doesn't change anything. -- Regards, Ilya Bakulin http://kibab.com xmpp://kibab612@jabber.ru