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

Bug 699336

Summary: sys-apps/pcsc-lite-1.8.25-r1 - pcscd: configfile.l:163:evaluatetoken() Error with library /usr/lib64/readers/usb/serial/libGemPC410.so.1.0.7: No such file or directory
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED INVALID    
Severity: normal CC: zlogene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Martin Mokrejš 2019-11-04 21:06:50 UTC
I cannot start pcscd and although when I recompiled it the issue still persists. It is looking for some non-existing library.

Nov  4 21:50:23 dell_e5580 start-stop-daemon[4829]: pam_unix(start-stop-daemon:session): session opened for user pcscd by (uid=0)
Nov  4 21:50:23 dell_e5580 pcscd[4830]: configfile.l:163:evaluatetoken() Error with library /usr/lib64/readers/usb/serial/libGemPC410.so.1.0.7: No such file or directory
Nov  4 21:50:23 dell_e5580 pcscd[4830]: /scratch/var/tmp/portage/sys-apps/pcsc-lite-1.8.25-r1/work/pcsc-lite-1.8.25/src/pcscdaemon.c:816:clean_temp_files() Cannot remove /run/pcscd/pcscd.comm: No such file or directory
Nov  4 21:50:23 dell_e5580 pcscd[4830]: /scratch/var/tmp/portage/sys-apps/pcsc-lite-1.8.25-r1/work/pcsc-lite-1.8.25/src/pcscdaemon.c:822:clean_temp_files() Cannot remove /run/pcscd/pcscd.pid: No such file or directory
Nov  4 21:50:23 dell_e5580 /etc/init.d/pcscd[4828]: start-stop-daemon: failed to start `/usr/sbin/pcscd'
Nov  4 21:50:23 dell_e5580 /etc/init.d/pcscd[4808]: ERROR: pcscd failed to start
Nov  4 21:54:03 dell_e5580 start-stop-daemon[4935]: Will stop /usr/sbin/openvpn
Nov  4 21:54:03 dell_e5580 start-stop-daemon[4935]: Will stop PID 31093
Nov  4 21:54:03 dell_e5580 start-stop-daemon[4935]: Sending signal 15 to PID 31093

# ls -lart /usr/lib64/readers/usb/
celkem 12
drwxr-xr-x 3 root root 4096 22. říj 17.01 ifd-ccid.bundle
drwxr-xr-x 3 root root 4096 22. říj 17.01 ..
drwxr-xr-x 3 root root 4096 22. říj 17.01 .
#


I see it on Debian site under:

https://packages.ubuntu.com/fi/xenial/libs/libgempc410
libgempc410 (1.0.7-3) [universe]
    PC/SC driver for the GemPC 410, 412, 413 and 415 smart card readers

https://packages.ubuntu.com/fi/xenial/libs/libgempc430
libgempc430 (1.0.7-3) [universe]
    PC/SC driver for the GemPC 430, 432, 435 smart card readers


# emerge -s gempc
[ Results for search key : gempc ]
Searching...


...

*  sys-apps/ifd-gempc
      Latest version available: 1.0.7
      Latest version installed: [ Not Installed ]
      Size of files: 75 KiB
      Homepage:      http://ludovic.rousseau.free.fr/softwares/ifd-GemPC
      Description:   GemCore based PC/SC reader drivers for pcsc-lite
      License:       GPL-2 BSD


After installing that package sys-apps/ifd-gempc-1.0.7 I got /usr/lib64/readers/usb/serial/libGemPC410.so.1.0.7.

>>> Installing (1 of 1) sys-apps/ifd-gempc-1.0.7::gentoo
 * NOTICE:
 * 1. If you are using GemPC410, modify 
 * 2. Run update-reader.conf, yes this is a command...
 * 3. Restart pcscd

...

# update-reader.conf
-su: update-reader.conf: command not found
#

What?

# emerge -pv sys-apps/ifd-gempc sys-apps/pcsc-lite sys-apps/pcsc-tools
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/pcsc-lite-1.8.25-r1::gentoo  USE="policykit python udev -libusb (-selinux) -systemd" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5 -python3_7" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" 0 KiB
[ebuild   R    ] sys-apps/ifd-gempc-1.0.7::gentoo  0 KiB
[ebuild   R    ] sys-apps/pcsc-tools-1.5.3::gentoo  USE="gtk -network-cron" 0 KiB

Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
Comment 1 Martin Mokrejš 2019-11-04 21:07:51 UTC
Created attachment 595034 [details]
build.log
Comment 2 Martin Mokrejš 2019-11-04 21:08:52 UTC
# emerge --info
Portage 2.3.77 (python 3.7.5-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.2.0, glibc-2.29-r6, 5.3.7 x86_64)
=================================================================
System uname: Linux-5.3.7-x86_64-Intel-R-_Core-TM-_i7-7820HQ_CPU_@_2.90GHz-with-gentoo-2.6
KiB Mem:    32814524 total,  21907716 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 30 Oct 2019 15:00:01 +0000
Head commit of repository gentoo: 7257ab1c65f8182b1882afc3baa501d21e59e7d9
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.15.4::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth ACE AFL churchill genscan no-source-code linux-fw-redistributable"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native -ftree-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -ftree-vectorize"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/scratch/var/tmp"
USE="X acpi alsa amd64 amr apache apache2 asm avx avx2 berkdb bluetooth boost bzip2 cairo caps cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gps gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lapack laptop lcms libnotify libtirpc lm_sensors mad mariadb matroska mmx modemmanager ncurses nfs nls nptl nptlonly nscd nss ntfsprogs objc ocr ogg opengl openmp openssl pam parport pbs pcre pcre16 pcsc-lite pdf perl php png policykit polkit ppds pppd python qt3support qt4 qt5 readline rendering resolvconf romio scanner sctp seccomp server session slideshow sndfile split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype udev unicode usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_RM="pbs" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Martin Mokrejš 2019-11-04 21:14:13 UTC
I have Gemalto IDBridge CT700. Did pcscd sniff he device plugged into a USB port and due to that it required by hard the libGemPC410.so.1.0.7 library?

# lsusb -d 08e6:34c2 -v

Bus 001 Device 051: ID 08e6:34c2 Gemalto (was Gemplus) IDBridge CT7xx
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x08e6 Gemalto (was Gemplus)
  idProduct          0x34c2 
  bcdDevice            1.02
  iManufacturer           1 Gemalto
  iProduct                2 IDBridge CT7xx
  iSerial                 3 I18C0144252603
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x005d
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.10  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           0
        bVoltageSupport         3  5.0V 3.0V 
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4000
        dwMaxiumumClock      4000
        bNumClockSupported      0
        dwDataRate          10752 bps
        dwMaxDataRate      500000 bps
        bNumDataRatesSupp.      0
        dwMaxIFSD             254
        dwSyncProtocols  00000000 
        dwMechanical     00000000 
        dwFeatures       000404B2
          Auto configuration based on ATR
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          Auto IFSD exchange
          Short and extended APDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse      00
        bClassEnvelope         00
        wlcdLayout           17 cols 2 lines
        bPINSupport             3  verification modification
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              16
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
#
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-01-08 14:19:04 UTC
This is expected. No driver - no pcscd regontinion of your device. Your first output only shows ccid installed.