Problem in buidind Postgres with mingw

From: "claudiorainoldi\(at)libero\(dot)it" <claudiorainoldi(at)libero(dot)it>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Problem in buidind Postgres with mingw
Date: 2006-11-14 09:59:24
Message-ID: J8PT30$EBB7D14EEAEC95DC16139AFFA69F1306@libero.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello
we've some trouble with buildinq postgreSQL (8.1.4.tar.gz) from code with Mingw on a windows xp home machine.
We've installed mingw 5.0.3 and msys 1.0.10.
>From the msys console we've typed the following command:
$ LDFLAGS=-lstdc++ configure --without-zlib
and that's seems ok.
then we do:
$make
the outcome is the following:

Paolo Castiglioni(at)ACER_CASTY /d/msys/1.0/home/src/postgresql-8.1.4
$ make
make -C doc all
make[1]: Entering directory `/d/msys/1.0/home/src/postgresql-8.1.4/doc'
gzip -d -c man.tar.gz | /bin/tar xf -
for file in man1/*.1; do \
mv $file $file.bak && \
sed -e 's/\\fR(l)/\\fR(7)/' $file.bak >$file && \
rm -f $file.bak || exit; \
done
/bin/sh.exe ../config/mkinstalldirs man7
mkdir -p -- man7
for file in manl/*.l; do \
sed -e '/^\.TH/s/"l"/"7"/' \
-e 's/\\fR(l)/\\fR(7)/' \
$file >man7/`basename $file | sed 's/.l$/.7/'` || exit; \
done
make[1]: Leaving directory `/d/msys/1.0/home/src/postgresql-8.1.4/doc'
make -C src all
make[1]: Entering directory `/d/msys/1.0/home/src/postgresql-8.1.4/src'
make -C port all
make[2]: Entering directory `/d/msys/1.0/home/src/postgresql-8.1.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/po
rt/win32" -c -o crypt.o crypt.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/po
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/po
rt/win32" -c -o getrusage.o getrusage.c
In file included from ../../src/include/rusagestub.h:17,
from getrusage.c:18:
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/time.h:27: error:
redefinition of `struct timezone'
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/time.h:40: error:
conflicting types for 'gettimeofday'
../../src/include/port.h:266: error: previous declaration of 'gettimeofday' was
here
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../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 `/d/msys/1.0/home/src/postgresql-8.1.4/src/port'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/msys/1.0/home/src/postgresql-8.1.4/src'
make: *** [all] Error 2

Please can somebody help us?
Claudio.
Maurizio.
Paolo.

------------------------------------------------------
Chi punta sullÂ’inglese naturale Wall Street Institute, vince un English Box! Scopri come ritirare i tuoi premi, clicca qui!
http://click.libero.it/wallstreet14nov

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rune Bromer 2006-11-14 12:49:25 Segmentation fault with HEAD.
Previous Message du li 2006-11-14 02:52:44 Help me pack up postgresDB with my windows application.