2007/9/16, Gergely CZUCZY <[EMAIL PROTECTED]>: > 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.
Corrected in revision 2629. > Farthermore, you need GNU make for this, it doesn't work with the > system-boundled make. Do you have a patch for that? What is the *BSD way to solve that problem? > 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' > gmake[3]: *** [Kobil_mIDentity_switch] Error 1 > gmake[3]: Leaving directory > `/usr/local/src/ccid-1.3.0/contrib/Kobil_mIDentity_switch' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/usr/local/src/ccid-1.3.0/contrib' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/local/src/ccid-1.3.0' > gmake: *** [all] Error 2 Corrected in revision 2630 and 2631. Thanks for your time -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel