Page MenuHomeSolus

pcscd fails to access smartcards due to ccid and undefined symbol in flex.
Closed, ResolvedPublic

Description

After the latest sync (2019-06-14) smartcards like Yubikey/Nitrokey are not detected anymore and can't be used with gpg or ssh.
pcscd reveals that ccid has a problem with libfl.so which comes with flex and was introduced as dependency of ccid in https://dev.getsol.us/R500:9647d13bf2cc76754b963f7b614689e1de4f7753.

● pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; vendor preset: enabled)
   Active: active (running) since Sat 2019-06-15 11:11:07 CEST; 4min 5s ago
     Docs: man:pcscd(8)
 Main PID: 686 (pcscd)
    Tasks: 3 (limit: 4915)
   Memory: 1.3M
   CGroup: /system.slice/pcscd.service
           └─686 /usr/sbin/pcscd --foreground --auto-exit

Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000002 readerfactory.c:376:RFAddReader() Yubico YubiKey OTP+FIDO+CCID init failed.
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000003 hotplug_libudev.c:527:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00056213 dyn_unix.c:58:DYN_LoadLibrary() /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so: /usr/lib/libfl.so.2: undefined symbol: yylex
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000024 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000007 readerfactory.c:376:RFAddReader() Yubico YubiKey OTP+FIDO+CCID init failed.
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000007 hotplug_libudev.c:527:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000823 dyn_unix.c:58:DYN_LoadLibrary() /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so: /usr/lib/libfl.so.2: undefined symbol: yylex
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000024 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000007 readerfactory.c:376:RFAddReader() Yubico YubiKey OTP+FIDO+CCID init failed.
Jun 15 11:14:36 solus-t470-itfl pcscd[686]: 00000006 hotplug_libudev.c:527:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID

Most simple solution to fix this problem is to roll back to ccid, version: 1.4.30, release 6 (https://packages.getsol.us/unstable/c/ccid/).

Problem occurs on:
ccid, version: 1.4.30, release: 7
flex, version: 2.6.4, release: 13
pcsc-lite, version: 1.8.24, release: 7

Event Timeline

r3r57 created this task.Jun 15 2019, 9:33 AM
r3r57 assigned this task to DataDrake.Jun 15 2019, 9:34 AM
r3r57 updated the task description. (Show Details)Jun 15 2019, 9:43 AM
kyrios123 removed DataDrake as the assignee of this task.Jun 15 2019, 9:47 AM
kyrios123 triaged this task as Normal priority.
kyrios123 edited projects, added Software; removed Lacks Project.
kyrios123 added subscribers: DataDrake, kyrios123.

@r3r57 Please don't assign tasks

kyrios123 moved this task from Backlog to Package Fixes on the Software board.Jun 15 2019, 9:47 AM