I've installed libldb-1.1.21 on the system and tell Samba to use the system ldb version but it doesn't look for it and builds it. Simplified configure command: ./configure '--bundled-libraries=!ldb,!pyldb' --with-system-mitkrb5 --without-ad-dc Full configure command: ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-fhs --with-piddir=/run --with-sockets-dir=/run/samba --with-modulesdir=/usr/lib64/samba --with-pammodulesdir=/usr/lib64/security --with-lockdir=/var/lib/samba --with-cachedir=/var/lib/samba --disable-rpath-install --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 '--bundled-libraries=heimdal,!zlib,!popt,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb' --with-pam --with-pie --with-relro --without-fam --with-system-mitkrb5 --without-ad-dc --with-cluster-support --with-profiling-data --without-pam_smbpass --with-systemd I do not see the line: Checking for system ldb >= 1.1.21 : yes It works for talloc, tdb, tevent, zlib etc.
*** This bug has been marked as a duplicate of bug 11458 ***