[Pcsclite-muscle] CCID has undefined symbol 'yylex' when loaded by pcscd

Scott Colby scolby33 at gmail.com
Mon May 7 00:16:42 PDT 2018


Hello,

I have been having an issue with pcscd that I think I can trace back
to the ccid driver. I did a zgrep through the archives for 'yylex'
with no hits, so I hope I'm not repeating something that's been solved
here before.

The relevant versions are:
ccid 1.4.29-2.0 from Arch
(https://www.archlinux.org/packages/community/x86_64/ccid/)
pcsclite 1.8.23-2.0 from Arch
(https://www.archlinux.org/packages/community/x86_64/pcsclite/)

$ /usr/sbin/pcscd --version
pcsc-lite version 1.8.23.
Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
Copyright (C) 2001-2015 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
Report bugs to <pcsclite-muscle at lists.alioth.debian.org>.
Enabled features: Linux i686-pc-linux-gnu libsystemd serial usb
libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter
configdir=/etc/reader.conf.d

$ uname -a
Linux hostname 4.16.3-1.0-ACH #1 SP PREEMPT Fri Apr 20 11:08:08 CEST
2018 i686 GNU/Linux

I'm running archlinux32 (https://archlinux32.org/) on a Dell Mini 9
laptop and am attempting to connect with a Yubikey 4.

The log from a verbose invocation of pcscd (sudo
LIBCCID_ifdLogLevel=0x00F pcscd --foreground --debug --apdu --color |
tee log.txt) is attached (ANSI color escapes are in this file--read
with `less -R`).

Please let me know if there's any other information required to help
solve this problem!

Thank you,
Scott Colby


Scott Colby
Chemistry
Stanford University
-------------- next part --------------
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000072 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000041 pcscdaemon.c:352:main() Force colored logs
00000368 configfile.l:285:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000063 configfile.l:322:DBGetReaderListDir() Skipping non regular file: ..
00000017 configfile.l:361:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000140 configfile.l:322:DBGetReaderListDir() Skipping non regular file: .
00000031 pcscdaemon.c:662:main() pcsc-lite 1.8.23 daemon ready.
00016746 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00001358 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001
00001366 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001
00001386 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001
00001512 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
10503450 hotplug_libudev.c:651:HPEstablishUSBNotifications() USB Device add
00000750 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0407, path: /dev/bus/usb/003/005
00000034 hotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
00000257 readerfactory.c:1075:RFInitializeReader() Attempting startup of Yubico Yubikey 4 OTP+U2F+CCID 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001546 dyn_unix.c:58:DYN_LoadLibrary() /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so: /usr/lib/libfl.so.2: undefined symbol: yylex
00000036 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
00000018 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 OTP+U2F+CCID init failed.
00000021 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
00001266 hotplug_libudev.c:651:HPEstablishUSBNotifications() USB Device add
00000778 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0407, path: /dev/bus/usb/003/005
00000041 hotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
00000256 readerfactory.c:1075:RFInitializeReader() Attempting startup of Yubico Yubikey 4 OTP+U2F+CCID 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001586 dyn_unix.c:58:DYN_LoadLibrary() /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so: /usr/lib/libfl.so.2: undefined symbol: yylex
00000034 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
00000019 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 OTP+U2F+CCID init failed.
00000021 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
00039761 hotplug_libudev.c:651:HPEstablishUSBNotifications() USB Device add
00000744 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0407, path: /dev/bus/usb/003/005
00000036 hotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
00000255 readerfactory.c:1075:RFInitializeReader() Attempting startup of Yubico Yubikey 4 OTP+U2F+CCID 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001464 dyn_unix.c:58:DYN_LoadLibrary() /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so: /usr/lib/libfl.so.2: undefined symbol: yylex
00000035 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
00000018 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 OTP+U2F+CCID init failed.
00000021 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico Yubikey 4 OTP+U2F+CCID
06899414 winscard_msg_srv.c:255:ProcessEventsServer() Common channel packet arrival
00000083 winscard_msg_srv.c:267:ProcessEventsServer() ProcessCommonChannelRequest detects: 7
00000017 pcscdaemon.c:133:SVCServiceRunLoop() A new context thread creation is requested: 7
00000279 winscard_svc.c:340:ContextThread() Authorized PC/SC client
00000020 winscard_svc.c:344:ContextThread() Thread is started: dwClientID=7, threadContext @0x1c26ea0
00000055 winscard_svc.c:362:ContextThread() Received command: CMD_VERSION from client 7
00000032 winscard_svc.c:374:ContextThread() Client is protocol version 4:3
00000017 winscard_svc.c:394:ContextThread() CMD_VERSION rv=0x0 for client 7
00000171 winscard_svc.c:362:ContextThread() Received command: ESTABLISH_CONTEXT from client 7
00000082 winscard.c:215:SCardEstablishContext() Establishing Context: 0x516F3D78
00000018 winscard_svc.c:458:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7
00000115 winscard_svc.c:362:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
00000194 winscard_svc.c:362:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
00005421 winscard_svc.c:362:ContextThread() Received command: CONNECT from client 7
00000051 winscard_svc.c:496:ContextThread() Authorized client for 'Yubico Yubikey 4 OTP+U2F+CCID 00 00'
00000018 winscard.c:259:SCardConnect() Attempting Connect to Yubico Yubikey 4 OTP+U2F+CCID 00 00 using protocol: 2
00000015 winscard.c:264:SCardConnect() Reader Yubico Yubikey 4 OTP+U2F+CCID 00 00 Not Found
00000016 winscard_svc.c:510:ContextThread() CONNECT rv=0x80100009 for client 7
00010432 winscard_svc.c:362:ContextThread() Received command: RELEASE_CONTEXT from client 7
00000050 winscard.c:229:SCardReleaseContext() Releasing Context: 0x516F3D78
00000020 winscard_svc.c:473:ContextThread() RELEASE_CONTEXT rv=0x0 for client 7
00000130 winscard_svc.c:354:ContextThread() Client die: 7
00000142 winscard_svc.c:1029:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x1c26ea0
00000027 winscard_svc.c:1035:MSGCleanupClient() Freeing SCONTEXT @0x1c26ea0


More information about the pcsclite-muscle mailing list