va_list warnings on Solaris?

Neal Norwitz neal at
Thu Aug 29 00:48:57 CEST 2002

On Wed, 28 Aug 2002 13:16:27 -0400, Skip Montanaro wrote:

> I haven't used a Solaris system in several years.  Today I am building
> 2.2.1 on a SunOS 5.8 system (is that Solaris 8?) using gcc 2.95.3 (not
> exactly sure what version of glibc - how do I check without the rpm
> command?).  I get lots of warnings about va_list being redefined, e.g.:
>     gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I../Include
>     -DPy_BUILD_CORE -o Objects/abstract.o ../Objects/abstract.c In file
>     included from ../Include/stringobject.h:10,
>                      from ../Include/Python.h:83,
>                      from ../Objects/abstract.c:4:
>     /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/stdarg.h:170:
>     warning: redefinition of `va_list'
> Is this to be expected?

I get this as well.  I believe the warning started after I upgraded Solaris,
but I'm not sure.  I didn't build gcc locally.  If I remember correctly 
the collision was between a gcc header file (stdarg.h shown above) and 
a Solaris header file in /usr/include.

Python seems to work fine otherwise, but I only run the unit 


More information about the Python-list mailing list