-lskey -lutil -lz -lnsl -lcrypt -lpthread /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libgnutls.so.26, needed by /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so, not found (try using -rpath or -rpath-link) /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_get_ours@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_server_set_request@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_priority_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_privkey_import@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_set_x509_trust_file@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_record_send@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_import@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_activation_time_peers@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_handshake@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_get_x509_cas@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_list_import@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_transport_set_ptr@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_credentials_set@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_record_check_pending@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_strerror@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_free_credentials@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_allocate_credentials@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_priority_set@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_deinit@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_set_x509_key@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_record_get_direction@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_set_x509_crl_file@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_record_recv@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_global_deinit@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_get_subject_alt_name@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_expiration_time_peers@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_transport_set_pull_function@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_global_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_bye@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_verify_peers2@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_check_issuer@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_priority_deinit@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_cipher_get_key_size@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_transport_set_push_function@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_dh_params_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_set_verify_flags@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_cipher_get@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_dh_params_generate2@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_privkey_init@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_certificate_get_peers@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_get_dn_by_oid@GNUTLS_1_4' /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libldap.so: undefined reference to `gnutls_x509_crt_deinit@GNUTLS_1_4' collect2: ld returned 1 exit status make: *** [sshd] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: net-misc/openssh-6.1_p1 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/openssh-6.1_p1'`, * the complete build log and the output of `emerge -pqv '=net-misc/openssh-6.1_p1'`. * The complete build log is located at '/var/tmp/portage/net-misc/openssh-6.1_p1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-6.1_p1/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/openssh-6.1_p1/work/openssh-6.1p1' * S: '/var/tmp/portage/net-misc/openssh-6.1_p1/work/openssh-6.1p1' >>> Failed to emerge net-misc/openssh-6.1_p1, Log file: >>> '/var/tmp/portage/net-misc/openssh-6.1_p1/temp/build.log' * Messages for package net-misc/openssh-6.1_p1:
Created attachment 332446 [details] emerge --info '=net-misc/openssh-6.1_p1
Created attachment 332448 [details] emerge -pqv '=net-misc/openssh-6.1_p1
Created attachment 332450 [details] environment
Iny case I used this to get around the installation: USE='-ldap' emerge -av openssh
Well, this bug report might be misleading as more packages failed to nearly the same error I had to investigate further and found the root started on openldap so re-installed without gnutls: USE='-gnutls' emerge -av openldap That means openssh can now easily be compiled with ldap flag on.
This is a combination of not doing revdep-rebuild and bug 421463.