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 > > Why? > 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. > === > # cd /usr/src; make installworld > > [skipped] > -------------------------------------------------------------- > >>> Installing everything.. > -------------------------------------------------------------- > cd /usr/src; make -f Makefile.inc1 install > ===> share/info > ===> 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 > > Stop in /usr/src/include. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > === -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age
msg33950/pgp00000.pgp
Description: PGP signature