Subject: bin/6080: ld dies while creating libg++.so.4.0
To: None <gnats-bugs@gnats.netbsd.org>
From: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
List: netbsd-bugs
Date: 09/01/1998 05:54:06
>Number:         6080
>Category:       bin
>Synopsis:       ld dies while creating libg++.so.4.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 31 14:05:01 1998
>Last-Modified:
>Originator:     ITOH Yasufumi
>Organization:
	Nara Institute of Science and Technology, Nara, Japan
>Release:        1.3G (Aug. 31, 1998)
>Environment:
System: NetBSD acha.my.domain 1.3G NetBSD 1.3G (UVM) #6: Thu Aug 27 16:10:12 JST 1998 itohy@myname.my.domain:/usr/src/sys.test/arch/x68k/compile/UVM x68k


>Description:
	ld fails to create libg++.so.4.0 at /usr/src/gnu/lib/libg++/libg++/src
	Note that the m68k architectures use /usr/src/gnu/usr.bin/ld .

	# cd /usr/src/lib
	# make && make install
	...
	# cd /usr/src/gnu/lib
	# make
	...
	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
	...
	#

	I suspect that the difference is the PLT symbol.

>How-To-Repeat:
	make build

>Fix:
	Sorry, unknown.
	Fix on PLT?
>Audit-Trail:
>Unformatted: