amd64/122624: unusable mininal installation of FreeBSD-7.0

Fernan Aguero fernan at iib.unsam.edu.ar
Mon Apr 21 18:22:36 UTC 2008


> > > > 
> > > > It certainly sounds like you have mixed and matched some things.  Maybe 
> > just 
> > > > do a minimal install but include the 'lib32' dist for 32-bit binary 
> > compat?  
> > > > minimal probably doesn't include it (but vi also should be a 64-bit 
> > binary, 
> > > > try using 'file' rather than brandelf to see what file thinks vi is).
> > > 
> > > Sorry for the delay in replying,
> > > 
> > > I have just did a new install (completely erasing and
> > > reformatting the disk) and this time I did a standard
> > > install, choosing developer + lib32. Now the box
> > > stops in the boot process attempting to mount root:
> > > 
> > > [...]
> > > ad4: 152587 <WDC WD1600JS-75NCB3 10.02E04> at ata2-master UDMA33
> > > SMP: AP CPU #1 Launched!
> > > SMP: AP CPU #2 Launched!
> > > SMP: AP CPU #3 Launched!
> > > Trying to mount root from ufs:/dev/ad4s1a
> > > /libexec/ld-elf.so.1: /lib/libncurses.so.7: Shared object
> > > has no run-time symbol table
> > > Enter fill pathname of shell or RETURN for /bin/sh:
> > > 
> > > I cannot even type RETURN and enter a shell, because the
> > > same message about libncurses.so.7 appears!
> > 
> > I think you have some sort of local corruption either on the CD itself, the 
> > ISO image, or perhaps on the hard drive?  If the 7.0 CD were this 
> > fundamentally broken there would be more widespread reports of problems 
> > rather than this isolated incident.
> > -- 
> > John Baldwin
>  
> I will try and burn another copy of the ISO image ... apart
> from that, as I said, the checksums on the downloaded image
> match to those in file, and the disk behaves OK with both
> Ubuntu and FreeBSD-6.x 
> 
> Fernan

The answer is that the CD was not OK (but this didn't make
any difference, as new problems arose, read on ...)

# ISO image is OK
grep amd64-disc1 7.0-amd64-CHECKSUM.MD5
MD5 (7.0-RELEASE-amd64-disc1.iso) = 0232f1b6ffde0e3e76034c9f10791acd

cat 7.0-RELEASE-amd64-disc1.iso | md5sum 
0232f1b6ffde0e3e76034c9f10791acd  -


# But burned CD was not OK
echo $(( $(ls -l 7.0-RELEASE-amd64-disc1.iso | awk '{ print $5 }') / 2048 ))
255535

dd if=/dev/cdrom bs=2048 count=255535 | md5sum 
255535+0 records in
255535+0 records out
523335680 bytes (523 MB) copied, 121.408 seconds, 4.3 MB/s
f6de944affbeb748e7df5337aa91ea8b  -

So I trashed this CD and burned the same image again, now
succesfully:
dd if=/dev/cdrom bs=2048 count=255535 | md5sum 
255535+0 records in
255535+0 records out
523335680 bytes (523 MB) copied, 218.401 seconds, 2.4 MB/s
0232f1b6ffde0e3e76034c9f10791acd  -

I've now installed FreeBSD-7.0 (amd64) again, several times,
with either a minimal install + man pages (with or w/o lib32 compatibility) or as a standard install (all default options) and
again, as before, there are many errors upon boot:

# minimal, no lib32 compatibility
Trying to mount root from ufs:/dev/ad4s1a
/libexec/ld-elf.so.1: /lib/libedit.so.6: invalid file format

# standard install (all default options)
Starting local daemons:.
Updating motdawk: 1: Syntax error: "(" unexpected
.
Mounting late filesystems:.
Configuring syscons: keymap blanktime.
/libexec/ld-elf.so.1: Shared object "<ò " not found, required by "libssh.so.4"
(repeated three times)
Starting cron.
Local package initialization:.
/libexec/ld-elf.so.1: /lib/libm.so.5: invalid file format

I can login and do a couple of things:
mkdir /freebsd
mount host:/freebsd /freebsd
rm -rf /usr/src
ln -s /freebsd/freebsd-7.0/src /usr/src
ln -s /freebsd/ports /usr/ports
mkdir /usr/ports.workdir
echo "WRKDIRPREFIX=/usr/ports.workdir" > /etc/make.conf

But then: 
cd /usr/ports/sysutils/screen
make clean && make install clean
...
===> Extracting for screen-4.0.3_1
/usr/bin/awk: 1: Syntax error: "(" unexpected
*** Error code 2

And also:
cd /usr/src
make buildworld
>>> stage 1.1: legacy release compatibility shims
cd /freebsd/freebsd-7.0/src;
MAKEOBJDIRPREFIX=/usr/obj/freebsd/freebsd-7.0/src/tmp
INSTALL="sh /freebsd/freebsd-7.0/src/tools/install.sh" 
PATH=/usr/obj/freebsd/freebsd-7.0/src/tmp/legacy/usr/sbin:
... ... -DNO_WARNS legacy
awk: 1: Syntax error: "(" unexpected


Any help would be appreciated. I'm at a loss here.
Ubuntu-7.10 (amd64, server) works fine on this same box, as
well as FreeBSD-6.1-RELEASE (amd64). I even followed
the instructions to upgrade 6.1 to 7.0 only to find that
after rebooting (this is on the second time as per the instructions)
http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-6x-7x.txt
I lose the ability to SSH in, and many of these "syntax
error word unexpected" appear. I cannot rebuild and
reinstall world at this point, even though the box boots and
lets me log in.

Fernan





More information about the freebsd-amd64 mailing list