compiling postgres in winxp

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: compiling postgres in winxp
Date: 2007-12-01 06:12:09
Message-ID: c2d9e70e0711302212m6a5cd30ap61285c50f6fbb5f7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

i'm trying to compile postgres in winxp for the first time in order to
try recent Magnus patch discussed here
http://archives.postgresql.org/pgsql-hackers/2007-11/msg01307.php

i've installed mingw, msys and msysDTK

i tried "./configure --without-zlib" and then "make install" and get this error.

someone can give a me a clue here?

make[2]: Entering directory `/home/General/postgresql-8.2.5/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-I../../src/port -DFRONTEND -I../../src/include
-I./src/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32" -c -o getrusage.o getrusage.c
In file included from ../../src/include/rusagestub.h:17,
from getrusage.c:18:
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:27: error:
redefinition of `struct timezone'
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40: error:
conflicting types for 'gettimeofday'
../../src/include/port.h:292: error: previous declaration of
'gettimeofday' was here
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40: error:
conflicting types for 'gettimeofday'
../../src/include/port.h:292: error: previous declaration of
'gettimeofday' was here
make[2]: *** [getrusage.o] Error 1
make[2]: Leaving directory `/home/General/postgresql-8.2.5/src/port'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/General/postgresql-8.2.5/src'
make: *** [install] Error 2

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kris Jurka 2007-12-01 06:41:27 Re: compiling postgres in winxp
Previous Message Tom Lane 2007-12-01 04:37:04 Re: PostGreSQL and recursive queries...