Re: `__builtin_va_alist' undeclared - Mailing list pgsql-admin

From Tom Lane
Subject Re: `__builtin_va_alist' undeclared
Date
Msg-id 26552.1063289574@sss.pgh.pa.us
Whole thread Raw
In response to `__builtin_va_alist' undeclared  ("Kalyan (FS)" <kalyan@frontline.com.sg>)
Responses Re: `__builtin_va_alist' undeclared  ("Kalyan (FS)" <kalyan@frontline.com.sg>)
List pgsql-admin
"Kalyan (FS)" <kalyan@frontline.com.sg> writes:
> I am installing postgresql-7.3.4 on solaris sparc 2.8.

> gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
> e -I/usr/local/include -I/usr/include  -c -o
>  stringinfo.o stringinfo.c
> stringinfo.c: In function `appendStringInfo':
> stringinfo.c:126: `__builtin_va_alist' undeclared (first use in this
> function)

It seems not to be picking up the gcc-specific version of <stdarg.h>.

I don't know how you configured PG, but if I were you I'd get rid of
the explicit -I/usr/include --- that is unnecessary, and it is very
likely causing the Solaris-standard versions of include files to be
picked up instead of the gcc-specific ones.  For that matter, I rather
doubt that you need -I/usr/local/include ... every gcc installation
I've ever dealt with will search that by default, too.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: System catalog for triggers
Next
From: Wim Bertels
Date:
Subject: Pam Ldap (debian) solved