Compile Postgres 8.2.4 under Windows failing - Mailing list pgsql-admin

From Verna Violet
Subject Compile Postgres 8.2.4 under Windows failing
Date
Msg-id BAY103-F13DEA4628C891AB6141ECAC420@phx.gbl
Whole thread Raw
List pgsql-admin
I am currently running Windows XP Pro and need to re-compile PostgreSQL as
we need to increase the length of the NAMEDATALENGTH parameter to 128.

Before attempting to change this value I thought I would see if I could
successfully compile PostgreSQl under Windows.

I downloaded and installed all options in MingGW-5.1.3.exe to the directory
c:\MinGW
I downloaded postgresql-8.2.4.tar.bz2 and extracted the files.

I started MSys and cd to the location of Postgres extract
I ran ./configure --without-zlib successfully - exit 0
When I run make install I get the following output and can't work out what's
wrong.

make -C doc install
make[1]: Entering directory
`/home/Verna/sources/PostgreSQL/postgresql-8.2.4/doc'
gzip -d -c ./postgres.tar.gz | ( cd /usr/local/pgsql/doc/html && /bin/tar xf
- )
for file in man1/*.1 man7/*.7 ; do \
  /bin/sh.exe ../config/install-sh -c -m 644 $file
/usr/local/pgsql/man/$file || exit; \
done
make[1]: Leaving directory
`/home/Verna/sources/PostgreSQL/postgresql-8.2.4/doc'
make -C src install
make[1]: Entering directory
`/home/Verna/sources/PostgreSQL/postgresql-8.2.4/src'
/bin/sh.exe ../config/mkinstalldirs '/usr/local/pgsql/lib/pgxs/src'
/bin/sh.exe ../config/install-sh -c -m 644 Makefile.global
'/usr/local/pgsql/lib/pgxs/src/Makefile.global'
/bin/sh.exe ../config/install-sh -c -m 644 Makefile.port
'/usr/local/pgsql/lib/pgxs/src/Makefile.port'
/bin/sh.exe ../config/install-sh -c -m 644 ./Makefile.shlib
'/usr/local/pgsql/lib/pgxs/src/Makefile.shlib'
/bin/sh.exe ../config/install-sh -c -m 644 ./nls-global.mk
'/usr/local/pgsql/lib/pgxs/src/nls-global.mk'
make -C port install
make[2]: Entering directory
`/home/Verna/sources/PostgreSQL/postgresql-8.2.4/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:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/time.h:27:
error: redefinition of `struct timezone'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'
../../src/include/port.h:292: error: previous declaration of 'gettimeofday'
was here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../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/Verna/sources/PostgreSQL/postgresql-8.2.4/src/port'
make[1]: *** [install] Error 2
make[1]: Leaving directory
`/home/Verna/sources/PostgreSQL/postgresql-8.2.4/src'
make: *** [install] Error 2

What am I doing wrong?

Cheers

_________________________________________________________________
Advertisement: Its simple! Sell your car for just $30 at carsales.com.au

http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838588&_t=754951090&_r=tig&_m=EXT


pgsql-admin by date:

Previous
From: "'Srinivas Kotapally'"
Date:
Subject: Re: Intermittent Postgres Connection refused Errors (JDBC)
Next
From: Thomas Markus
Date:
Subject: infinite blocking statements in 8.2.3