Fix compilation of Samba 4.7.4 with disabled ADS

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


Hi all!

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

[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
[-Wimplicit-function-declaration]
                ret = ads_keytab_open(context, &keytab);
                      ^
1 warning generated.
[3331/3562] Linking default/source3/libads-samba4.so
default/source3/libads/kerberos_keytab_63.o: In function `ads_keytab_list':
../source3/libads/kerberos_keytab.c:(.text+0xd9): undefined reference to
`ads_keytab_open'
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: <http://lists.samba.org/pipermail/samba-technical/attachments/20171223/6b5a43b4/patch-source3__libads__kerberos_keytab.c>


More information about the samba-technical mailing list