From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
Cc: | Boszormenyi Zoltan <zb(at)cybertec(dot)at>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Hans-Jürgen Schönig <hs(at)cybertec(dot)at>, Ants Aasma <ants(at)cybertec(dot)at>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: Building on MinGW |
Date: | 2013-02-28 21:20:07 |
Message-ID: | 512FCA07.5080303@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 02/28/2013 11:37 AM, Jeff Janes wrote:
>
> Did you copy libpq.dll from the lib directory to the bin
> directory? If not, try that and see if it fixes the problem.
>
>
>
> I've now done that, and it did fix the problem. I can start the
> database with pg_ctl.exe if I want.
>
> Should the makefile do this for us? Or is there a way to configure so
> that is not needed (whatever the MinGW equivalent is to an rpath?)
To the best of my knowledge, there isn't one really. The buildfarm
script has for a long time copied the *pq.dll to the install bin
directory, and added the latter to the PATH. This might be a belt and
braces (that's "suspenders" for Americans) approach, but it's worked for
a long time ;-) There is probably a good case for "make install" to do
this copy on Windows.
>
> psql.exe now runs, but it seems to be broken. It hangs forever on
> attempting to connect to any server (either the local one compiled
> with MinGW, or a remote server running on Linux).
>
I have not seen this. When I get a chance I will try to reproduce it.
> psql on the remote linux machine can connect back to the Windows
> server compiled with MinGW, so the problem seems to be with MinGW's
> psql.exe, not its server.
You built this natively, not with a cross-compiler, right?
>
> Doesn't "make check" have to use something which is morally equivalent
> to psql.exe? If so, how can it pass if psql.exe is broken?
No, it *uses* psql. If "make check" is working then so is psql. There is
zero chance of it working with a broken psql.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2013-02-28 21:43:40 | Re: sql_drop Event Trigger |
Previous Message | Dimitri Fontaine | 2013-02-28 21:15:33 | Re: sql_drop Event Trigger |