On Mon, 2001-09-17 at 10:50, Charlie Chrisman wrote:
> im trying to put vpopmail5.0pre5 on a sun box running solaris 8.  when i try to
> make it spits out this error:
> 
> 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
> *** Error code 1
> make: Fatal error: Command failed for target `vpopmail.o'
> Current working directory /export/charlie/vpopmail-5.0pre5
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /export/charlie/vpopmail-5.0pre5
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive-am'
> 
> any idea as to whats going on?
> 
> thanks
> charlie chrisman
> 

vpopmail.c is missing the #include line for the
variable argument function code. The reason is the
orignal BSD code didn't have varargs, so it got bolted
on. Meaning the va_start() function isn't declared in
the "now standard" #include <stdarg.h> file.

On your solaris 8 machine please do a:
man va_start

and report back what header files it requires.
Check vpopmail.c and make sure it has those
headers in there. 

On Linux va_start is in #include <stdarg.h>

void va_start( va_list ap, last);
type va_arg( va_list ap, type);
void va_end( va_list ap);

Ken Jones

Reply via email to