Q: how to build with system Heimdal

Uri Simchoni uri at samba.org
Tue Oct 29 18:06:42 UTC 2019

On 29/10/2019 19:18, Christof Schmitt wrote:
> On Fri, Oct 25, 2019 at 12:33:33AM +0300, Uri Simchoni via samba-technical wrote:
>> Hi,
>> How should I build Samba with system heimdal? Should this do the trick:
>> ./configure --with-system-heimdalkrb5 --without-ad-dc
>> make
>> (assuming I have Heimdal installed, of course)
>> I tried this one on master, configure succeeds and the build fails
>> like so (kind of surprising that it tries building system heimdal):
>> waf: Entering directory `/home/vagrant/samba/bin/default'
>>          Selected system Heimdal build
>> [190/192] Compiling source4/heimdal/lib/vers/print_version.c
>> 21:26:51 runner ['/usr/bin/gcc', '-D_SAMBA_BUILD_=4',
>> '-DHAVE_CONFIG_H=1', '-MMD', '-D_GNU_SOURCE=1',
>> '-fstack-protector-strong',
>> __HEIMDAL_VERS_HOSTCC_dummy_module_proto(void)',
>> '-Isource4/heimdal_build', '-I../../source4/heimdal_build',
>> '-Iinclude/public', '-I../../include/public', '-Isource4',
>> '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib',
>> '-I../../source4/lib', '-Isource4/include',
>> '-I../../source4/include', '-Iinclude', '-I../../include',
>> '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..',
>> '../../source4/heimdal/lib/vers/print_version.c', '-c', '-o/home/vagrant/samba/bin/default/source4/heimdal/lib/vers/print_version.c.1.o']
>> In file included from ../../source4/heimdal_build/roken.h:156:0,
>>                   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.
> This should work, but it broke back with Samba 4.10. The build works
> with Samba 4.9. I am trying to bisect and debug this problem now.
> Christof

Oh, thanks! I didn't want to start actually debugging this before being 
sure I'm not missing some basic thing. Do note however that all of waf 
has been replaced for 4.10, so maybe it's more a matter of getting this 
back in shape than bisecting.

I wanted to push forward another cross-compilation patch that involves 
removal of an explicit path of Heimdal headers, so I wanted to see if 
that breaks system-heimdal build and then realized it's broken before 
the patch.


More information about the samba-technical mailing list