From owner-freebsd-hackers Fri Apr 26 2:24:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1403C37B405 for ; Fri, 26 Apr 2002 02:24:26 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g3Q9Nnn25337; Fri, 26 Apr 2002 12:23:49 +0300 (EEST) (envelope-from ru) Date: Fri, 26 Apr 2002 12:23:49 +0300 From: Ruslan Ermilov To: Dmitry Mottl Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: make installworld failed on 4.0-RELEASE Message-ID: <20020426092349.GB18917@sunbay.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2002 at 11:50:41AM +0400, Dmitry Mottl wrote: > Hi! > I have a problem upgrading 4.0-RELEASE to 4-STABLE from remotely > mounted /usr/src and /usr/obj: > ELF binary type not known. Use "brandelf" to brand it >=20 > Why? >=20 Hmm, I saw this problem earlier, but a bit later in installworld, after /bin/sh was already installed. The problem is install(1) is using /bin/sh directly, not the correct "sh" from $PATH. The workaround was to temporarily exclude "sh" from the SUBDIR list in src/bin/Makefile. The solution is to fix install(1), and I'm working on this. The next stopper was makewhatis(1) script which also suffers from executing /usr/bin/perl (with incompatible ELF branding when upgrading from 4.0). Unfortunately, there's not an easy solution to this, but this "breakage" is harmless, as it is executed as the last part of installworld, and is not essential. > =3D=3D=3D > # cd /usr/src; make installworld >=20 > [skipped] > -------------------------------------------------------------- > >>> Installing everything.. > -------------------------------------------------------------- > cd /usr/src; make -f Makefile.inc1 install > =3D=3D=3D> share/info > =3D=3D=3D> include > if [ -h /usr/include/cam ]; then rm -f /usr/include/cam; fi > if [ -h /usr/include/msdosfs ]; then rm -f /usr/include/msdosfs; fi > if [ -h /usr/include/net ]; then rm -f /usr/include/net; fi > if [ -h /usr/include/netatalk ]; then rm -f /usr/include/netatalk; fi > if [ -h /usr/include/netatm ]; then rm -f /usr/include/netatm; fi > if [ -h /usr/include/netgraph ]; then rm -f /usr/include/netgraph; fi > if [ -h /usr/include/netinet ]; then rm -f /usr/include/netinet; fi > if [ -h /usr/include/netinet6 ]; then rm -f /usr/include/netinet6; fi > if [ -h /usr/include/netipx ]; then rm -f /usr/include/netipx; fi > if [ -h /usr/include/netkey ]; then rm -f /usr/include/netkey; fi > if [ -h /usr/include/netnatm ]; then rm -f /usr/include/netnatm; fi > if [ -h /usr/include/netncp ]; then rm -f /usr/include/netncp; fi > if [ -h /usr/include/netns ]; then rm -f /usr/include/netns; fi > if [ -h /usr/include/netsmb ]; then rm -f /usr/include/netsmb; fi > if [ -h /usr/include/nfs ]; then rm -f /usr/include/nfs; fi > if [ -h /usr/include/ntfs ]; then rm -f /usr/include/ntfs; fi > if [ -h /usr/include/nwfs ]; then rm -f /usr/include/nwfs; fi > if [ -h /usr/include/pccard ]; then rm -f /usr/include/pccard; fi > if [ -h /usr/include/posix4 ]; then rm -f /usr/include/posix4; fi > if [ -h /usr/include/sys ]; then rm -f /usr/include/sys; fi > if [ -h /usr/include/vm ]; then rm -f /usr/include/vm; fi > if [ -h /usr/include/fs/smbfs ]; then rm -f /usr/include/fs/smbfs; fi > if [ -h /usr/include/isofs/cd9660 ]; then rm -f > /usr/include/isofs/cd9660; fi > if [ -h /usr/include/ufs/ffs ]; then rm -f /usr/include/ufs/ffs; fi > if [ -h /usr/include/ufs/mfs ]; then rm -f /usr/include/ufs/mfs; fi > if [ -h /usr/include/ufs/ufs ]; then rm -f /usr/include/ufs/ufs; fi > if [ -h /usr/include/dev/ppbus ]; then rm -f /usr/include/dev/ppbus; > fi > if [ -h /usr/include/dev/usb ]; then rm -f /usr/include/dev/usb; fi > if [ -h /usr/include/machine ]; then rm -f /usr/include/machine; fi > mtree -deU -f /usr/src/include/../etc/mtree/BSD.include.dist -p > /usr/include > cd /usr/src/include/../sys; install -C -o root -g wheel -m 444 cam/*.h > /usr/include/cam > ELF binary type not known. Use "brandelf" to brand it. > Abort trap > *** Error code 134 >=20 > Stop in /usr/src/include. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. > =3D=3D=3D --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8yRylUkv4P6juNwoRAku0AJwNyLIw16vlTCdk88ZvfbzOjVcfpACdGvLb Osd0PMUrlP9BIgAshyhN2dk= =a+sq -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message