Subject: Re: build of -current on 5k/150 fails
To: Simon Burge <simonb@wasabisystems.com>
From: Ken Wellsch <kwellsch@tampabay.rr.com>
List: port-pmax
Date: 08/21/2001 22:10:16
Simon Burge wrote:
> 
> Ken Wellsch wrote:
> 
> > I was able to get as far as the install of libc.so.12.77 when the
> > build of -current via cvs update from this morning came to an end.
> >
> > The behavior is just like that exhibited on the alpha port a few
> > months ago - that is - as soon as the new shared libc is in place,
> > all programs that use the shared libc core dump from a seg fault.
> >
> > I recover by pointing back to an older libc.so.12.76 I have around.
> >
> > I'm afraid I wasn't privy to the solution for the alpha, if there
> > is any possible commonality here.
> >
> > I'm working on a DEC 5000/150 running -current circa late June 2001.
> > I try every few weeks to build current and I don't recall that has
> > completed lately... oh yeah, the build from August 8th also suffered
> > the libc.so core dump syndrome.
> 
> I think this is to do with the new crt0 .init/.fini work.  Look at the
> 20010718 entry in /usr/src/UPDATING and see if that helps.

Must I do a scratch "make build" or can I simulate it by doing the
"make cleandir" in lib/csu and libexec/ld.elf_so then doing the
dependall/install under lib/csu followed by a dependall/install on libc?

If I take the short-cut (as I vaguely describe above) I get the usual:

	...

# make MKSHARE=no dependall
building shared c library (version 12.77)
ld -x -shared -soname libc.so.12 -o libc.so.12.77  /usr/lib/crtbeginS.o 
--whole-archive libc.a --no-whole-archive   /usr/lib/crtendS.o
ln -sf libc.so.12.77 libc.so.12.tmp
mv -f libc.so.12.tmp libc.so.12
ln -sf libc.so.12.77 libc.so.tmp
mv -f libc.so.tmp libc.so

# make MKSHARE=no install
install -r  -c  -o root  -g wheel -m 600 libc.a /usr/lib/libc.a
ranlib -t /usr/lib/libc.a
chmod 444 /usr/lib/libc.a
install -r  -c  -o root  -g wheel -m 600 libc_p.a /usr/lib/libc_p.a
ranlib -t /usr/lib/libc_p.a
chmod 444 /usr/lib/libc_p.a
rm -f /usr/lib/libc_pic.a
ln -s libc.a /usr/lib/libc_pic.a
install -r  -c  -o root  -g wheel -m 444 libc.so.12.77 /usr/lib/libc.so.12.77
ln -sf libc.so.12.77 /usr/lib/libc.so.12.tmp
mv -f /usr/lib/libc.so.12.tmp /usr/lib/libc.so.12
ln -sf libc.so.12.77 /usr/lib/libc.so.tmp
mv -f /usr/lib/libc.so.tmp /usr/lib/libc.so
install -r  -c  -o root  -g wheel -m 444 llib-lc.ln /usr/libdata/lint
*** Signal 11

Stop.
make: stopped in /usr/src/lib/libc