Bug 1929

Summary: ssh-keygen fails to build because PKCS11 is not available
Product: Portable OpenSSH Reporter: Alan Hourihane <alanh>
Component: ssh-keygenAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: dtucker
Priority: P2    
Version: 5.8p2   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1845    
Attachments:
Description Flags
add null implementations of pkcs11_init and pkcs_terminate djm: ok+

Description Alan Hourihane 2011-09-03 03:23:05 AEST
Trying to build 5.8p2 and because the system I'm using lacks dlopen, PKCS11 isn't available and therefore fails with this....

ssh-keygen.c: In function 'do_ca_sign':
ssh-keygen.c:1410:2: warning: implicit declaration of function 'pkcs11_init'
ssh-keygen.c:1493:2: warning: implicit declaration of function 'pkcs11_terminate'
m68k-atari-mint-gcc -o ssh-keygen ssh-keygen.o -L. -Lopenbsd-compat/  -fstack-protector-all -lssh -lopenbsd-compat -lssl -lcrypto -lz   -lz  -lpthread
ssh-keygen.o:ssh-keygen.o:(.text+0x48b2): undefined reference to `_pkcs11_init'
ssh-keygen.o:ssh-keygen.o:(.text+0x4c62): undefined reference to `_pkcs11_terminate'
collect2: ld returned 1 exit status
make: *** [ssh-keygen] Error 1
emake failed
Comment 1 Darren Tucker 2011-09-04 19:30:30 AEST
Created attachment 2078 [details]
add null implementations of pkcs11_init and pkcs_terminate
Comment 2 Damien Miller 2011-09-04 19:58:52 AEST
Comment on attachment 2078 [details]
add null implementations of pkcs11_init and pkcs_terminate

ok for 5.9 and trunk
Comment 3 Darren Tucker 2011-09-04 20:01:35 AEST
submitted (from cvs log, it looks like 5.9 has not been branched/tagged yet)?
Comment 4 Damien Miller 2011-09-06 15:32:52 AEST
close resolved bugs now that openssh-5.9 has been released