Subject: lib/11020: libstdc++.so is broken after make build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 09/14/2000 13:06:14
>Number:         11020
>Category:       lib
>Synopsis:       Libstdc++.so is broken after make build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 13:07:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tero Kivinen
>Release:        NetBSD 1.5 Sep 12 2000
>Organization:
SSH Communications Security
>Environment:
System: NetBSD kaakeli.ssh.fi 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (KAAKELI) #0: Tue Sep 12 17:23:45 PDT 2000 root@:/usr/src/sys/arch/i386/compile/KAAKELI i386


>Description:

	I recompiled the full source by unpacking the source tar files
	to /usr/src, and then saying make build. After that I tried to
	compile some c++ programs, but they all fail with follwing
	error messages:

/usr/lib/libstdc++.so(.text+0x363f4): multiple definition of `_etext'
/usr/lib/libstdc++.so(.data+0x6134): multiple definition of `_edata'
/usr/lib/libstdc++.so(.bss+0xfffff71c): multiple definition of `_end'

	After that I directly cd to /usr/src/gnu/lib/libstdc++ and
	said make && make install. After that the c++ programs started
	working. This happened to me also last time I updated to
	latest current, but I just assumed I did something wrong while
	compiling the system, but when it happened to me second time
	now, I assume the problem is persistent and it should be
	fixed. 

>How-To-Repeat:

	cd /usr/src; make build; unpack xtide-2.3beta from
	(http://www.flaterco.com/xtide/files.html) configure and make
	will fail. 

>Fix:

	cd /usr/src/gnu/lib/libstdc++; make; make install; 
>Release-Note:
>Audit-Trail:
>Unformatted: