So. I encountered this when VMWare View was completely unable to connect to our 
view server using 14.04 LTS.
After digging through the log, encountered this bug report.  
Some further digging turned up:
https://github.com/OpenSC/OpenSC/issues/183
and
https://github.com/OpenSC/OpenSC/commit/162e71419ba9b84d37321acc05e32980a438ae9a

where people argue for a very very long time about adding 2 functions to
the .exports :p

For anyone here using ubuntu who is finding the VMWare View package 
non-functional, you have to:
1) sudo mkdir -p /usr/lib/vmware/view/pkcs11/
2) cd /usr/lib/vmware/view/pkcs11/
3) sudo ln -s /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so libopensc-pkcs11.so

This fixes the bad plugin path in the vmware package.  Now you have to
fix the exports from the opensc package.

--- opensc-0.13.0.orig/src/pkcs11/opensc-pkcs11.exports
+++ opensc-0.13.0/src/pkcs11/opensc-pkcs11.exports
@@ -1 +1,3 @@
 C_GetFunctionList
+C_Initialize
+C_Finalize
--- opensc-0.13.0.orig/src/pkcs11/pkcs11-spy.exports
+++ opensc-0.13.0/src/pkcs11/pkcs11-spy.exports
@@ -1 +1,3 @@
 C_GetFunctionList
+C_Initialize
+C_Finalize

This patch was autogenerated after editing the  exports files.  I don't
think pkcs11-spy was necessary, but, eh, why not...

1) apt-get source opensc
2) get prompted for some build deps, apt-get install those... for me it was   
apt-get install dh-autoreconf libpcsclite-dev libreadline-dev
3) go to the sources and either put that patch in debian/patches or just edit 
src/pkcs11 exports files and add those 2 lines
4) dpkg-buildpackage

theeeen just dpkg -i the resulting .deb and enjoy your finally-working
vmware-view.  YAY!

(Note that this all assumes you setup smartcard support in ubuntu in the
first place - there are docs for that)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1268770

Title:
  Error loading shared library for smart card authentication to server

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vmware-view-client/+bug/1268770/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to