Обсуждение: Since 09.03.0400 need to link to secur32.lib on Windows?

Поиск
Список
Период
Сортировка

Since 09.03.0400 need to link to secur32.lib on Windows?

От
Ants Aasma
Дата:
Hi,

I'm getting linker errors for GetUserNameExA when building on Win7SP1
with SDK7.1. Quick googling shows that this function comes from
secur32.lib. Indeed, adding it to CUSTOMLINKLIBS makes it build,
although I haven't tested if it still works yet. I'm not too
comfortable in Windows build systems to come up with a patch.

References were introduced by these two commits:
e85fbb2 refs/heads/master Use libpq for everything.
c4149c9 refs/tags/REL-09_03_0400 Additonal improvement on MSDTC enlistment.

Regards,
Ants Aasma
--
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt
Web: http://www.postgresql-support.de


Re: Since 09.03.0400 need to link to secur32.lib on Windows?

От
Heikki Linnakangas
Дата:
On 02/11/2015 12:39 AM, Ants Aasma wrote:
> Hi,
>
> I'm getting linker errors for GetUserNameExA when building on Win7SP1
> with SDK7.1. Quick googling shows that this function comes from
> secur32.lib. Indeed, adding it to CUSTOMLINKLIBS makes it build,
> although I haven't tested if it still works yet. I'm not too
> comfortable in Windows build systems to come up with a patch.
>
> References were introduced by these two commits:
> e85fbb2 refs/heads/master Use libpq for everything.
> c4149c9 refs/tags/REL-09_03_0400 Additonal improvement on MSDTC enlistment.

Hmm, this sounds familiar. Did commit b6329d97 not fix that?

- Heikki



Re: Since 09.03.0400 need to link to secur32.lib on Windows?

От
Ants Aasma
Дата:
On 02/11/2015 12:44 AM, Heikki Linnakangas wrote:
> On 02/11/2015 12:39 AM, Ants Aasma wrote:
>> Hi,
>>
>> I'm getting linker errors for GetUserNameExA when building on Win7SP1
>> with SDK7.1. Quick googling shows that this function comes from
>> secur32.lib. Indeed, adding it to CUSTOMLINKLIBS makes it build,
>> although I haven't tested if it still works yet. I'm not too
>> comfortable in Windows build systems to come up with a patch.
>>
>> References were introduced by these two commits:
>> e85fbb2 refs/heads/master Use libpq for everything.
>> c4149c9 refs/tags/REL-09_03_0400 Additonal improvement on MSDTC
>> enlistment.
>
> Hmm, this sounds familiar. Did commit b6329d97 not fix that?

By the looks of it it did, just hasn't been released yet. I didn't see
anything on the mailing list so I didn't think to check if it had
already been fixed in HEAD.

Thanks,
Ants Aasma