Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPnId-0007XA-2H for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Jul 2016 08:56:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bPnIc-0005Ou-LK for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Jul 2016 08:56:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bPnIG-000504-Ef for pgsql-odbc@postgresql.org; Wed, 20 Jul 2016 08:55:52 +0000 Received: from mail1.asahi-net.or.jp ([202.224.39.197]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPnIC-0000JT-12 for pgsql-odbc@postgresql.org; Wed, 20 Jul 2016 08:55:51 +0000 Received: from [192.168.1.3] (h216215.dynamic.ppp.asahi-net.or.jp [61.114.216.215]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id E1AEB24C5F; Wed, 20 Jul 2016 17:55:42 +0900 (JST) Subject: Re: Errors building on windows To: Dave Cramer References: From: "Inoue, Hiroshi" Cc: "pgsql-odbc@postgresql.org" Message-ID: <578F3C8E.1080307@dream.email.ne.jp> Date: Wed, 20 Jul 2016 17:55:42 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Hi Dave, Thanks for the report. I would fix it. regards, Hiroshi Inoue On 2016/07/20 0:43, Dave Cramer wrote: > I am getting the following errors: > > loadlib.c(114): error C2373: '__pfnDliFailureHook2': redefinition; > different type modifiers > C:\Program Files (x86)\Microsoft Visual Studio > 14.0\VC\INCLUDE\delayimp.h(141): note: see declaration of '__pfnDliFailur > eHook2' > loadlib.c(115): error C2373: '__pfnDliNotifyHook2': redefinition; > different type modifiers > C:\Program Files (x86)\Microsoft Visual Studio > 14.0\VC\INCLUDE\delayimp.h(134): note: see declaration of '__pfnDliNotify > Hook2' > loadlib.c(129): error C2166: l-value specifies const object > loadlib.c(190): error C2166: l-value specifies const object > loadlib.c(198): error C2166: l-value specifies const object > loadlib.c(229): error C2166: l-value specifies const object > loadlib.c(237): error C2166: l-value specifies const object > > Which appear to be from: > > // Prior to Visual Studio 2015 Update 3, these hooks were non-const. > They were > // made const to improve security (global, writable function pointers > are bad). > // If for backwards compatibility you require the hooks to be > writable, define > // the macro DELAYIMP_INSECURE_WRITABLE_HOOKS prior to including this > header and > // provide your own non-const definition of the hooks. > ExternC > #ifndef DELAYIMP_INSECURE_WRITABLE_HOOKS > const > #endif > PfnDliHook __pfnDliNotifyHook2; > > // This is the failure hook, dliNotify = {dliFailLoadLib|dliFailGetProc} > ExternC > #ifndef DELAYIMP_INSECURE_WRITABLE_HOOKS > const > #endif > PfnDliHook __pfnDliFailureHook2; > > > It would appear we need to define DELAYIMP_INSECURE_WRITABLE_HOOKS. Is > there another way to set the hook to NULL > > Dave Cramer -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc