2007/9/16, Gergely CZUCZY <[EMAIL PROTECTED]>:
> On Sun, Sep 16, 2007 at 01:34:51PM +0200, Ludovic Rousseau wrote:
> Well, this looks bad:
> gcc -g -O2 -o scardcontrol scardcontrol-scardcontrol.o  -L/usr/local/lib 
> -lpcsclite
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_create'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_attr_init'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_exit'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_cancel'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_equal'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_detach'
> /usr/local/lib/libpcsclite.so: undefined reference to 
> `pthread_attr_setdetachstate'
> /usr/local/lib/libpcsclite.so: undefined reference to `pthread_join'
> gmake[2]: *** [scardcontrol] Error 1
> gmake[2]: Leaving directory `/usr/local/src/ccid-1.3.0/examples'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/local/src/ccid-1.3.0'
> gmake: *** [all] Error 2
>
> You should check for -pthread and if not found, -lpthread, and include
> those in the LDFLAGS make variable.

It is a bug in the installation of pcsc-lite. libpcsclite.so does use
pthread but is not really links with it.

This bug only occurs on *BSD systems.

> Farthermore, you need GNU make for this, it doesn't work with the
> system-boundled make.

Patches are welcome to support your native make command.

> After doing LDFLAGS=pthread ./configure i've got the following:
> gcc -g -O2 -pthread -o Kobil_mIDentity_switch 
> Kobil_mIDentity_switch-Kobil_mIDentity_switch.o  -L/usr/local/lib 
> /usr/local/lib/libusb.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib
> Kobil_mIDentity_switch-Kobil_mIDentity_switch.o(.text+0x3b): In function 
> `kobil_midentity_claim_interface':
> /usr/local/src/ccid-1.3.0/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c:118:
>  undefined reference to `usb_detach_kernel_driver_np'

This should be linux specific. I will add a check for this.

> The boundled instructions weren't enough for building your test-suite, sorry.
>
> It's a FreeBSD 6.2-STABLE, with up-to-date smartcard packages:
> openct-0.6.13, opensc-0.11.4, pcsc-lite-1.4.3,2
>
> Could you please explain this in a bit more detailed way? I mean,
> how to build your suite.

You do not need to build every thing. Just build the parse command in src/

bye

-- 
  Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to