Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60707 - [ccid] Undefined symbol "yylex" causing yubikey connection failures

Attached to Project: Community Packages
Opened by Joey Pabalinas (alyptik) - Monday, 05 November 2018, 20:05 GMT
Last edited by Christian Hesse (eworm) - Monday, 05 November 2018, 20:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Alad Wenter (Alad)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

ccid is unable to find the "yylex" symbol in /usr/lib/libfl.so.2, even with flex installed, causing yubikey connection attempts to fail.

Additional discussion found here: https://github.com/Yubico/yubico-piv-tool/issues/146
Fix found here: https://bugzilla.redhat.com/show_bug.cgi?id=1386390#c1

Solution is to change

./configure [...]

to

LEXLIB='' ./configure [...]

PKGBUILD patch attached.

Additional info:

ccid 1.4.30-1
flex 2.6.4-2
gnupg 2.2.10-1
yubikey-manager 1.0.1-1

Steps to reproduce:

$ gpg --card-edit
[...]
Signature counter : 192
Signature key ....: 3694 E559 4DA1 50AF CA32 F1E9 DAB1 9D7E 6F43 B552
created ....: 2018-10-31 07:49:48
keygrip ....:
gpg: signal Segmentation fault caught ... exiting
[1] 19801 segmentation fault (core dumped) gpg --card-edit

$ ykman openpgp info
[1] 28320 killed ykman openpgp info

$ systemctl status pcscd.service
â pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; vendor preset: disabled)
Active: active (running) since Mon 2018-11-05 09:44:06 HST; 24s ago
Docs: man:pcscd(8)
Main PID: 28335 (pcscd)
Tasks: 3 (limit: 4915)
Memory: 1.2M
CGroup: /system.slice/pcscd.service
ââ28335 /usr/bin/pcscd --foreground --auto-exit

Nov 05 09:44:06 hobbes pcscd[28335]: 00000004 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID
Nov 05 09:44:06 hobbes pcscd[28335]: 00000394 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
Nov 05 09:44:06 hobbes pcscd[28335]: 00000007 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
Nov 05 09:44:06 hobbes pcscd[28335]: 00000002 readerfactory.c:376:RFAddReader() Yubico YubiKey OTP+FIDO+CCID init failed.
Nov 05 09:44:06 hobbes pcscd[28335]: 00000023 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID
Nov 05 09:44:06 hobbes pcscd[28335]: 00000387 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
Nov 05 09:44:06 hobbes pcscd[28335]: 00000006 readerfactory.c:1082:RFInitializeReader() RFLoadReader failed: 0x80100014
Nov 05 09:44:06 hobbes pcscd[28335]: 00000019 readerfactory.c:376:RFAddReader() Yubico YubiKey OTP+FIDO+CCID init failed.
Nov 05 09:44:06 hobbes pcscd[28335]: 00000002 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: Yubico YubiKey OTP+FIDO+CCID
Nov 05 09:44:06 hobbes pcscd[28335]: 00002054 winscard.c:264:SCardConnect() Reader Yubico YubiKey OTP+FIDO+CCID 00 00 Not Found
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 05 November 2018, 20:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  ccid-1.4.30-2
Comment by Eli Schwartz (eschwartz) - Monday, 05 November 2018, 20:16 GMT
Seen by Foxboron and sangy on IRC as well, ever since flex was rebuilt for the first time in a long time -- and coincidentally getting rebuilt with PIE.

Loading...