Обсуждение: compile error

Поиск
Список
Период
Сортировка

compile error

От
Patrick J Barabe
Дата:
hi, i'm getting a compile error on Solaris 9 with the following config
options:

% ./configure
--with-includes=/opt/local/include:/usr/include:/opt/sfw/include
--with-libraries=/opt/local/lib/:/usr/lib:/opt/sfw/lib --with-java

i previously had successfully compiled and installed version 7.3.2.
please let me know if i can provide other information to help sort this
out.

regards,
patrick barabe


compile error:

% gmake
...
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.)
stringinfo.c:69: warning: `args' might be used uninitialized in this
function
gmake[3]: *** [stringinfo.o] Error 1
gmake[3]: Leaving directory
`/opt/local/src/postgresql-7.4.1/src/backend/lib'
gmake[2]: *** [lib-recursive] Error 2
gmake[2]: Leaving directory
`/opt/local/src/postgresql-7.4.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/local/src/postgresql-7.4.1/src'
gmake: *** [all] Error 2


Re: compile error

От
Tom Lane
Дата:
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