Hello people.
Well, just back to playing with check under mingw32.
I just started from scratch right again with cvs check and latest bazaar
gnupdf. Both under windows or cross-compiling brings some errors concerning
types.
The first one:
/bin/sh ../libtool --tag=CC --mode=compile i586-mingw32msvc-gcc
-DHAVE_CONFIG_H -I. -I../lib -I./base -I./object -I./document -Wall
-fno-strict-aliasing -g -O2 -MT pdf-base.lo -MD -MP -MF .deps/pdf-base.Tpo
-c -o pdf-base.lo `test -f 'base/pdf-base.c' || echo './'`base/pdf-base.c
i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../lib -I./base -I./object
-I./document -Wall -fno-strict-aliasing -g -O2 -MT pdf-base.lo -MD -MP -MF
.deps/pdf-base.Tpo -c base/pdf-base.c -DDLL_EXPORT -DPIC -o
.libs/pdf-base.o
In file included from ./base/pdf-fsys.h:35,
from ./base/pdf-stm.h:55,
from ./base/pdf-base.h:36,
from base/pdf-base.c:27:
./base/pdf-time.h:155: warning: type defaults to 'int' in declaration of
'FILETIME'
./base/pdf-time.h:155: error: expected ';', ',' or ')' before '*' token
And the piece of code from pdf-time.h:
#ifdef PDF_HOST_WIN32
/* Windows-specific function to set the time with a pdf_i64_t */
pdf_status_t
pdf_time_w32_set_from_filetime (pdf_time_t time_var,
const FILETIME *p_filetime);
#endif
This file is missing a windows include for the FILETIME type, if I add the
include inside this #ifdef, everything goes fine, but placing it on the top
with other includes (and under the same preprocessor condition) messes up
the autogenerated pdf.h that's used later for compiling tortutils. I don't
really know which is the best place for this include, as the first fix seems
untidy.
And, if I get that fixed, when compiling tortutils, I get
i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../lib
-I../../src -I../../src/base -I../../src/object -I../../torture/tortutils
-DTEST_DATA_PATH=\"../../torture/testdata\" -g -g -O2 -MT
pdf-fsys-file-open.o -MD -MP -MF .deps/pdf-fsys-file-open.Tpo -c -o
pdf-fsys-file-open.o `test -f 'base/fsys/pdf-fsys-file-open.c' || echo
'./'`base/fsys/pdf-fsys-file-open.c
In file included from base/fsys/pdf-fsys-file-open.c:27:
../../torture/tortutils/tortutils.h:54: error: expected declaration
specifiers or '...' before 'off_t'
which is fixed by including sys/types.h.