RE: [HACKERS] RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows

Lists: pgsql-generalpgsql-hackers
From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 01:30:53
Message-ID: D425483C2C5C9F49B5B7A41F894415470296204B@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

If Kerberos V5 is not installed on a Windows platform, the following
error dialog is returned upon attempted installation:

Posgres.exe - Unable to Locate Component

This application has failed to start because krb5_32.dll was not found.
Re-installing the application may fix this problem.
[OK]


From: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 08:47:47
Message-ID: 6DAFE8F5425AB84DB3FCA4537D829A561D0BCE2ADA@M0164.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers


We should delayload this dll since it is only needed
for specific configuration. No need to install when it is not used.

Andreas

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Dann Corbit
> Sent: Friday, February 27, 2009 2:31 AM
> To: pgsql-general(at)postgresql(dot)org
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: [HACKERS] Kerberos V5 required for PostgreSQL
> installation on Windows [bayes][heur]
> Importance: Low
>
> If Kerberos V5 is not installed on a Windows platform, the following
> error dialog is returned upon attempted installation:
>
> Posgres.exe - Unable to Locate Component
>
> This application has failed to start because krb5_32.dll was
> not found.
> Re-installing the application may fix this problem.
> [OK]
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>
Cc: Dann Corbit <DCorbit(at)connx(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 09:08:31
Message-ID: 937d27e10902270108q4cce40der4402601d347fa71e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Fri, Feb 27, 2009 at 8:47 AM, Zeugswetter Andreas OSB sIT
<Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at> wrote:
>
> We should delayload this dll since it is only needed
> for specific configuration. No need to install when it is not used.

That would require building knowledge of DLL names into the code,
which isn't practical as some projects have a habit of changing them
regularly (e.g. gettext).

I'm not sure why Dann would see this problem - all our installers
include the required DLLs, and they should also be in the
binaries-no-installer packages. If he's built the binary himself, then
he obviously has the import libraries for Kerberos, so where are the
DLLs?

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>, Dann Corbit <DCorbit(at)connx(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 09:39:23
Message-ID: 49A7B4CB.3080405@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Dave Page wrote:
> On Fri, Feb 27, 2009 at 8:47 AM, Zeugswetter Andreas OSB sIT
> <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at> wrote:
>> We should delayload this dll since it is only needed
>> for specific configuration. No need to install when it is not used.
>
> That would require building knowledge of DLL names into the code,
> which isn't practical as some projects have a habit of changing them
> regularly (e.g. gettext).

Are you sure?

http://msdn.microsoft.com/en-us/library/hf3f62bz.aspx

seems to indicate that you can do it on just the commandline if you want to?

(I haven't tried it so I don't know if it's actually doable)

> I'm not sure why Dann would see this problem - all our installers
> include the required DLLs, and they should also be in the
> binaries-no-installer packages. If he's built the binary himself, then
> he obviously has the import libraries for Kerberos, so where are the
> DLLs?

That is also a valid question, though.

//Magnus


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>, Dann Corbit <DCorbit(at)connx(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 09:47:28
Message-ID: 937d27e10902270147h367b3b84y696886c5356522ae@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Fri, Feb 27, 2009 at 9:39 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> Dave Page wrote:
>> On Fri, Feb 27, 2009 at 8:47 AM, Zeugswetter Andreas OSB sIT
>> <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at> wrote:
>>> We should delayload this dll since it is only needed
>>> for specific configuration. No need to install when it is not used.
>>
>> That would require building knowledge of DLL names into the code,
>> which isn't practical as some projects have a habit of changing them
>> regularly (e.g. gettext).
>
> Are you sure?
>
> http://msdn.microsoft.com/en-us/library/hf3f62bz.aspx
>
> seems to indicate that you can do it on just the commandline if you want to?

Hmm, didn't know you could do that. We'd still need code support to
figure out the DLL name from the import library so we can generate the
command line correctly though.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Dann Corbit <DCorbit(at)connx(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: [HACKERS] RE: [HACKERS] Kerberos V5 required for PostgreSQL installation on Windows
Date: 2009-02-27 11:15:57
Message-ID: 6DAFE8F5425AB84DB3FCA4537D829A561D0BCE2B57@M0164.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers


> > We should delayload this dll since it is only needed
> > for specific configuration. No need to install when it is not used.
>
> That would require building knowledge of DLL names into the code,
> which isn't practical as some projects have a habit of changing them
> regularly (e.g. gettext).

Yup, that is bad. Seems the krb5_32.dll name is quite stable though.
Not sure if you can specify a list of anticipated names ?

> I'm not sure why Dann would see this problem - all our installers
> include the required DLLs, and they should also be in the

Oh, didn't know that. I guess that shifts it to pilot error then.

Andreas