i upgraded gnulib in a project recently and started getting failures in
gettime.c when building with a mingw32 toolchain

the gnulib commit i'm using is dcc2f67b6ffab6e9def088ccbf7627edcda4bbac. 
newer changes dont appear to be related.

here is the build output (/proj/ is a truncated path to make reading easier):
if i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I/proj/gnulib/lib -I../..     -g
-O2 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -Wno-unused-function
-I/usr/local/src/blackfin/toolchains/win32/20090618/libftdi/destdir/include
-MT gettime.o -MD -MP -MF ".deps/gettime.Tpo" -c -o gettime.o
/proj/gnulib/lib/gettime.c; \
        then mv -f ".deps/gettime.Tpo" ".deps/gettime.Po"; else rm -f
".deps/gettime.Tpo"; exit 1; fi
In file included from /proj/gnulib/lib/gettime.c:22:
/proj/gnulib/lib/timespec.h:26: warning: "struct timespec" declared inside 
parameter list
/proj/gnulib/lib/timespec.h:26: warning: its scope is only this definition or 
declaration, which is probably not what you want
/proj/gnulib/lib/timespec.h:27: error: parameter `a' has incomplete type
/proj/gnulib/lib/timespec.h:27: error: parameter `b' has incomplete type
/proj/gnulib/lib/timespec.h:33: warning: "struct timespec" declared inside 
parameter list
/proj/gnulib/lib/timespec.h:34: warning: "struct timespec" declared inside 
parameter list
/proj/gnulib/lib/gettime.c:29: warning: "struct timespec" declared inside 
parameter list
/proj/gnulib/lib/gettime.c:30: error: conflicting types for 'gettime'
/proj/gnulib/lib/timespec.h:33: error: previous declaration of 'gettime' was 
here
/proj/gnulib/lib/gettime.c:30: error: conflicting types for 'gettime'
/proj/gnulib/lib/timespec.h:33: error: previous declaration of 'gettime' was 
here
/proj/gnulib/lib/gettime.c: In function `gettime':
/proj/gnulib/lib/gettime.c:43: error: dereferencing pointer to incomplete type
/proj/gnulib/lib/gettime.c:44: error: dereferencing pointer to incomplete type
make[2]: *** [gettime.o] Error 1

the config.log is attached
-mike

Attachment: config.log.bz2
Description: application/bzip

Reply via email to