--8<-- [wschlich@zephyr(pts/1):~]$ sudo env USE="-* static" emerge -avt openssh These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild R ] net-misc/openssh-3.9_p1-r1 -X509* -chroot* -debug -ipv6* -kerberos* -ldap* -pam* (-selinux) -sftplogging* -skey* -smartcard* +static* -tcpd* (-uclibc) 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) net-misc/openssh-3.9_p1-r1 to / [...] ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/ssh --libexecdir=/usr/lib/misc --datadir=/usr/share/openssh --disable-suid-ssh --with-privsep-path=/var/empty --with-privsep-user=sshd --with-md5-passwords --without-kerberos5 --without-tcp-wrappers --without-skey --without-opensc --without-pam --with-ipv4-default [...] OpenSSH has been configured with the following options: User binaries: /usr/bin System binaries: /usr/sbin Configuration files: /etc/ssh Askpass program: /usr/lib/misc/ssh-askpass Manual pages: /usr/share/man/manX PID file: /var/run Privilege separation chroot path: /var/empty sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin Manpage format: doc PAM support: no KerberosV support: no Smartcard support: yes, using OpenSC S/KEY support: no TCP Wrappers support: no MD5 password support: yes IP address in $DISPLAY hack: no Translate v4 in v6 hack: yes BSD Auth support: no Random number source: OpenSSL internal ONLY [...] i686-pc-linux-gnu-gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o -L. -Lopenbsd-compat/ -static -L/usr/lib -lopensc -lssh -lopenbsd-compat -lcrypto -lutil -lz -lnsl -lcrypt -lresolv -lresolv ./libssh.a(uidswap.o)(.text+0x18a): In function `temporarily_use_uid': : warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./libssh.a(tildexpand.o)(.text+0x7f): In function `tilde_expand_filename': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ssh.o(.text+0xa7): In function `main': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshconnect.o(.text+0xe1): In function `ssh_connect': : warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./libssh.a(canohost.o)(.text+0x14): In function `check_ip_options': : warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshconnect.o(.text+0x396): In function `ssh_connect': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./libssh.a(scard-opensc.o)(.text+0x82): In function `sc_get_keys': : undefined reference to `sc_pkcs15_hex_string_to_id' ./libssh.a(scard-opensc.o)(.text+0xea): In function `sc_get_keys': : undefined reference to `sc_establish_context' ./libssh.a(scard-opensc.o)(.text+0x129): In function `sc_get_keys': : undefined reference to `sc_connect_card' ./libssh.a(scard-opensc.o)(.text+0x14a): In function `sc_get_keys': : undefined reference to `sc_pkcs15_bind' ./libssh.a(scard-opensc.o)(.text+0x196): In function `sc_get_keys': : undefined reference to `sc_pkcs15_find_cert_by_id' ./libssh.a(scard-opensc.o)(.text+0x248): In function `sc_get_keys': : undefined reference to `sc_pkcs15_find_prkey_by_id' ./libssh.a(scard-opensc.o)(.text+0x2b9): In function `sc_get_keys': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0x3e2): In function `sc_get_keys': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0x3fc): In function `sc_get_keys': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0x40c): In function `sc_get_keys': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0x440): In function `sc_get_keys': : undefined reference to `sc_pkcs15_get_objects' ./libssh.a(scard-opensc.o)(.text+0x459): In function `sc_get_keys': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0x487): In function `sc_get_keys': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0x4bf): In function `sc_get_keys': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0x4d7): In function `sc_get_keys': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0x4ea): In function `sc_get_keys': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0x516): In function `sc_get_keys': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0x533): In function `sc_get_keys': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0x579): In function `sc_close': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0x591): In function `sc_close': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0x5a4): In function `sc_close': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0x635): In function `sc_get_key_label': : undefined reference to `sc_pkcs15_find_prkey_by_id' ./libssh.a(scard-opensc.o)(.text+0x655): In function `sc_get_key_label': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0x6ba): In function `sc_read_pubkey': : undefined reference to `sc_pkcs15_read_certificate' ./libssh.a(scard-opensc.o)(.text+0x70a): In function `sc_read_pubkey': : undefined reference to `sc_pkcs15_free_certificate' ./libssh.a(scard-opensc.o)(.text+0x784): In function `sc_read_pubkey': : undefined reference to `sc_pkcs15_free_certificate' ./libssh.a(scard-opensc.o)(.text+0x935): In function `sc_read_pubkey': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0x9bf): In function `sc_private_decrypt': : undefined reference to `sc_pkcs15_decipher' ./libssh.a(scard-opensc.o)(.text+0x9cf): In function `sc_private_decrypt': : undefined reference to `sc_unlock' ./libssh.a(scard-opensc.o)(.text+0x9e7): In function `sc_private_decrypt': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xa2b): In function `sc_private_decrypt': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xa43): In function `sc_private_decrypt': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0xa57): In function `sc_private_decrypt': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0xad9): In function `sc_sign': : undefined reference to `sc_pkcs15_compute_signature' ./libssh.a(scard-opensc.o)(.text+0xae9): In function `sc_sign': : undefined reference to `sc_unlock' ./libssh.a(scard-opensc.o)(.text+0xb06): In function `sc_sign': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xb3f): In function `sc_sign': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xb55): In function `sc_sign': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0xb67): In function `sc_sign': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0xc0e): In function `sc_finish': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xc26): In function `sc_finish': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0xc38): In function `sc_finish': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0xcb5): In function `sc_prkey_op_init': : undefined reference to `sc_establish_context' ./libssh.a(scard-opensc.o)(.text+0xcf4): In function `sc_prkey_op_init': : undefined reference to `sc_connect_card' ./libssh.a(scard-opensc.o)(.text+0xd15): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_bind' ./libssh.a(scard-opensc.o)(.text+0xd54): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_find_prkey_by_id_usage' ./libssh.a(scard-opensc.o)(.text+0xd7e): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_find_pin_by_auth_id' ./libssh.a(scard-opensc.o)(.text+0xda8): In function `sc_prkey_op_init': : undefined reference to `sc_lock' ./libssh.a(scard-opensc.o)(.text+0xded): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_verify_pin' ./libssh.a(scard-opensc.o)(.text+0xe01): In function `sc_prkey_op_init': : undefined reference to `sc_unlock' ./libssh.a(scard-opensc.o)(.text+0xe09): In function `sc_prkey_op_init': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xe4d): In function `sc_prkey_op_init': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xe6a): In function `sc_prkey_op_init': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0xe7c): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0xe8d): In function `sc_prkey_op_init': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xea4): In function `sc_prkey_op_init': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xec2): In function `sc_prkey_op_init': : undefined reference to `sc_lock' ./libssh.a(scard-opensc.o)(.text+0xed6): In function `sc_prkey_op_init': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xef4): In function `sc_prkey_op_init': : undefined reference to `sc_strerror' ./libssh.a(scard-opensc.o)(.text+0xf34): In function `sc_prkey_op_init': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xf4c): In function `sc_prkey_op_init': : undefined reference to `sc_disconnect_card' ./libssh.a(scard-opensc.o)(.text+0xf64): In function `sc_prkey_op_init': : undefined reference to `sc_pkcs15_unbind' ./libssh.a(scard-opensc.o)(.text+0xf97): In function `sc_prkey_op_init': : undefined reference to `sc_release_context' ./libssh.a(scard-opensc.o)(.text+0xfb0): In function `sc_prkey_op_init': : undefined reference to `sc_disconnect_card' collect2: ld returned 1 exit status make: *** [ssh] Error 1 make: *** Waiting for unfinished jobs.... groupaccess.o(.text+0x8e): In function `ga_init': : warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking session.o(.text+0xa31): In function `do_child': : warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking groupaccess.o(.text+0xc7): In function `ga_init': : warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshpty.o(.text+0x1ea): In function `pty_setowner': : warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking session.o(.text+0xa3e): In function `do_child': : warning: Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshd.o(.text+0x2028): In function `main': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking loginrec.o(.text+0x82b): In function `login_get_lastlog_time': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshd.o(.text+0x363f): In function `privsep_preauth': : warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking servconf.o(.text+0x99e): In function `add_one_listen_addr': : warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking auth.o(.text+0x2b5): In function `allowed_user': : warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./libssh.a(canohost.o)(.text+0x14): In function `check_ip_options': : warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking !!! ERROR: net-misc/openssh-3.9_p1-r1 failed. !!! Function src_compile, Line 110, Exitcode 2 !!! compile problem !!! If you need support, post the topmost build error, NOT this status message. --8<-- really strange, because configure is run using --without-opensc, the section with the heading "OpenSSH has been configured with the following options:" shows it *is* using OpenSC. any ideas?
configure.ac/configure has a bug. *tracking down* Yes.... found... --without-opensc makes --with-opensc=no, and that only caused AC_PROG_PATH thingy to search for no/bin/opensc_config before trying $PATH. Applying a patch very soon. It should be posted upstream
Created attachment 52895 [details, diff] --without-opensc fix Makes --without-opensc work as without, and not giving a path-hint to where it can find opensc-config
thanks, added patch to cvs !
has the patch been posted upstream?
I haven't sent it upstream yet. Doing it now.
Here we go: *I need some sleep soon* http://bugzilla.mindrot.org/show_bug.cgi?id=998 for upstream bug-report, and alternativ patch.