From: Hans Leidekker Subject: Re: [PATCH] kerberos: Fix compilation on systems where SONAME_LIBKRB5 is not defined. Message-Id: <1562062097.14568.14.camel@codeweavers.com> Date: Tue, 02 Jul 2019 12:08:17 +0200 In-Reply-To: <20190702170238.9739f7bf5b3153c64709ced2@baikal.ru> References: <20190702110526.29839fa3f058de521e92d7d3@baikal.ru> <1562054208.14568.12.camel@codeweavers.com> <20190702170238.9739f7bf5b3153c64709ced2@baikal.ru> On Tue, 2019-07-02 at 17:02 +0800, Dmitry Timoshkov wrote: > Where do you see this? Note that this code is inside an #ifdef SONAME_LIBGSSAPI_KRB5 > > block and configure should disable gssapi when it can't detect krb5. This means that > > SONAME_LIBGSSAPI_KRB5 should not be set when SONAME_LIBKRB5 isn't. > > I can confirm that on my system configure undefs SONAME_LIBGSSAPI_KRB5. > > Unfortunately that's not on one of my machines. According to the reporter, > configure fails to find libkrb55.so but successfully locates libgssapi.so, > and configure log confirms that. Sounds like a broken install. To fix this I think it would be better to improve our configure check than to add more (nested) ifdefs. AcquireCredentialsHandle won't be very useful without these krb5 functions.