This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
Hello,
>>>>> "BK" == Benjamin Kosnik <bkoz@cygnus.com> writes:
BK> I'm just now working with current egcs and current libstdc++ sources.
BK> I should have this fixed in a bit, and will let you know what I find.
I installed a new version of libstdc++-2.90.4 that I downloaded with
ftp. The former I had got from CVS, after seeing the announcement in
the web page.
This built fine on linux, but failed on hppa2.0-hp-hpux10.20
(configure selected hppa1.1 for libstdc++, but not for egcs ss19990314
It did however for 1.1.2).
The error (I didn't attempt to correct - but shortened the paths):
l/bits/std_iosfwd.h:107: `mbstate_t' was not declared in this scope
l/bits/std_iosfwd.h:107: template argument 1 is invalid
l/bits/std_iosfwd.h:107: ANSI C++ forbids declaration `streampos' with no type
l/bits/std_iosfwd.h:123: `mbstate_t' was not declared in this scope
l/bits/std_iosfwd.h:123: template argument 1 is invalid
l/bits/std_iosfwd.h:123: ANSI C++ forbids declaration `wstreampos' with no type
The rest is about my linux installation.
BK> template param redeclaration? I fixed this 2 days ago in CVS.
in locfacets.h, yes (were used in the friend declarations)
The others were an instantiation duplication, and an error in the args
for fill.
Anyway, they didn't show up anymore now.
BK> haven't tried the -fnew-abi build. Can you post a bit more on what
BK> sources you are trying to compile?
Er... I could, but for our purpose, 27hello is quite fine.
BK> Also, see the libstdc++/testsuite/27/27hello.cc app if you are just
BK> trying to do hello world. . .
% c++ -fnew-abi -fno-honor-std -I /home/marc/H-libstdc++/include -L/home/marc/H-libstdc++/lib -Wl,--rpath -Wl,/home/marc/H-libstdc++/lib 27hello.cc -o 27hello
/tmp/cc6plaaa.o: In function `main':
/tmp/cc6plaaa.o(.text+0x4): undefined reference to `endl(ostream &)'
/tmp/cc6plaaa.o(.text+0x13): undefined reference to `ostream::operator<<(char const *)'
/tmp/cc6plaaa.o(.text+0x1e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
%
I configured with:
% CFLAGS="-g -O2 -fnew-abi" CXXFLAGS="-g -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -fnew-abi" ../libstdc++-2.90.4/configure --prefix=${PWD%/*}/H-libstdc++
Thanks.
--
Marc Girod Hiomo 5/1 Voice: +358-9-511 23746
Nokia Telecommunications P.O. Box 320 Mobile: +358-40-569 7954
NWS/NMS/NMS for Data 00045 NOKIA Group Fax: +358-9-511 23580
Finland marc.girod@ntc.nokia.com