Compiling Samba with system Heimdal?

Christof Schmitt cs at samba.org
Fri Jun 28 21:10:46 UTC 2019


On Fri, Jun 28, 2019 at 02:29:46PM +1000, Martin Schwenke via samba-technical wrote:
> I'm trying to build Samba with system Heimdal on Debian testing...
> 
> $ CFLAGS="-O3" ./configure --picky-developer --abi-check-disable \
>     --without-ad-dc  --without-json \
>     --with-system-heimdalkrb5
> ...
> 'configure' finished successfully (1m1.668s)
> 
> $ make
> [184/187] Compiling source4/heimdal_build/version.c
> [185/187] Compiling source4/heimdal/lib/vers/print_version.c
> In file included from ../../source4/heimdal_build/roken.h:156,
>                  from ../../source4/heimdal/lib/vers/print_version.c:39:
> ../../source4/heimdal/lib/roken/roken.h.in:282:10: fatal error: roken-common.h: No such file or directory
>  #include <roken-common.h>
>           ^~~~~~~~~~~~~~~~
> compilation terminated.
> 
> Waf: Leaving directory `/home/martins/samba/samba/bin/default'
> Build failed
>  -> task in 'HEIMDAL_VERS_HOSTCC' failed with exit status 1 (run with -v to display more information)
> make: *** [Makefile:7: all] Error 1

Hi Martin,

i see the same also on Ubuntu 18.04. Samba 4.10 has the same problem,
Samba 4.9 compiles. 4.10 started using Python3 for the build. Then i
came across this comment from metze, that there might be a problem with
parsing the output of krb5-config with Python3:

commit 8061983d4882f3ba3f12da71443b035d7b672eec
Author: Stefan Metzmacher <metze at samba.org>
Date:   Thu Jan 24 02:31:10 2019 +0100

    wscript: separate embedded_heimdal from system_heimdal
    
    This allows to default (embedded_heimdal) to build even with a
    broken krb5-config file from Heimdal.
    
    In the system_heimdal case we parse the content of krb5-config
    instead of just executing it. This fails on FreeBSD 12 as
    krb5-config contains iso-8859-1 characters, which can't be parsed
    as unicode python buffers when using python3.
    
    Fixing the system_heimdal case is a task for another day,
    I guess it will only work once we imported a current heimdal version
    and actually tested the system_heimdal case.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    Reviewed-by: Andreas Schneider <asn at samba.org>

I am not sure if that is the exact problem, but it would seem worthwhile
to look closer in that area.

Christof



More information about the samba-technical mailing list