Subject: Re: 19980831 -current build failure (libg++/libg++/src)
To: Erik E. Fair <fair@clock.org>
From: Frederick Bruckman <fb@enteract.com>
List: current-users
Date: 09/01/1998 13:59:04
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.

This works:

ld -t -x -shared  -o libg++.so.4.0    --whole-archive libg++_pic.a
--no-whole-archive /usr/lib/c++rt0.o

and so does this

ld -t -x -shared  -o libg++.so.4.0    --whole-archive libg++_pic.a
--no-whole-archive /usr/lib/c++rt0.o -Bstatic -lcurses >& ld.log

and now 'cd /usr/src/gnu/lib ; make' completes without errors. I'm now
rebuilding curses, and then expect to try gnu/lib/ again. I probably won't
know if that works until tomorrow--this business goes slowly on a mac, and
it's past my bedtime already.