gmake does not work for Postgresql-8.1.4

From: Mike Bassett <Mike_Bassett(at)uk(dot)ibm(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: gmake does not work for Postgresql-8.1.4
Date: 2006-09-27 08:29:04
Message-ID: OF0B6322E3.F7E28F6D-ON802571F5.007ECEAF-802571F6.002E9B4B@uk.ibm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Gmake does not work for the postgresql-8.1.4 source code on Windows XP.

I created MinGW with the MinGW 5.0.3.exe (both current & applicant) and
MySyS 1.0.10.
Gmake was not available so I used the included mysys make – GNU version 79.
After succeeding with “./configure –without-zlib” it then failed on “make”
as follows:

rt/win32" -c -o fseeko.o fseeko.c
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:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:27:
error: redefinition of `struct timezone'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'
../../src/include/port.h:266: error: previous declaration of 'gettimeofday'
was here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'
../../src/include/port.h:266: error: previous declaration of 'gettimeofday'
was here
make[2]: *** [getrusage.o] Error 1
make[2]: Leaving directory `/c/postgresql-8.1.4/src/port'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/c/postgresql-8.1.4/src'
make: *** [install] Error 2.

I tracked down zlib but never did figure out where to place it.

I retried using the guide in libpqxx which said: extract, compile & install
zlib by ./configure –prefix=c:/mingw/local && make && make && make install
– this failed.

I then tried ./configure –prefix=c:/mingw/local
–with-includes=c:/mingw/local/include –with-libs=c:/mingw/local/lib make &&
make install but it had an issue with make.

Mike Bassett
e-mail Mike_Bassett(at)UK(dot)IBM(dot)COM

Browse pgsql-bugs by date

  From Date Subject
Next Message Juergen Zimmermann 2006-09-27 13:10:20 BUG #2657: 8.2beta1: Startup failures on Windows platform
Previous Message Magnus Hagander 2006-09-27 07:47:25 Re: BUG #2642: Connection problems without IPv6