PC/SC support broken due to multiarch enabled libpcsclite1

Reported by Tuomas Jormola on 2012-04-05
This bug affects 7 people
Affects Status Importance Assigned to Milestone
opensc (Ubuntu)

Bug Description

At least in precise, libpcsclite1 provides the multiarch enabled shared library, e.g. /lib/x86_64-linux-gnu/libpcsclite.so.1 on amd64. However, the PC/SC module in opensc expects to find the library as /lib/libpcsclite.so.1 as demonstrated by this session in current precise with a SCR331 USB card reader installed. Also a local workaround by creating a symlink to the multiarch library is shown.

root@host231:~# opensc-tool -l
No smart card readers found.
root@host231:~# strace -f opensc-tool -l 2>&1|grep pcs
open("/lib/libpcsclite.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
root@host231:~# ls -al /lib/libpcsclite.so.1
ls: cannot access /lib/libpcsclite.so.1: No such file or directory
root@host231:~# cd /lib
root@host231:/lib# dpkg -l|grep libpcsc
ii libpcsclite1 1.7.4-2ubuntu2 Middleware to access a smart card using PC/SC (library)
root@host231:/lib# dpkg -L libpcsclite1
root@host231:/lib# ln -s x86_64-linux-gnu/libpcsclite.so.1
root@host231:/lib# opensc-tool -l
# Detected readers (pcsc)
Nr. Card Features Name
0 No SCM SCR 331 [CCID Interface] (60301721) 00 00

The shared library loading of opensc should be multiarch compatible.
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
NonfreeKernelModules: nvidia
Package: opensc 0.12.1-1ubuntu4
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Tags: precise
Uname: Linux 3.2.0-22-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)

apport information

tags: added: apport-collected precise
description: updated

apport information

Damien Miller (djm) wrote :

This is affecting me too (Precise) and can confirm that the workaround works - thanks.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in opensc (Ubuntu):
status: New → Confirmed
ubu-user-1234 (rangelov-u) wrote :

This affects me too (using ubuntu 12.04 beta 2).
Just some remarks:
1. This bug did not existed prior the latest updates (today I have updated and my card reader stopped worikng)
2. I am using a 32 bit ubuntu and the directories start with i384 rather then x86_64
3. The fix proposed by Tuomas Jormola works on my machine also

ubu-user-1234 (rangelov-u) wrote :

One other comment: While opensc-tool has a problem pcsc_scan is working perfectly (it is able to see my card => it is using the reader) - that is why I have decided that there must be a problem with opensc.

Alex Stanev (realender) on 2012-04-11
affects: opensc (Ubuntu) → pcsc-lite (Ubuntu)
Alex Stanev (realender) wrote :

This should be fixed by resolving this:

It is a bug in OpenSC not pcsc-lite. See bug #978974

affects: pcsc-lite (Ubuntu) → opensc (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers