Re: SSPI vs MingW

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: SSPI vs MingW
Дата
Msg-id 46A47DC3.4090205@postgresql.org
обсуждение исходный текст
Ответ на SSPI vs MingW  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: SSPI vs MingW
Re: SSPI vs MingW
Re: SSPI vs MingW
Список pgsql-hackers
Magnus Hagander wrote:
> I just came across yet another place where MingW isn't compatible with the
> windows api. Specifically, their libsecur32.a file lacks at least one
> function that is needed to implement SSPI authentication. The way I can see
> it, there are three ways to solve it:

Ugh.

> 1) Simply state that SSPI authentication in the backend cannot be built
> with mingw, and require msvc build for it (the msvc api follows the windows
> api, which is hardly surprising). We could add an autoconf test for it
> that'd pick up an updated libsecur32.a file if/when mingw release an
> update.

I prefer this option, if only because I have little interest in
supporting mingw any longer than necessarily, but I realise others may
want to use it so...

> 2) Ship our own secur32.def file, and automatically build an import library
> for it that we can link against. Because the function is present in the DLL
> file, this works fine.

Yuck.

> 3) Dynamically load the function at runtime, thus completely ignoring the
> need for an import library for it.

That gets my vote. It's relatively clean and non-kludgy.

Regards, Dave


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: 8.2 is 30% better in pgbench than 8.3
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: SSPI vs MingW