Compiling CCID driver on El Capitan

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

Compiling CCID driver on El Capitan

Nikolay Spassov

Hi everyone,

I am trying to get Nitrokey Pro working on El Capitan.

Initially I installed OpenSC 0.15.0 since that worked on Yosemite but looks like on El Capitan things are different.

I also have
$ /usr/local/sbin/pcscd -v
pcsc-lite version 1.8.14
Enabled features: MacOS x86_64-apple-darwin15.0.0 serial usb usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d

However, ps aux gives me this:

$ ps aux | grep pcscd | grep -v grep
root              141   0,0  0,0  2516572   3520   ??  Ss   12:49pm   0:00.02 /System/Library/Frameworks/PCSC.framework/Versions/A/XPCServices/com.apple.ctkpcscd.xpc/Contents/MacOS/com.apple.ctkpcscd

i.e. looks like Apple's pscsd is running? I can’t tell if there is an issue.

I got the CCID-1.4.21 source. ./bootstrap and ./configure went fine but then I got this error:

~/ccid-1.4.21$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in readers
make[2]: Nothing to be done for `all'.
Making all in examples
  CC       scardcontrol-PCSCv2part10.o
  CCLD     scardcontrol
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
  "_SCardControl132", referenced from:
      _main in scardcontrol-scardcontrol.o
      _PCSCv2Part10_find_TLV_property_by_tag_from_hcard in scardcontrol-PCSCv2part10.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [scardcontrol] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have the dependencies installed via brew:
$ brew list
autoconf automake libtool libusb openssl pkg-config


Any pointers will be appreciated!

I want to publish a step-by-step guide for Nitrokey with El Capitan after I get it running.

Best regards,
Nikolay



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

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compiling CCID driver on El Capitan

Nikolay Spassov

I was able to resolve the error by cloning the git repo and updating submodules as described here: https://www.nitrokey.com/forum/viewtopic.php?f=13&t=1500#p8480


> On 24.10.2015, at 13:46, Nikolay Spassov <[hidden email]> wrote:
>
>
> Hi everyone,
>
> I am trying to get Nitrokey Pro working on El Capitan.
>
> Initially I installed OpenSC 0.15.0 since that worked on Yosemite but looks like on El Capitan things are different.
>
> I also have
> $ /usr/local/sbin/pcscd -v
> pcsc-lite version 1.8.14
> Enabled features: MacOS x86_64-apple-darwin15.0.0 serial usb usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d
>
> However, ps aux gives me this:
>
> $ ps aux | grep pcscd | grep -v grep
> root              141   0,0  0,0  2516572   3520   ??  Ss   12:49pm   0:00.02 /System/Library/Frameworks/PCSC.framework/Versions/A/XPCServices/com.apple.ctkpcscd.xpc/Contents/MacOS/com.apple.ctkpcscd
>
> i.e. looks like Apple's pscsd is running? I can’t tell if there is an issue.
>
> I got the CCID-1.4.21 source. ./bootstrap and ./configure went fine but then I got this error:
>
> ~/ccid-1.4.21$ make
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in readers
> make[2]: Nothing to be done for `all'.
> Making all in examples
>  CC       scardcontrol-PCSCv2part10.o
>  CCLD     scardcontrol
> clang: warning: argument unused during compilation: '-pthread'
> clang: warning: argument unused during compilation: '-pthread'
> clang: warning: argument unused during compilation: '-pthread'
> Undefined symbols for architecture x86_64:
>  "_SCardControl132", referenced from:
>      _main in scardcontrol-scardcontrol.o
>      _PCSCv2Part10_find_TLV_property_by_tag_from_hcard in scardcontrol-PCSCv2part10.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [scardcontrol] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I have the dependencies installed via brew:
> $ brew list
> autoconf automake libtool libusb openssl pkg-config
>
>
> Any pointers will be appreciated!
>
> I want to publish a step-by-step guide for Nitrokey with El Capitan after I get it running.
>
> Best regards,
> Nikolay
>
>

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

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compiling CCID driver on El Capitan

Ludovic Rousseau
Hello,

2015-10-24 14:15 GMT+02:00 Nikolay Spassov <[hidden email]>:

I was able to resolve the error by cloning the git repo and updating submodules as described here: https://www.nitrokey.com/forum/viewtopic.php?f=13&t=1500#p8480

Your error was to use ./configure and not ./MacOSX/configure as documented in https://pcsclite.alioth.debian.org/ccid.html#MacOSX

Bye

--
 Dr. Ludovic Rousseau

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