BUG #8151: client libraries not working on mingw-w64 gcc 4.8 - Mailing list pgsql-bugs

From antreimer@gmail.com
Subject BUG #8151: client libraries not working on mingw-w64 gcc 4.8
Date
Msg-id E1UbELM-0007NK-5L@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8151
Logged by:          Philip A Reimer
Email address:      antreimer@gmail.com
PostgreSQL version: 9.2.4
Operating system:   mingw-w64
Description:        =


I'm getting this error when running psql compiled with gcc 4.8 but don't
when it is compiled with gcc 4.7. To compile with gcc 4.7 I used
http://hivelocity.dl.sourceforge.net/project/mingw-w64/Toolchains%20targett=
ing%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/i686-w64-mingw32-gcc-=
4.7.4-release-linux64_rubenvb.tar.xz
and to compile with gcc 4.8 I used both
http://hivelocity.dl.sourceforge.net/project/mingw-w64/Toolchains%20targett=
ing%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/i686-w64-mingw32-gcc-=
4.8.0-linux64_rubenvb.tar.xz
and https://aur.archlinux.org/packages/mingw-w64-gcc/. I compiled on both
windows 7 and ArchLinux with the same results.

psql --host=3D192.168.40.240

psql: could not connect to server: Operation would block (0x00002733/10035)

Is the server running on host "192.168.40.240" and accepting

TCP/IP connections on port 5432?

To compile on ArchLinux I used this script. Postgresql was extracted to
mingw-dir\src. The script was also placed in mingw-dir\src

pkgver=3D9.2.4
builddir=3D$(pwd)/postgresql-9.2.4-build
export PATH=3D$(pwd)/../bin:$PATH
export PATH=3D$(pwd)/../i686-w64-mingw32/bin:$PATH
cd postgresql-$pkgver
./configure --host=3Di686-w64-mingw32 --prefix=3D$builddir/  --without-zlib
for dir in src/interfaces src/bin/pg_config src/bin/psql; do
  make -C $dir install
done
strip -x $builddir/lib/*.dll
strip -g $builddir/lib/*.dll
strip -g $builddir/lib/*.a

pgsql-bugs by date:

Previous
From: Willy-Bas Loos
Date:
Subject: Re: BUG #8154: pg_dump throws error beacause of field called "new".
Next
From: "Chaya Gilburt"
Date:
Subject: Odd Behavior After Multiple Deletes