On Fri, Oct 18, 2013 at 11:04:16PM +0200, Ivo De Decker wrote:
> On Fri, Oct 18, 2013 at 07:08:54PM +0200, Ivo De Decker wrote:
> > Thanks for the report. This seems to be correct. The build-dependency on
> > libcups2-dev is missing.

> Building samba with cups enabled gives a build error related to krb5. Does
> anybody have time to take a look at this?

The failure is happening because libcups2-dev pulls in libkrb5-dev (the MIT
KRB5 version), and samba is mistakenly linking to /usr/lib/$arch/libkrb5.so
(from libkrb5-dev) instead of to /usr/lib/$arch/heimdal/libkrb5.so (from
heimdal-multidev) which it's supposed to be linking to.

Most parts of the code are unaffected by this, using a linker order such as:

  -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/heimdal 
-L/usr/lib/x86_64-linux-gnu

This will prefer the heimdal/libkrb5.so over the non-heimdal one.

But libgse.so is linked with -L/usr/lib/x86_64-linux-gnu before
-L/usr/lib/x86_64-linux-gnu/heimdal, causing this build failure.

Someone who understands waf will need to dig through the build rules to
figure out where this is coming from.  Ideally, we would not be passing
-L$system_dir as an argument at all, since it's unnecessary.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to