Dear managers,
the original problem was
>I've tried to compile the library libg++ version 2.6 for Solaris 2.3,
>but failed in the libio directory on the file "isscan.cc". The error
>message is
>
>>make[1]: Entering directory `/usr3.ma/libg++-2.6/libio'
>>gcc -c -g -O -fexternal-templates -I. -I. isscan.cc
>>isscan.cc: In method `class istream & istream::scan(const char * ...)':
>>isscan.cc:33: `__builtin_va_alist' undeclared (first use this function)
>>isscan.cc:33: (Each undeclared identifier is reported only once
>>isscan.cc:33: for each function it appears in.)
>>make[1]: *** [isscan.o] Error 1
>>make[1]: Leaving directory `/usr3.ma/libg++-2.6/libio'
>>make: *** [all-libio] Error 2
It seems that I made mistakes in two steps:
1. In the configuring step of building the gcc (version2.6) I used
./configure --target=sparc-sun-solaris
instead of
./configure --target=sparc-sun-solaris2.3.
This caused gcc to complain about the missing __builtin_va_alist
during compilation.
2. After fixing that the linker (!) complained that the symbol
__builtin_va_arg_incr was undefined (after compilation of a c++ program).
Casper Dik pointed me to the FAQ (question 5.6), and in fact I
had not run fixincludes _before_ compiling the libg++. Note that gcc
supplied varargs.h and stdarg.h files have to be moved out of the way
before starting fixincludes and moved back again later. After that
the libg++ library can be compiled and installed and everything works
fine.
Many thanks to the helpful responses of
rauthenberg@HHI.DE (Stefan Rauthenberg)
misik@alpha.dcs.fmph.uniba.sk (Andrej Misik)
Casper Dik <casper@fwi.uva.nl>
Richard Pieri <ratinox@unilab.dfci.harvard.edu>
Guenter Millahn <gm@informatik.tu-cottbus.de>
Gregory Bond <gnb@melba.bby.com.au>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT