The following compilation error occurs when the source is configured "--without-ldap". The author didn't expect that someone would compile it without LDAP support. [1917/3307] Compiling source3/auth/auth_unix.c [1918/3307] Compiling libgpo/pygpo.c ../libgpo/pygpo.c:340:11: warning: implicit declaration of function 'ads_do_search_all' is invalid in C99 [-Wimplicit-function-declaration] status = ads_do_search_all(ads, ads->config.bind_path, ^ ../libgpo/pygpo.c:341:8: fatal error: use of undeclared identifier 'LDAP_SCOPE_SUBTREE' LDAP_SCOPE_SUBTREE, filter, attrs, &res); ^ 1 warning and 1 error generated. Waf: Leaving directory `/opt/src/samba-4.8.0/bin' Build failed: -> task failed (err #1): {task: cc pygpo.c -> pygpo_3.o} make: *** [all] Error 1
Problem solved with "--disable-python".
(In reply to Ruga from comment #1) Fixed in master with a222b7506b53e689708834237f18877231dca589 for Samba 4.9. The fix is pretty blunt, it just moves the issue to the python layer which now will find these functions missing. A log term fix is what you suggest, make --without-ldap require --without-python.