macro `va_start' used with just one arg

From: Frank Harper <[email protected]>
Date: Thu, 05 Aug 1999 17:58:22 +0200

Well I've been scratching my head, reading the FAQ, searching the
archives, for a couple of days now, so I figure it's time to hit the
mailing list.

I'm trying to compile squid-2.2.STABLE4 on SunOS, but I get the
following error messages compiling debug.c:

debug.c:70: macro `va_start' used with just one arg
*** Error code 1
make: Fatal error: Command failed for target `debug.o'

The error is preceded by several warnings:

In file included from
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.3/include/stdarg.h:30,
                 from ../include/snprintf.h:14,
                 from squid.h:363,
                 from debug.c:36:
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.3/include/va-sparc.h:55:
warning: `va_start' redefined
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.3/include/va-sparc.h:81:
warning: this is the location of the previous definition

This problem occurs on SunOS 4.1.3 with gcc 2.6.3 and SunOS 4.1.4 with
gcc 2.5.7 and 2.7.2.

I can compile successfully by adding '#define STDC_HEADERS 1' to
include/config.h.

But I'm not sure if this kludge won't create other problems/bugs when I
actually run squid.

Does anyone know what the clean solution is?

--
Frank Harper, TURBOMECA network manager
e-mail: Frank.Harper@turbomeca.fr
Tel: +33-559-12-52-18
Fax: +33-559-12-51-50
Received on Thu Aug 05 1999 - 09:47:23 MDT

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