----- Original Message -----
From: "Ken Jones" <[EMAIL PROTECTED]>
To: "Charlie Chrisman" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 4:40 PM
Subject: Re: vpopmail compile problems


> 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.
>

im getting confused...

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

the line in configure.in that contained AC_CHECK_HEADERS(unistd.h) i changed
it to 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

in vpopmail.c i added the above code.

>
> Check if you have a /usr/include/sys/varargs.h file

that file is present.

> if so, then check if config.h has HAVE_SYSVARARGS_H

my config.h does not that HAVE_SYSVARARGS_H.  do i need to do anything to
config.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
>

basically heres what i did:

changed  AC_CHECK_HEADERS(unistd.h) to AC_CHECK_HEADERS(unistd.h
sys/varargs.h)
added:
            #ifdef HAVE_SYS_VARARGS_H
            #include <sys/varargs.h>
            #endif
to vpopmail.c.

i tried to compile and it gave me these errors:

gcc -I. -I/usr/include      -g -O2 -Wall -c vpopmail.c
vpopmail.c: In function `vadddotqmail':
vpopmail.c:1760: `__builtin_va_alist' undeclared (first use in this
function)
vpopmail.c:1760: (Each undeclared identifier is reported only once
vpopmail.c:1760: for each function it appears in.)
vpopmail.c:1761: warning: implicit declaration of function
`__builtin_va_arg_incr'
vpopmail.c:1749: 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

then i changed vpopmail.c to just:

            #include <sys/varargs.h>

and tried to compile again.  errors:

gcc -I. -I/usr/include      -g -O2 -Wall -c vpopmail.c
In file included from vpopmail.c:43:
/usr/include/sys/varargs.h:61: warning: `va_start' redefined
/usr/include/iso/stdarg_iso.h:78: warning: this is the location of the
previous definition
In file included from vpopmail.c:43:
/usr/include/sys/varargs.h:100: parse error before `void'
vpopmail.c: In function `vadddotqmail':
vpopmail.c:1758: `__builtin_va_alist' undeclared (first use in this
function)
vpopmail.c:1758: (Each undeclared identifier is reported only once
vpopmail.c:1758: for each function it appears in.)
vpopmail.c:1759: warning: implicit declaration of function
`__builtin_va_arg_incr'
vpopmail.c:1747: 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


what now...?

thanks
charlie



Reply via email to