Subject: bin/5286: make includes in src/gnu/lib/libstdc++ is broken
To: None <gnats-bugs@gnats.netbsd.org, bernd@arresum.inka.de>
From: None <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 04/12/1998 14:06:52
>Number:         5286
>Category:       bin
>Synopsis:       make includes in src/gnu/lib/libstdc++ is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 12 05:20:00 1998
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 12-Apr-1998, 10:00 GMT
>Environment:
	
System: NetBSD parresum 1.3E NetBSD 1.3E (PARRESUM) #245: Sat Apr 11 10:56:36 MEST 1998 bernd@parresum:/home/source/obj_i386/src/sys/arch/i386/compile/PARRESUM i386


>Description:
	Try to install the includes for the new egcs libstdc++ and watch an
	unnecessary and broken compile at this stage:

/src/gnu/lib/libstdc++> make includes
c++ -O  -Werror -nostdinc++  -I/src/gnu/lib/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libio  -I/src/gnu/lib/libstdc++/../../dist/libstdc++/stl -I/src/gnu/lib/libstdc++/../../dist/gcc/cp/inc  -o fstream /src/gnu/lib/libstdc++/../../dist/libio/fstream.cc 
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___ti8iostream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___tf8iostream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___ti7ostream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___tf7ostream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___ti7istream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___tf7istream' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___ti3ios' referenced from text segment
/tmp/cc16339a1.o: Undefined symbol `___tf3ios' referenced from text segment
*** Error code 1

Stop.

After using make -k includes I got more errors:

/src/gnu/lib/libstdc++# make -k includes
c++ -O  -Werror -nostdinc++  -I/src/gnu/lib/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libio  -I/src/gnu/lib/libstdc++/../../dist/libstdc++/stl -I/src/gnu/lib/libstdc++/../../dist/gcc/cp/inc  -o fstream /src/gnu/lib/libstdc++/../../dist/libio/fstream.cc 
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
*** Error code 1 (continuing)
c++ -O  -Werror -nostdinc++  -I/src/gnu/lib/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libio  -I/src/gnu/lib/libstdc++/../../dist/libstdc++/stl -I/src/gnu/lib/libstdc++/../../dist/gcc/cp/inc  -o /src/gnu/lib/libstdc++/../../dist/libstdc++/iomanip /src/gnu/lib/libstdc++/../../dist/libio/iomanip.cc 
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
*** Error code 1 (continuing)
c++ -O  -Werror -nostdinc++  -I/src/gnu/lib/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libio  -I/src/gnu/lib/libstdc++/../../dist/libstdc++/stl -I/src/gnu/lib/libstdc++/../../dist/gcc/cp/inc  -o /src/gnu/lib/libstdc++/../../dist/libstdc++/iostream /src/gnu/lib/libstdc++/../../dist/libio/iostream.cc 
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
*** Error code 1 (continuing)
c++ -O  -Werror -nostdinc++  -I/src/gnu/lib/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libstdc++ -I/src/gnu/lib/libstdc++/../../dist/libio  -I/src/gnu/lib/libstdc++/../../dist/libstdc++/stl -I/src/gnu/lib/libstdc++/../../dist/gcc/cp/inc  -o /src/gnu/lib/libstdc++/../../dist/libstdc++/strstream /src/gnu/lib/libstdc++/../../dist/libio/strstream.cc 
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
*** Error code 1 (continuing)
install -c -o bin -g bin -m 444  /src/gnu/lib/libstdc++/../../dist/libstdc++/cassert /usr/include/g++/cassert
[..]

It seems that make includes couldn't find fstream, iomanip, iostream and
strstream in src/gnu/dist/libstdc++ and therefore tries to build this files.

This is an build with obj dirs and an allready installed egcs from
src/gnu/usr.bin/egcs.

>How-To-Repeat:
>Fix:
	Unknown.
>Audit-Trail:
>Unformatted: