The problem
pcsc-lite defined some error codes specific to pcsc-lite. One is
SCARD_W_INSERTED_CARD
.This error code is never returned by pcsc-lite and has been removed in pcsc-lite revision 4574 included in pcsc-lite 1.6.0.
Solution
Do not reference this error code any more. The side effect is that if your Perl program uses
SCARD_W_INSERTED_CARD
it will fail and has to be corrected.Thanks
Thanks to Olivier Huber for reporting the problem.
See also
A previous blog entry about this Perl PCSC wrapper: PCSC sample in Perl.