Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8QdG-0000xL-1h for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Jan 2015 09:40:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y8QdF-0000vL-8n for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Jan 2015 09:40:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y8QdE-0000vE-Bj for pgsql-odbc@postgresql.org; Tue, 06 Jan 2015 09:40:56 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y8Qd9-0000YB-D7 for pgsql-odbc@postgresql.org; Tue, 06 Jan 2015 09:40:52 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 0CBB128184; Tue, 6 Jan 2015 01:40:49 -0800 (PST) Received: from EX13-CAS-007.vmware.com (EX13-CAS-007.vmware.com [10.113.191.57]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 07B68B151A; Tue, 6 Jan 2015 01:40:49 -0800 (PST) Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 6 Jan 2015 01:40:42 -0800 Message-ID: <54ABAD8B.8000205@vmware.com> Date: Tue, 6 Jan 2015 11:40:27 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Michael Paquier , PostgreSQL mailing lists Subject: Re: Compilation failure with nmake and MSTDC = no in HEAD References: In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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