Re: compile error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Patrick J Barabe <pbarabe(at)U(dot)Arizona(dot)EDU>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: compile error
Date: 2004-02-03 23:21:56
Message-ID: 2750.1075850516@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Patrick J Barabe <pbarabe(at)U(dot)Arizona(dot)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

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Chris Langlois 2004-02-11 02:20:42 pgsql-7.4.1 build on darwin-x86
Previous Message Sami Kuhmonen 2004-02-03 12:51:24 Re: port for interix