Thread: Build errors latest CVS freebsd

Build errors latest CVS freebsd

From
Christopher Kings-Lynne
Date:
gmake distclean
./configure ...
gmake install

...
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing 
-g -I../../../../src/include   -c -o timestamp.o timestamp.c -MMD
timestamp.c: In function `GetCurrentTimestamp':
timestamp.c:955: storage size of `tp' isn't known
timestamp.c:957: warning: implicit declaration of function `gettimeofday'
timestamp.c:955: warning: unused variable `tp'
timestamp.c:954: warning: `result' might be used uninitialized in this 
function
gmake[4]: *** [timestamp.o] Error 1
gmake[4]: Leaving directory 
`/space/1/home/chriskl/pgsql-head/src/backend/utils/adt'
gmake[3]: *** [adt-recursive] Error 2
gmake[3]: Leaving directory 
`/space/1/home/chriskl/pgsql-head/src/backend/utils'
gmake[2]: *** [utils-recursive] Error 2
gmake[2]: Leaving directory `/space/1/home/chriskl/pgsql-head/src/backend'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/space/1/home/chriskl/pgsql-head/src'
gmake: *** [install] Error 2



Re: Build errors latest CVS freebsd

From
Tom Lane
Date:
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> timestamp.c: In function `GetCurrentTimestamp':
> timestamp.c:955: storage size of `tp' isn't known
> timestamp.c:957: warning: implicit declaration of function `gettimeofday'
> timestamp.c:955: warning: unused variable `tp'
> timestamp.c:954: warning: `result' might be used uninitialized in this 
> function

Wups.  Looks like Neil already fixed it though.
        regards, tom lane