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

From: Rainer Perske <perske@dont-contact.us>
Date: Wed, 29 Sep 1999 12:45:51 +0200 (MES)

-----BEGIN PGP SIGNED MESSAGE-----

Hello,

> I'm compiling squid 2.2-STABLE5 on AIX 4.3.2 with gcc 2.95.
>
> I get the error message :
>
> MemBuf.c:217: macro `va_start' used with just one arg
> make: The error code from the last command is 1.
>
> To solve this i've added 'fmt' or 'format' as second argument in MemBuf.c
> and the others where i got the error.
>
> Is this OK?

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)

cu
- --
Rainer Perske (Webmaster/News/System/PGP-Admin)
WWU Münster Zentrum für Informationsverarbeitung (Uni-Rechenzentrum)
http://www.uni-muenster.de/ZIV/Mitarbeiter/RainerPerske.html (Beruf)
http://www.muenster.de/~perske (Privat/Sport) (darf geDUzt werden)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQDVAwUBN/Ht4s9UbnbjB8C5AQGt+wX/aYNq2kqnZ+R+0wryvoVqUKIsidi3A+TI
DCXgTr0MNW9igMR4NxTmwe8IkNEYdoMSiEU5/NDO8s2XX5SVI+YWubvDHikk2u1a
Jww1xC68FIp1OyT6JtdCQ/XJGFDgG+O0wUa53ejMtCs1gJSWlmJPrCFEZPApwjlx
nvQRK0gou5ZqeeMOyD/o5iz25kF/ys9nquSdo1qlBPP+tRYV7jw8FLOdfbeeTWys
pza+jSZ2U83jvfkZNe8FtueL+SRPvURk
=NXpO
-----END PGP SIGNATURE-----
Received on Wed Sep 29 1999 - 05:01:16 MDT

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