[PATCHES] Fix build with system provided Heimdal library

Alexander Bokovoy ab at samba.org
Wed Jun 27 07:16:07 UTC 2018


On ke, 27 kesä 2018, Andrew Bartlett via samba-technical wrote:
> On Tue, 2018-06-26 at 16:33 -0700, Christof Schmitt wrote:
> > On Wed, Jun 27, 2018 at 11:10:15AM +1200, Andrew Bartlett wrote:
> > > On Tue, 2018-06-26 at 15:07 -0700, Christof Schmitt via samba-technical 
> > > wrote:
> > > > This was triggered by the fact that Ubuntu 18.04 provides libldap that
> > > > depends on the Heimdal kerberos library. Building a simple Samba file
> > > > server with the requirement that only one Kerberos is used, then
> > > > requires building against the system provided Heimdal library (as
> > > > libldap already has the dependency).
> > > > 
> > > > The configure command which allowed this to work was:
> > > > 
> > > > ./configure \
> > > >  --bundled-libraries='!heimdal,!asn1,!com_err,!roken,!hx509,!wind,!gssapi,!hcrypto,!krb5,!heimbase,!asn1_compile,!compile_et,!kdc,!hdb,!heimntlm'
> > > >  --without-ad-dc --disable-cups
> > > > 
> > > > Note that on this system --disable-cups was required as well, as libcups
> > > > in Ubuntu 18.04 depends on MIT kerberos.
> > > > 
> > > > The two attached patches are required for this build to succeed.
> > > 
> > > G'Day Christof,
> > > 
> > > I'm surprised this hasn't come up before.  Is it your additional
> > > requirement that you only have one krb5 lib, or has something changed
> > > on the Ubuntu side?  It just feels very strange at this point. 
> > 
> > Yes. A simple file server that only depends on one Kerberos library.
> > That has to be Heimdal due to the libldap dependency on Heimdal.
> 
> Just to be clear, which is it, an additional requirement from you (or
> your use case) or is something breaking generally on Ubuntu 18.04?
If Ubuntu libldap is linked with Heimdal, you should not link anything
that links with libldap against MIT Kerberos. You are just asking for
crashes otherwise.

-- 
/ Alexander Bokovoy



More information about the samba-technical mailing list