pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Compilation failure with nmake and MSTDC = no in HEAD
Date: Tue, 6 Jan 2015 11:40:27 +0200
Message-ID: <54ABAD8B.8000205@vmware.com> (raw)
In-Reply-To: <CAB7nPqTazk6AE0GsJJKQ+UMZ1wC4kgf_k_z+LMQk8KZoGEgn5g@mail.gmail.com>
References: <CAB7nPqTazk6AE0GsJJKQ+UMZ1wC4kgf_k_z+LMQk8KZoGEgn5g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 01/06/2015 07:30 AM, Michael Paquier wrote:
> Hi all,
>
> I noticed that the build with nmake is broken when using MSDTC = no
> becaus of e85fbb (libpq switch):
> setup.c(448) : warning C4013: 'CALL_GetTransactionObject' undefined;
> assuming extern returning int
> setup.c(448) : warning C4047: '=' : 'void *' differs in levels of
> indirection from 'int'
> setup.c(465) : warning C4013: 'CALL_ReleaseTransactionObject'
> undefined; assuming extern returning int
> Attached is a patch fixing the problem, simplifying at the same time
> test_connection in setup.c where I think the boolean flag withDtc is
> not needed.

That's not right. The withDtc parameter indicates whether the 
test_connection function is supposed to test enlistment with DTC or not. 
When you click the "Test" button on the main page on the configuration 
dialog, it's supposed to just test connecting, not DTC enlistment. When 
you click "Test" on the 3rd page in the "Datasource" settings dialog, 
then and only then it's supposed to test DTC enlistment. With your 
patch, it will always test enlistment if the driver supports it.

I put a simple #ifdef in the withDtc block in test_connection instead. 
The build works now.

- Heikki



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (3+ messages)  latest in thread

Message-ID: <54ABAD8B.8000205@vmware.com>
Permalink:  ../54ABAD8B.8000205@vmware.com/
Also on:    postgresql.org/message-id/54ABAD8B.8000205@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, michael.paquier@gmail.com
  Subject: Re: Compilation failure with nmake and MSTDC = no in HEAD
  In-Reply-To: <54ABAD8B.8000205@vmware.com>
  References: <CAB7nPqTazk6AE0GsJJKQ+UMZ1wC4kgf_k_z+LMQk8KZoGEgn5g@mail.gmail.com> <54ABAD8B.8000205@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox