SUMMARY: `__builtin_va_alist' undefined

From: Bernt Christandl (bernt.christandl@munich-airport.de)
Date: Thu Jul 01 1999 - 00:57:52 CDT


Hello managers,

i had problems with gcc-2.8.1 under solaris-2.6
(my original question see below) and (i think) this list proved
to be very helpful again!

Jim (James Coby <James.E.Coby.Jr@cdc.com>) and
Nick (wilhelm@lexmark.com) pointed me to the

Solaris 2 FAQ available at ftp://ftp.wins.uva.nl/pub/solaris/solaris2.html
maintained by Casper H.S. Dik, especially point 5.9 there.

But i think that Tim (Tim Carlson <tim@santafe.edu>) hit the point:
>Looks like you installed Gcc from a binary distribution that was
>originally compiled for 2.5.1 You should recompile gcc now that you have
>a binary distribution.

Looking deeper into the "history" of my gcc, i have to commit: he is right!
So i will go and recompile that beast again under Solaris 2.6...

With regards,

Bernt Christandl email: bernt.christandl@munich-airport.de
-----------------------------------------------------------------
Systemadministration
Flughafen Muenchen GmbH
Postfach 231755 Tel: +49 89 975 32321
85326 Muenchen Fax: +49 89 975 32306

my original question:
---------------------
today i have successfully installed bash-2.03 and gcc-2.8.1 under
Solaris 2.6 on my Sparc10.

Then i tried (with gcc) to compile/make/install other utilities
and got the following error with several of these, e.g with wget-1.5.3:

gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/a/b/c/etc/wgetrc\"
-DLOCALEDIR=\"/a/b/c/share/locale\" -O2 -Wall -Wno-implicit -c log.c
log.c: In function `logprintf':
log.c:193: `__builtin_va_alist' undeclared (first use in this function)
log.c:193: (Each undeclared identifier is reported only once
log.c:193: for each function it appears in.)
log.c:186: warning: `args' might be used uninitialized in this function
log.c: In function `debug_logprintf':
log.c:223: `__builtin_va_alist' undeclared (first use in this function)
log.c:217: warning: `args' might be used uninitialized in this function
make[1]: *** [log.o] Error 1
make[1]: Leaving directory `/d/e/wget-1.5.3/src'
make: *** [src] Error 2

When i look into /usr/include/stdargs.h i can learn that "something"??
has to define a ``feature test macro "__BUILTIN_VA_ARG_INCR" which''
will define that (and a bit more)...

How can i get rid of this error and compile/install wget et al.?
I tried with SUN's /usr/ucb/cc, but that failed even earlier with
other errors... :(



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