Hi!
The line:
../../src/include/c.h:80:26: pg_config_os.h: No such file or directory
looks like your configure failed. It should include pg_config_os.h -
configure will symlink (which on mingw means copy, more or less)
port/win32.h. You could manually copy port/win32.h to pg_config_os.h,
but if configure is failing, I'm sure there will be other issues.
This includefile is very critical - it contains most of the definitions
for win32 fixes. So just dropping an empty file in there will give you a
lot of more problems than just gettimeofday.
Did configure give you any errors or warnings?
//Magnus
> -----Original Message-----
> From: Cyrille Chepelov [mailto:cyrille@chepelov.org]
> Sent: Thursday, April 01, 2004 5:49 PM
> To: pgsql-hackers-win32@postgresql.org
> Subject: [pgsql-hackers-win32] Build failure
>
>
> Greetings,
>
> I'm trying without much luck to compile the 31MAR04 snapshot
> of PostgreSQL on a Win2K box.
>
> I have installed MSYS-1.09 MSYS-DTK-1.01, GNU Bison 1.875.0,
> MinGW 3.1.0, some Perl interpreter (I think I'm using the one
> from Cygwin, hopefully that's OK), and ./configure'd
> --without-zlib, and typed make.
>
> Got the attached error log.
>
> Re-ran make with -k, then again, and got the second error log.
>
> Fiddled with -DWIN32, with spraying #defines -- no dice, c.h
> always ends up including pg_config_os.h
>
> I ended up touching pg_config_os.h to see where this would
> lead, but gettimeofday.c wasn't happy.
>
> Obviously, I missed an obvious step somewhere?
>
> -- Cyrille
>
> --
>