2012/7/17 Xiaofan Chen <xiaof...@gmail.com>:
> On Tue, Jul 17, 2012 at 6:33 PM, Wander Lairson Costa
> <wander.lair...@gmail.com> wrote:
>> 2012/7/16 Xiaofan Chen <xiaof...@gmail.com>:
>>> On Tue, Jul 17, 2012 at 10:10 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>>>> Now that NetBSD and OpenBSD also have libusb-1.0/libusbx
>>>> support along with the legacy libusb-0.1 support. So I would like
>>>> to try out pyusb under NetBSD/OpenBSD as well.
>>>>
>>>> Under NetBSD 5.1.2 release, it seems to me that pyusb can not
>>>> find the backends. I think this is because the libusb-0.1 and
>>>> libusb-1.0 libraries are under /usr/pkg (pkgsrc system).
>>>>
>>>
>>> Under OpenBSD 5.1 release, pyusb seems to work fine. The
>>> same thing though happens for OpenBSD: libusb1 backend
>>> can enumerate the device and libusb0 fails to enumerate
>>> the device.
>>>
>>
>> libusb0 seems to not work on any BSD derived system. AFAIK, FreeBSD
>> has its own implementation of libusb, what about the others? Anyway,
>> Mac OSX is part of the "main" libusb and does not work too...
>
> NetBSD, OpenBSD and pre-8 FreeBSD have the legacy libusb-0.1
> implementation.
>
> Very recently OpenBSD and NetBSD support were added to libusb-1.0
> (1.0.9 release) and libusbx (1.0.11 release onwards).
>
> And then libusb-compat can be used on OpenBSD
> and NetBSD as well to replace the legacy libusb-0.1.
>

Finally I found some time to setup a FreeBSD VM and check the libusb0
issue. It is now fixed. The problem was that I was using pathconf
function to set my _PATH_MAX variable. pathconf returned 255, but the
PATH_MAX in the limits header file is 1024. Now it should work.

I believe the Max OSX issue is the same, and also other BSDs should
suffer from the same problem. Could someone with access to Mac OSX
check what's the value of PATH_MAX macro? We need to know that value
for NetBSD and OpenBSD (does libusb 0 run under NetBSD and OpenBSD?).

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to