can't "make" ccid on Ubuntu 14.04.4 LTS

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

can't "make" ccid on Ubuntu 14.04.4 LTS

John Simpson
I'm trying to rebuild ccid with support for our smartcard reader 0x76b:a024.  The ./configure succeeds, but the make fails with an error.

root@acmu:~/ccid/ccid-1.4.24# PCSC_LIBS="-L/lib/i386-linux-gnu -lpcsclite" ./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0 LIBUSB_LIBS=-lusb-1.0 --enable-usbdropdir=/usr/lib/pcsc/drivers
(successful)

root@acmu:~/ccid/ccid-1.4.24# make
Making all in src
make[2]: Entering directory `/root/ccid/ccid-1.4.24/src'
  CCLD     parse
/usr/bin/ld: parse-ccid_usb.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
//lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Please let me know what other info is needed to troubleshoot.

Thanks,


John

_______________________________________________
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: can't "make" ccid on Ubuntu 14.04.4 LTS

Ludovic Rousseau
2016-06-24 17:42 GMT+02:00 John Simpson <[hidden email]>:
I'm trying to rebuild ccid with support for our smartcard reader 0x76b:a024. 

I do not have this device in my list.
The ./configure succeeds, but the make fails with an error.

root@acmu:~/ccid/ccid-1.4.24# PCSC_LIBS="-L/lib/i386-linux-gnu -lpcsclite" ./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0 LIBUSB_LIBS=-lusb-1.0 --enable-usbdropdir=/usr/lib/pcsc/drivers
(successful)

Why don't you use "./configure" without extra arguments?

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: can't "make" ccid on Ubuntu 14.04.4 LTS

John Simpson

No.  This card reader is built in to our product.  We have a license agreement with HID for the design.  It is not going to be resold separate from our product.  I added the product info to readers/supported_readers.txt before running ./configure.

Why don't you use "./configure" without extra arguments? 

I tried that first.  I don't know why all of the options were necessary:

# ./configure
...
configure: error: install pcsc-lite 1.8.3 or later, or use ./configure PCSC_CFLAGS=..

# apt-cache policy pcscd
pcscd:
  Installed: 1.8.10-1ubuntu1
  Candidate: 1.8.10-1ubuntu1 

# ./configure PCSC_CFLAGS=-I/usr/include/PCSC
...
configure: error: libusb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=...

# find / -name libusb.h
/usr/include/libusb-1.0/libusb.h

# ./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0
...
checking for libusb_init... configure: error: libusb not found, use ./configure LIBUSB_LIBS=...

# ./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0 LIBUSB_LIBS=-lusb-1.0
...
./configure: line 13890: libpcsclite: command not found
configure: error: use --enable-usbdropdir=DIR

./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0 LIBUSB_LIBS=-lusb-1.0 --enable-usbdropdir=/usr/lib/pcsc/drivers
...
./configure: line 13939: libpcsclite: command not found
checking for SCardEstablishContext... configure: error: SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use PCSC_LIBS=...  ./configure

# PCSC_LIBS="-L/lib/i386-linux-gnu -lpcsclite" ./configure PCSC_CFLAGS=-I/usr/include/PCSC LIBUSB_CFLAGS=-I/usr/include/libusb-1.0 LIBUSB_LIBS=-lusb-1.0 --enable-usbdropdir=/usr/lib/pcsc/drivers
(successful)

That brings me to "make":
# make
...
/usr/bin/ld: parse-ccid_usb.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
//lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

Thanks,


John

_______________________________________________
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: can't "make" ccid on Ubuntu 14.04.4 LTS

Ludovic Rousseau
2016-06-27 15:26 GMT+02:00 John Simpson <[hidden email]>:

No.  This card reader is built in to our product.  We have a license agreement with HID for the design.  It is not going to be resold separate from our product.  I added the product info to readers/supported_readers.txt before running ./configure.

Why don't you use "./configure" without extra arguments? 

I tried that first.  I don't know why all of the options were necessary:

Maybe you need to install the pkg-config package.

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: can't "make" ccid on Ubuntu 14.04.4 LTS

John Simpson
Yes!  Thank you :-)

That solved both issues.

Thanks,


John

On Mon, Jun 27, 2016 at 10:31 AM, Ludovic Rousseau <[hidden email]> wrote:
2016-06-27 15:26 GMT+02:00 John Simpson <[hidden email]>:

No.  This card reader is built in to our product.  We have a license agreement with HID for the design.  It is not going to be resold separate from our product.  I added the product info to readers/supported_readers.txt before running ./configure.

Why don't you use "./configure" without extra arguments? 

I tried that first.  I don't know why all of the options were necessary:

Maybe you need to install the pkg-config package.

Bye

--
 Dr. Ludovic Rousseau

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


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