When building sssd on Ubuntu Lucid, the following warning messages are produced by the [build log]]([http://launchpadlibrarian.net/35200050/buildlog_ubuntu-lucid-amd64.sssd_0.8.0~gitbzr854_FULLYBUILT.txt.gz):
dpkg-shlibdeps: warning: dependency on libcom_err.so.2 could be avoided if "debian/sssd/usr/lib/sssd/sssd/krb5_child debian/sssd/usr/lib/sssd/libsss_ipa.so.1.0.0 debian/sssd/usr/lib/sssd/libsss_krb5.so.1.0.0 debian/sssd/usr/lib/sssd/libsss_ldap.so.1.0.0" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libssl3.so could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libplc4.so could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on librt.so.1 could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libplds4.so could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnssutil3.so could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libsmime3.so could be avoided if "debian/sssd/usr/sbin/sss_groupdel debian/sssd/usr/lib/sssd/sssd/sssd_pam debian/sssd/usr/sbin/sssd debian/sssd/usr/sbin/sss_useradd debian/sssd/usr/sbin/sss_groupmod debian/sssd/usr/sbin/sss_groupadd debian/sssd/usr/lib/sssd/sssd/sssd_nss debian/sssd/usr/sbin/sss_userdel debian/sssd/usr/lib/sssd/sssd/sssd_be debian/sssd/usr/sbin/sss_usermod" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libk5crypto.so.3 could be avoided if "debian/sssd/usr/lib/sssd/sssd/krb5_child debian/sssd/usr/lib/sssd/libsss_ipa.so.1.0.0 debian/sssd/usr/lib/sssd/libsss_krb5.so.1.0.0 debian/sssd/usr/lib/sssd/libsss_ldap.so.1.0.0" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libpam_misc.so.0 could be avoided if "debian/libpam-sss/lib/security/pam_sss.so" were not uselessly linked against it (they use none of its symbols).
The dependency on libcom_err.so.2 and libk5crypto.so.3 is caused by linking with the kerberos 5 libraries. Automatically-detecting the necessary LIBS for kerberos 5 returns these two libraries alongside -lkrb5. In order to maintain proper cross-platform support, we should not manually specify the required kerberos libraries. Retrieving them from the output of krb5-config is preferred.
The other dependencies are indeed a mistake.
component: SSSD => Build Environment owner: somebody => sgallagh status: new => assigned
Addendum: Many of the unused dependencies on the sss_* tools are caused by linking against NSS_LIBS, the output of which from pkg-config is somewhat more than necessary (similar to the krb5-config output)
NSS_LIBS however can be overridden now at the commandline with only the libraries we actually need. In the patch I am creating to address this bug, I will also add the ability to override the KRB5_LIBS.
This way, you will be able to use
NSS_LIBS=-lnss3 KRB5_LIBS=-lkrb5 ./configure <configure_options>
in build scripts.
I want to leave the default behavior as getting the values automatically from pkg-config and krb5-config, since there may be platforms with different libraries and building with extra deps is better than the wrong ones.
Fixed in 0b0cb79cb6df219f76cb8e1e5c96f1b2f6fd97c8
On Ubuntu, please follow the recommendation above to ensure that unused dependencies aren't built.
fixedin: => 1.0.0rc resolution: => fixed status: assigned => closed
Fields changed
coverity: => milestone: SSSD Deferred => SSSD 1.0
rhbz: => 0
Metadata Update from @mathiaz: - Issue assigned to sgallagh - Issue set to the milestone: SSSD 1.0
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/1300
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.