Subject: Re: 19980831 -current build failure (libg++/libg++/src)
To: Paul B Dokas <dokas@cs.umn.edu>
From: Frederick Bruckman <fb@enteract.com>
List: current-users
Date: 09/01/1998 10:35:10
On Mon, 31 Aug 1998, Paul B Dokas wrote:

> On Mon, 31 Aug 1998, Erik E. Fair wrote:
> >
> > I blasted /usr/obj last down to nothing; here's what transpired on my sparc
> > build system:
> > 
> > all ===> libg++/libg++/src
> > [...]
> > building shared g++ library (version 4.0)
> > ld -x -shared  -o libg++.so.4.0    --whole-archive libg++_pic.a
> > --no-whole-archive /usr/lib/c++rt0.o -lcurses
> > ld: internal error: wrong number (1450) of global symbols written into
> > output file, should be 1451
> > *** Error code 1
> > 
> > Stop.
> 
> I get exactly the same message from my X86 running a -current kernel
> with a -current user land built from source supped on 08/28.
> 
> Creating a new version of ld when ld is broken might not be easy to 
> recover from.  Any ideas on a solution?  I haven't looked at the problem
> very much (other than to note that ld will not rebuild due to the same
> error :-(

For sure. I managed to rebuild ld by setting 'LDFLAGS=-static', (rtld
fails to build), installing what did build, and then building all of ld
again (shared). After that, I was able to do a 'make build' up until
shared libg++, as above.