From: | Peifeng Qiu <pqiu(at)pivotal(dot)io> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Compile with 64-bit kerberos on Windows |
Date: | 2019-04-16 09:17:50 |
Message-ID: | CABmtVJjYEXGZfQBpLTofvwDpakTCKGW2=xJ2g8hPe6-LB2PN9g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, hackers.
I'm trying to build 64-bit windows binaries with kerberos support.
I downloaded latest kerberos source package from here:
https://kerberos.org/dist/index.html
I followed the the instructions in src\windows\README, and executed the
following script in 64-bit Visual Studio Command Prompt to build and
install it.
set NO_LEASH=1
set PATH=%PATH%;"%WindowsSdkVerBinPath%"\x86
set KRB_INSTALL_DIR=C:\krb5
cd src
nmake -f Makefile.in prep-windows
nmake NODEBUG=1
nmake install NODEBUG=1
To compile postgres with kerberos support, we need to configure the install
location in src/tools/msvc/config.pl
our $config = {gss => 'C:/krb5'};
If I run build.pl the compiler will complain about gssapi.h not found.
At src/tools/msvc/Solution.pm line 633, we can see the include directory is
set to '\inc\krb5'. This is no longer the case for 64-bit kerberos package.
The correct include directory is '\include'. The library paths also need to
be fixed with 64-bit version.
Here's a patch to fixed these paths, with this patch we can build 64-bit
binaries with kerberos support successfully.
Best regards,
Peifeng Qiu
Attachment | Content-Type | Size |
---|---|---|
compile-with-64-bit-kerberos-on-windows-v1.patch | application/octet-stream | 1.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Hanson | 2019-04-16 09:24:20 | Re: extensions are hitting the ceiling |
Previous Message | Iwata, Aya | 2019-04-16 07:23:21 | RE: libpq debug log |