I cannot get gmake to work for the postgresql-8.1.4 source code on Windows
XP.

I created MinGW with the MinGW 5.0.3.exe (both current & latest) 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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply via email to