There's a closed pull request on the Samba Samba Github repository waf: Prefer libsystemd to deprecated libsystemd-* https://github.com/samba-team/samba/pull/53 Description: Not actually tested on a system that only has the deprecated libs.