Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113494

Summary: openssh needs openct to compile for use flag smartcard
Product: Gentoo Linux Reporter: Christoph Burger-Scheidlin <andersin>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: add smartcard? ( dev-libs/openct ) to the ebuild

Description Christoph Burger-Scheidlin 2005-11-24 11:40:14 UTC
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
Comment 1 SpanKY gentoo-dev 2005-11-24 12:05:36 UTC
no real information there

openssh does not link against openct nor include openct headers
Comment 2 Christoph Burger-Scheidlin 2005-11-24 12:05:50 UTC
Created attachment 73515 [details, diff]
add smartcard? ( dev-libs/openct ) to the ebuild
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 12:10:01 UTC
Besides, openssh w/ USE=smartcard depends on opensc which depends on openct
unless you have USE=pscs-lite...
Comment 4 Christoph Burger-Scheidlin 2005-11-24 12:41:08 UTC
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  
 
Comment 5 Christoph Burger-Scheidlin 2005-11-24 12:44:28 UTC
sorry for the typo, the use flag is pcsc-lite 
Comment 6 SpanKY gentoo-dev 2005-11-24 12:48:47 UTC
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
Comment 7 Christoph Burger-Scheidlin 2005-11-24 13:22:19 UTC
Thanks, that fixed it.