Обсуждение: Compile breakage

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

Compile breakage

От
Grant Finnemore
Дата:
RHL 9.0

cvs HEAD, fresh update

make maintainer-clean
./configure --with-java --prefix=/home/grant/bin/pgsql/ \    --with-integer-datetimes --enable-debug --enable-cassert
make

yields:
gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -I../../../src/include -D_GNU_SOURCE   -c -o vacuum.o 
vacuum.c
vacuum.c: In function `vac_init_rusage':
vacuum.c:3122: storage size of `tz' isn't known
vacuum.c:3125: warning: implicit declaration of function `gettimeofday'
vacuum.c:3122: warning: unused variable `tz'
make[3]: *** [vacuum.o] Error 1

Regards,
Grant


Re: Compile breakage

От
Christopher Kings-Lynne
Дата:
I get this:

gmake[4]: Entering directory 
`/space/1/home/chriskl/pgsql/src/backend/access/gist'
gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -I../../../../src/include   -c -o gist.o gist.c -MMD
In file included from ../../../../src/include/commands/vacuum.h:18,                 from gist.c:22:
/usr/include/sys/resource.h:58: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:59: field `ru_stime' has incomplete type
In file included from gist.c:22:
../../../../src/include/commands/vacuum.h:118: field `tv' has incomplete 
type
gmake[4]: *** [gist.o] Error 1


Grant Finnemore wrote:

> RHL 9.0
> 
> cvs HEAD, fresh update
> 
> make maintainer-clean
> ./configure --with-java --prefix=/home/grant/bin/pgsql/ \
>     --with-integer-datetimes --enable-debug --enable-cassert
> make
> 
> yields:
> gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes 
> -Wmissing-declarations -I../../../src/include -D_GNU_SOURCE   -c -o 
> vacuum.o vacuum.c
> vacuum.c: In function `vac_init_rusage':
> vacuum.c:3122: storage size of `tz' isn't known
> vacuum.c:3125: warning: implicit declaration of function `gettimeofday'
> vacuum.c:3122: warning: unused variable `tz'
> make[3]: *** [vacuum.o] Error 1
> 
> Regards,
> Grant
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>               http://www.postgresql.org/docs/faqs/FAQ.html


Re: Compile breakage

От
Tom Lane
Дата:
I may have removed a few too many "#include <sys/time.h>" lines.
        regards, tom lane