BUG!! gcc-2.95.3 (`__builtin_va_alist' undeclared in snprintf()) on Solaris-2.5.1
Carlo Wood
carlo@alinoe.com
Sat May 26 06:06:00 GMT 2001
On Sat, May 26, 2001 at 02:40:46AM -0700, Auteria Wally Winzer Jr. wrote:
> I finally got gcc-2.95.3 compiled on Solaris-2.5.1 (fully-patched).
> When trying to compile sendmail and BerkeleyDB I get errors from
> snprintf(). Here's the errors:
>
> sendmail-8.11.3:
>
> gcc -O6 -I. -I../../sendmail -I../../include -I/usr/local/include -DNEWDB
> -DNIS -DNISPLUS -DMAP_REGEX -DAUTO_NIS_ALIASES -DTCPWRAPPERS -DSOLARIS=20501
> -DNOT_SENDMAIL -c -o snprintf.o snprintf.c
> snprintf.c: In function `snprintf':
> snprintf.c:70: `__builtin_va_alist' undeclared (first use in this function)
Is sendmail accidently including varargs.h? Or is it using va_list without
including <stdarg.h>? The best way to check this is by editting those files
(as root) and adding a line #warning "We get here!" to them (or #error
in the case of <varargs.h> to the top. Be sure to use the correct header
files, they should be in a directory like <prefix>/lib/gcc-lib/<triplet>/2.95.3/include/
--
Carlo Wood <carlo@alinoe.com>
More information about the Gcc-bugs
mailing list