Re: compile error - Mailing list pgsql-ports

From Tom Lane
Subject Re: compile error
Date
Msg-id 2750.1075850516@sss.pgh.pa.us
Whole thread Raw
In response to compile error  (Patrick J Barabe <pbarabe@U.Arizona.EDU>)
List pgsql-ports
Patrick J Barabe <pbarabe@U.Arizona.EDU> writes:
> hi, i'm getting a compile error on Solaris 9 with the following config
> options:
> i previously had successfully compiled and installed version 7.3.2.
> ...
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/include -I/opt/local/include
> -I/usr/include -I/opt/sfw/include  -c -o stringinfo.o stringinfo.c
> stringinfo.c: In function `appendStringInfo':
> stringinfo.c:73: `__builtin_va_alist' undeclared (first use in this
> function)
> stringinfo.c:73: (Each undeclared identifier is reported only once
> stringinfo.c:73: for each function it appears in.)

This looks like something broken in your <stdarg.h> system header.
Did you change compiler, header files, or --with-includes option
compared to your 7.3.2 build?  I'm suspicious that the --with-includes
may have pulled in an incorrect definition for va_start et al.
gcc tends to want its own definitions for these macros and can get
indigestion from the vendor definitions ...

            regards, tom lane

pgsql-ports by date:

Previous
From: Patrick J Barabe
Date:
Subject: compile error
Next
From: Chris Langlois
Date:
Subject: pgsql-7.4.1 build on darwin-x86