Re: Compiling error macro `va_start' used with just one arg

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 30 Sep 1999 17:55:40 -0600

On Wed, 29 Sep 1999, Rainer Perske wrote:
 
> Maybe. The problem is that both stdarg.h and varargs.h are included
> because configure demands to do so on AIX systems - not a good idea.
>
> My solution to this problem: Inhibit inclusion of varargs.h by setting
> export CC='cc_r -D_H_VARARGS=1 -qlanglvl=ansi'
> export CFLAGS='-O'
> prior to running config (this works with 2.1.PATCH2 on AIX 4.2.1)

My guess is that AIX's /usr/include/syslog.h includes varargs.h.
There is a little hack that used to prevent it:

        #if STDC_HEADERS
        #include <stdarg.h>
        #else
        #include <varargs.h>
        #endif

        /* Make sure syslog goes after stdarg/varargs */
        #ifdef HAVE_SYSLOG_H
        #ifdef _SQUID_AIX_
        #define _XOPEN_EXTENDED_SOURCE
        #endif
        #include <syslog.h>
        #endif

Apparently defining _XOPEN_EXTENDED_SOURCE doesn't help for all
versions of AIX. Maybe there is another magic symbol?

Duane W.
Received on Thu Sep 30 1999 - 19:08:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:36 MST