pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Dave Cramer <davecramer@gmail.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Errors building on windows
Date: Wed, 20 Jul 2016 17:55:42 +0900
Message-ID: <578F3C8E.1080307@dream.email.ne.jp> (raw)
In-Reply-To: <CADK3HHJxHHbbsrPF9tyXCz0bWRwSN8JLv7O_iKGM1GUT0VkKdA@mail.gmail.com>
References: <CADK3HHJxHHbbsrPF9tyXCz0bWRwSN8JLv7O_iKGM1GUT0VkKdA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
view thread (2+ messages)
Message-ID: <578F3C8E.1080307@dream.email.ne.jp> Permalink: ../578F3C8E.1080307@dream.email.ne.jp/ Also on: postgresql.org/message-id/578F3C8E.1080307@dream.email.ne.jp ·
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: h-inoue@dream.email.ne.jp, davecramer@gmail.com Subject: Re: Errors building on windows In-Reply-To: <578F3C8E.1080307@dream.email.ne.jp> References: <CADK3HHJxHHbbsrPF9tyXCz0bWRwSN8JLv7O_iKGM1GUT0VkKdA@mail.gmail.com> <578F3C8E.1080307@dream.email.ne.jp> * 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