Thread: Problem in buidind Postgres with mingw

Problem in buidind Postgres with mingw

From
"claudiorainoldi\@libero\.it"
Date:
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@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




Re: Problem in buidind Postgres with mingw

From
Andrew Dunstan
Date:
claudiorainoldi@libero.it wrote:
> Hello
> we've some trouble with buildinq postgreSQL (8.1.4.tar.gz) from code with Mingw on a windows xp home machine.
>   

My experience is that XP-Pro is a better platform for building postgres 
than XP-HE.

> 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
>   

Why are you trying to link in this library? That seems dangerous, to say 
the least.


> and that's seems ok.
> then we do:
> $make
> the outcome is the following:
>
> Paolo Castiglioni@ACER_CASTY /d/msys/1.0/home/src/postgresql-8.1.4
>   

Why did you not install msys and mingw in the standard locations and 
then just use the standard paths (/usr, /home etc).


cheers

andrew