On Wed, 2001-09-26 at 14:04, Charlie Chrisman wrote:
> does anyone know what "__builtin_va_alist" is?  what library it might be
> contained in?
> 
> what about this "va_start(args,domain);"
> 
> what is the function va_start?
> 
> im getting this when i try to compile vpopmail5.0:
> 
> gcc -I. -I/usr/include      -g -O2 -Wall -c vpopmail.c
> vpopmail.c: In function `vadddotqmail':
> vpopmail.c:1756: `__builtin_va_alist' undeclared (first use in this
> function)
> vpopmail.c:1756: (Each undeclared identifier is reported only once
> vpopmail.c:1756: for each function it appears in.)
> vpopmail.c:1757: warning: implicit declaration of function
> `__builtin_va_arg_incr'
> vpopmail.c:1745: warning: `args' might be used uninitialized in this
> function
> make[2]: *** [vpopmail.o] Error 1
> make[2]: Leaving directory `/install/vpopmail-5.0'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/install/vpopmail-5.0'
> make: *** [all-recursive-am] Error 2

Sounds like a solaris boxen. Historically solaris did not
include the varargs headers in the standard system headers
and they continue with this. Linux and the BSD's have included
them in the standard headers.

I tried to fix with with adding to configure.in
AC_CHECK_HEADERS(unistd.h sys/varargs.h)

I think the vararg defs are in /usr/include/sys/varargs.h
Then in vpopmail.c
#ifdef HAVE_SYS_VARARGS_H
#include <sys/varargs.h>
#endif

Check if you have a /usr/include/sys/varargs.h file
if so, then check if config.h has HAVE_SYSVARARGS_H
defined. Please report what you find.
Also, try changing the #ifdef line above to just
#include <sys/varargs.h>
and see if it compiles. 

Cheers
Ken Jones


Reply via email to