Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Luis_POffline
Post subject: libopensc2  PostPosted: 21.10.2011, 18:49



Joined: 2010-09-11
Posts: 150
Location: Barcelona, Spain
Status: Offline
I need to install a smart card reader for to work, among others, with DNI (Spanish official identity card).

I've bought a device named LTC31 USB from C3PO and I tried to install the software provided both by the vendor and the Spanish Government. There are, of course, drivers for Win*, and also for Mac and, in the Linux planet, for Fedora, OpenSuse, Ubuntu and Debian Lenny. No for Debian sid. I've downloaded this last one and tried to install the .deb packages using dpkg -i.

It was not possible install it, because dpkg shows dependency problems. Specifically there is an issue with libopensc2: "Package libopensc2 is not available, but is referred to by another package", says dpkg. A little net search in packages.debian.org shows that libopensc2 exists in sid, but no for my architecture (AMD_64) nor my wife's computer (Intel X86); it only exists for more or less unusual architectures, like alpha, avr32, hppa etc.

Any advice?

Luis_P.
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: RE: libopensc2  PostPosted: 21.10.2011, 22:05
Team Member


Joined: 2010-08-26
Posts: 170

did you looked into opensc?
      Code:

apt-cache show opensc
Package: opensc
Version: 0.12.2-2
Installed-Size: 2856
Maintainer: Eric Dorland <eric>
Architecture: amd64
Replaces: libopensc2 (<< 0.12.0)


it can be that you must (re)compile the application against the new replacement...

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
Luis_POffline
Post subject: Re: RE: libopensc2  PostPosted: 22.10.2011, 10:09



Joined: 2010-09-11
Posts: 150
Location: Barcelona, Spain
Status: Offline
      x-un-i wrote:
did you looked into opensc?

Opensc is in the system:
      Code:

apt-cache policy opensc
opensc:
  Instalados: 0.12.2-2
  Candidato:  0.12.2-2
  Tabla de versión:
 *** 0.12.2-2 0
        500 ftp://ftp.rediris.es/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status

      x-un-i wrote:

it can be that you must (re)compile the application against the new replacement...

Sorry, but I don't understand you. Are you advising me to download the source and compile it? What means, in this context, "the new replacement"?

Thanks for your support.

Luis_P.
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: Re: RE: libopensc2  PostPosted: 22.10.2011, 12:15
Team Member


Joined: 2010-08-26
Posts: 170

      Luis_P wrote:

Sorry, but I don't understand you. Are you advising me to download the source and compile it? What means, in this context, "the new replacement"?


you have opensc installed and then you have the next version of the lib in your system...
      Code:

/usr/lib/libopensc.so
/usr/lib/libopensc.so.3
/usr/lib/libopensc.so.3.0.0

the application wants version 2 but looks like in debian sid that libopensc.so.2 was replaced by libopensc.so.3 then you need you application compiled against the replacement ( version 3)

Edit: Another possibility is get the aplicatiom compiled against the static library version 2 instead of the compiled with the dynamic library. Well i dont know if such a version exists but should be possible to build it.

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
Luis_POffline
Post subject:   PostPosted: 24.10.2011, 18:56



Joined: 2010-09-11
Posts: 150
Location: Barcelona, Spain
Status: Offline
According to your advice, I've downloaded and compiled the source code in my system. Apparently all was right. But if I try to start opensc I get:
      Code:

$ opensc-tool -vn
opensc-tool: error while loading shared libraries: libopensc.so.3: cannot open shared object file: No such file or directory

But libopensc.so.3 exists:
      Code:

# ls -l /usr/local/lib| grep opensc
-rw-r--r-- 1 root staff 9866684 oct 24 20:21 libopensc.a
-rwxr-xr-x 1 root staff     989 oct 24 20:21 libopensc.la
lrwxrwxrwx 1 root staff      18 oct 24 20:21 libopensc.so -> libopensc.so.3.0.0
lrwxrwxrwx 1 root staff      18 oct 24 20:21 libopensc.so.3 -> libopensc.so.3.0.0
-rwxr-xr-x 1 root staff 5168626 oct 24 20:21 libopensc.so.3.0.0
-rwxr-xr-x 1 root staff    1063 oct 24 20:21 onepin-opensc-pkcs11.la
-rwxr-xr-x 1 root staff  545432 oct 24 20:21 onepin-opensc-pkcs11.so
-rwxr-xr-x 1 root staff    1021 oct 24 20:21 opensc-pkcs11.la
-rwxr-xr-x 1 root staff  545433 oct 24 20:21 opensc-pkcs11.so

what makes me think that the order tries to find libopensc.so.3 in another place and a symlink is needed. How can I know where to put the symlink?

Luis_P.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio