Обсуждение: compilation fail

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

compilation fail

От
Marek Florianczyk
Дата:
Output from cimpilation:

gmake -C lib all
gmake[2]: Entering directory `/usr/ports/databases/postgresql/work/src/backend/lib'
cc -I../../include -I../../backend   -I/usr/local/include -O -pipe -I..    -c -o stringinfo.o stringinfo.c
stringinfo.c: In function `appendStringInfo':
stringinfo.c:104: `va_list' undeclared (first use this function)
stringinfo.c:104: (Each undeclared identifier is reported only once
stringinfo.c:104: for each function it appears in.)
stringinfo.c:104: parse error before `args'
stringinfo.c:121: `args' undeclared (first use this function)
gmake[2]: *** [stringinfo.o] Error 1
gmake[2]: Leaving directory `/usr/ports/databases/postgresql/work/src/backend/lib'
gmake[1]: *** [lib.dir] Error 2
gmake[1]: Leaving directory `/usr/ports/databases/postgresql/work/src/backend'
gmake: *** [all] Error 2
su-2.03#

My envoirments:
FreeBSD 3.4 release
gmake 3.78
Postgresql-7.0.3

Thanks for help
Marek

Re: compilation fail

От
Peter Eisentraut
Дата:
Marek Florianczyk writes:

> Output from cimpilation:
>
> gmake -C lib all
> gmake[2]: Entering directory `/usr/ports/databases/postgresql/work/src/backend/lib'
> cc -I../../include -I../../backend   -I/usr/local/include -O -pipe -I..    -c -o stringinfo.o stringinfo.c
> stringinfo.c: In function `appendStringInfo':
> stringinfo.c:104: `va_list' undeclared (first use this function)
> stringinfo.c:104: (Each undeclared identifier is reported only once
> stringinfo.c:104: for each function it appears in.)
> stringinfo.c:104: parse error before `args'
> stringinfo.c:121: `args' undeclared (first use this function)
> gmake[2]: *** [stringinfo.o] Error 1
> gmake[2]: Leaving directory `/usr/ports/databases/postgresql/work/src/backend/lib'
> gmake[1]: *** [lib.dir] Error 2
> gmake[1]: Leaving directory `/usr/ports/databases/postgresql/work/src/backend'
> gmake: *** [all] Error 2
> su-2.03#

Can you show me the config.log file?

> My envoirments:
> FreeBSD 3.4 release
> gmake 3.78
> Postgresql-7.0.3

All of these should probably be upgraded.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Re: compilation fail

От
Tom Lane
Дата:
Try removing the lines
    #ifdef STDC_HEADERS
    #endif
at lines 53 and 56 of src/include/c.h.

            regards, tom lane