[Muscle] pcsc-lite on 2.4 kernel - libusb problem
galapogos
goister at gmail.com
Fri Nov 14 02:43:46 PST 2008
galapogos wrote:
>
> Hi,
>
> I'm trying to install pcsc-lite on Mandrake 9.1. The default
> libusb/libusb-devel rpm that's installed there is 0.1.6a, and during
> pcsc-lite's configure, it informs me that I need 0.1.7 or newer version of
> libusb. Hence I downloaded 0.1.7 rpm for Mandrake 9.x and installed it.
> After this, I'm able to perform the configure, make and then make install.
>
> However, after doing so and running pcscd -df, I got the following output:
>
> 00000000 pcscdaemon.c:280:main() pcscd set to foreground with debug send
> to
> stderr
> 00000255 pcscdaemon.c:498:main() pcsc-lite 1.4.102 daemon ready.
> 00000642 hotplug_libusb.c:111:HPReadBundleValues() Cannot open PC/SC
> drivers
> directory: /usr/local/pcsc/drivers
> 00000015 hotplug_libusb.c:112:HPReadBundleValues() Disabling USB support
> for
> pcscd.
>
> I then went to /usr/local and sure enough, there's no pcsc sub-directory.
> I
> then scrolled back to the configure/make install logs and found that
> during
> configure, the following messages were output:
>
> checking for LIBUSB... Package libusb was not found in the pkg-config
> search
> path.
> Perhaps you should add the directory containing `libusb.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libusb' found
> no
> no
>
> However, at the end of the configuration, it tells me that pcsc-lite has
> been configured with libusb supported enabled, and the USB drop directory
> was correctly set to /usr/local/pcsc/drivers.
>
> Why then was libusb not found? I did a search for libusb.pc and couldn't
> find any. How can I fix this?
>
> Thanks.
>
> --
> - Goi Sihan
> goister at gmail.com
>
> _______________________________________________
> Muscle mailing list
> Muscle at lists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle
>
>
So I managed the solve the installation problem by upgrading to Mandrake
9.2, which has 0.1.7 built in. However it still complained of the problem,
and turns out there's no libusb.pc, so I created one and placed it in the
pkgconfig directory and it configured/made correctly. I was then also able
to do the configure ccid1.3.8 successfully
However, when I tried to make ccid, it bombed out with the following error:
./.libs/libccid.so: undefined reference to `usb_interrupt_read'
collect2: ld returned 1 exit status
make[2]: *** [parse] Error 1
make[2]: Leaving directory `/Sandbox/ccid-1.3.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Sandbox/ccid-1.3.8'
make: *** [all] Error 2
So I checked the usb.h header file and sure enough, there's no
usb_interrupt_read() prototype there at all. I checked my other system with
libusb 0.1.12, and the usb.h there does have this prototype.
Does this mean I need a newer version of libusb? Why does pcsc-lite/ccid
claim to support 0.1.7 and above when it uses functions not defined in
0.1.7?
--
View this message in context: http://www.nabble.com/pcsc-lite-on-2.4-kernel---libusb-problem-tp20455239p20498181.html
Sent from the MuscleCard mailing list archive at Nabble.com.
More information about the Muscle
mailing list