More smart cards compile problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

More smart cards compile problem

Szentpétery István
Hello
First of all i am not that good in linux, but i need to compile the pcsc lite to be able to handle at least 128 smart cards, and i have made the proper changes according to this: https://github.com/LudovicRousseau/PCSC/issues/8
And made a batch file to make the proper changes and to compile the libraries, but i get this response from the pcsc_scan after running the file:

PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <[hidden email]>
Compiled with PC/SC lite version: 1.8.20
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...found one
Scanning present readers...
0: "
1: "
2: "
3: "
4: "
5: "
6: "
7: "
8: "
9: "
10: "
11: "
12: "
13: "
14: "
15: "
SCardGetStatusChange: Invalid parameter given.

I am using ubuntu 16.04 LTS 32 bit version, there are no smart card attached to the computer, but the output from the pcsc_scan is the same if there are smart card readers attached to the computer.

pcscd -version
pcsc-lite version 1.8.20.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2015 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux i686-pc-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d

I have attached the log file from this:
sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
after running a pcsc_scan
Regards.


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

install-pcscd.sh (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: More smart cards compile problem

Ludovic Rousseau
2017-04-28 11:13 GMT+02:00 Szentpétery István <[hidden email]>:
Hello

Hello,
 
First of all i am not that good in linux, but i need to compile the pcsc lite to be able to handle at least 128 smart cards, and i have made the proper changes according to this: https://github.com/LudovicRousseau/PCSC/issues/8
And made a batch file to make the proper changes and to compile the libraries, but i get this response from the pcsc_scan after running the file:

PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <[hidden email]>
Compiled with PC/SC lite version: 1.8.20
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...found one
Scanning present readers...
0: "
1: "
2: "
3: "
4: "
5: "
6: "
7: "
8: "
9: "
10: "
11: "
12: "
13: "
14: "
15: "
SCardGetStatusChange: Invalid parameter given.

I am using ubuntu 16.04 LTS 32 bit version, there are no smart card attached to the computer, but the output from the pcsc_scan is the same if there are smart card readers attached to the computer.

pcscd -version
pcsc-lite version 1.8.20.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2015 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux i686-pc-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d

I have attached the log file from this:
sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
after running a pcsc_scan
Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: More smart cards compile problem

Szentpétery István
In reply to this post by Szentpétery István
Thank you very much for your help.
I read the article but there were some old values in it.

Actually i had to make the link to:
/lib/x86_64-linux-gnu/ on 64 bit ubuntu and /lib/i386-linux-gnu/ on 32 bit ubuntu, instead of /lib/.

Changed the configuration to ./configure --prefix=/usr
but the usbdropdir=/usr/local/lib/pcsc/drivers remaind un /usr local and i found out this after installing the ccid so i reinstalled the ccid with  ./configure --enable-usbdropdir=/usr/lib/pcsc/drivers/ to overvrite this option.
And now it is working properly.

Would it be better to change the usbdropdir in the configuration of the pcsc-lite?
Thank you again for your help.

Regards.


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: More smart cards compile problem

Ludovic Rousseau
2017-05-08 14:16 GMT+02:00 Szentpétery István <[hidden email]>:
Thank you very much for your help.
I read the article but there were some old values in it.

I am not surprised. The article is from October 2010.
I added an update to the blog article.


Actually i had to make the link to:
/lib/x86_64-linux-gnu/ on 64 bit ubuntu and /lib/i386-linux-gnu/ on 32 bit ubuntu, instead of /lib/.

Changed the configuration to ./configure --prefix=/usr
but the usbdropdir=/usr/local/lib/pcsc/drivers remaind un /usr local and i found out this after installing the ccid so i reinstalled the ccid with  ./configure --enable-usbdropdir=/usr/lib/pcsc/drivers/ to overvrite this option.
And now it is working properly.

Would it be better to change the usbdropdir in the configuration of the pcsc-lite?
Thank you again for your help.

The CCID driver should find the correct usbdropdir value using pkg-config if pcsc-lite has been configured correctly.

You should get the correct value using:
$ pkg-config libpcsclite --variable=usbdropdir

If that is not the case then your installed libpcsclite.pc file is not correct.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle