SUMMARY: libg++-2.6 for Solaris2.3 problem

From: Ralf Vandenhouten (vanni@Kirk.Physiology.RWTH-Aachen.DE)
Date: Tue Sep 20 1994 - 01:08:26 CDT

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 "". The error
>message is
>>make[1]: Entering directory `/'
>>gcc -c -g -O -fexternal-templates -I. -I.
>> In method `class istream & istream::scan(const char * ...)':
>> `__builtin_va_alist' undeclared (first use this function)
>> (Each undeclared identifier is reported only once
>> for each function it appears in.)
>>make[1]: *** [isscan.o] Error 1
>>make[1]: Leaving directory `/'
>>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

Many thanks to the helpful responses of

rauthenberg@HHI.DE (Stefan Rauthenberg) (Andrej Misik)
Casper Dik <>
Richard Pieri <>
Guenter Millahn <>
Gregory Bond <>

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT