Compile breakage

Started by Grant Finnemoreover 21 years ago3 messages
#1Grant Finnemore
grantf@guruhut.co.za

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

#2Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Grant Finnemore (#1)
Re: Compile breakage

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:

Show quoted text

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

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#2)
Re: Compile breakage

I may have removed a few too many "#include <sys/time.h>" lines.

regards, tom lane