Openssh only compiles if openct is installed, but it is not listed as one of the dependencies. Reproducible: Always Steps to Reproduce: 1.emerge unmerge openct 2.env USE="smartcard" emerge openssh 3. Actual Results: compile fails Expected Results: compile is successful
no real information there openssh does not link against openct nor include openct headers
Created attachment 73515 [details, diff] add smartcard? ( dev-libs/openct ) to the ebuild
Besides, openssh w/ USE=smartcard depends on opensc which depends on openct unless you have USE=pscs-lite...
What else do you want to know? This is what I get for emerge openssh: (I have the pscs-lite and smartcard use flags set) i686-pc-linux-gnu-gcc -march=pentium3 -O3 -pipe -finline-limit=1200 -fomit-frame-pointer -frerun-loop-opt -ffast-math -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 -I. -I. -DSSHDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect2.c i686-pc-linux-gnu-gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/lib -lopensc -lssh -lopenbsd-compat -lcrypto -lldap -lutil -lz -lnsl -lcrypt /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: warning: libopenct.so.0, needed by /usr/lib/libopensc.so, not found (try using -rpath or -rpath-link) /usr/lib/libopensc.so: undefined reference to `ct_card_verify' /usr/lib/libopensc.so: undefined reference to `ct_strerror' /usr/lib/libopensc.so: undefined reference to `ct_card_unlock' /usr/lib/libopensc.so: undefined reference to `ct_reader_disconnect' /usr/lib/libopensc.so: undefined reference to `ct_card_request' /usr/lib/libopensc.so: undefined reference to `ct_card_transact' /usr/lib/libopensc.so: undefined reference to `ct_reader_connect' /usr/lib/libopensc.so: undefined reference to `ct_card_lock' /usr/lib/libopensc.so: undefined reference to `ct_card_status' /usr/lib/libopensc.so: undefined reference to `ct_reader_info' collect2: ld returned 1 exit status make: *** [ssh] Error 1
sorry for the typo, the use flag is pcsc-lite
if you had posted that output the first time i could have told you that the reason it failed is that you had openct on your machine and opensc linked against it, but then you either removed openct or you upgraded it and thus broke opensc
Thanks, that fixed it.