Fix compilation of Samba 4.7.4 with disabled ADS

Timur I. Bakeyev timur at
Sat Dec 23 18:17:16 UTC 2017

Hi all!

If you compile Samba 4.7.4 without ADS support the compilation fails with

[2207/3562] Compiling source3/libads/kerberos_keytab.c
../source3/libads/kerberos_keytab.c:643:9: warning: implicit declaration of
function 'ads_keytab_open' is invalid in C99
                ret = ads_keytab_open(context, &keytab);
1 warning generated.
[3331/3562] Linking default/source3/
default/source3/libads/kerberos_keytab_63.o: In function `ads_keytab_list':
../source3/libads/kerberos_keytab.c:(.text+0xd9): undefined reference to
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Waf: Leaving directory `/wrkdirs/usr/ports/net/samba47/work/samba-4.7.4/bin'

This small fix allows to compile Samba cleanly. Not sure though about the
logic behind.

With regards,
Timur Bakeyev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-source3__libads__kerberos_keytab.c
Type: text/x-csrc
Size: 601 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list