DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AQCGbMY3415060
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4AQCGbMY3415060
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ABitkyMZ
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D92B8385828B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1732623394;
	bh=xeStGjcFM3wDt/goa9hPjcwzoTxBEQokQYUPT+zwn8I=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=ABitkyMZMbM906x4aX+PSSZmwStyNfDH84mh/vXkisLkQAz104RRfLkKm202qol+k
	 lGzPyTf3BLEhTLQt5fX5/7sITH/xuKAP6eSzzWLYQf9SsL/s+XOZ4OXLT/cF6pnpjG
	 MzB8DJxCKDXzrMtxGA+n3QqMGUSnM4dhEVd/cB0I=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 74E2A3858D33
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 74E2A3858D33
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732623331; cv=none;
 b=RE34KGHvW24iG/rSMmgo/D8dnXn3CkGFAiywku7BAncjNh6sEsnPoUf3NaqaC2t3EzxcXVdpKaHG07TaDYwzdh4v0wwGexkEgO2B3DaNX2k01iPfvprn7q4VZxF22hT8mapxO7Gdsj18gOwBcFsfnxmH6506HFZvGo8Ty8t98oQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1732623331; c=relaxed/simple;
 bh=VEM0b0c0FHBU+qIbtPjE2nxa+Hvdr6S0UlKfpgDAS6w=;
 h=DKIM-Signature:To:From:Subject:Message-ID:Date:MIME-Version;
 b=SgVQSbhqxZ0Z2CKca1goUh+XvSNpw6DDdvL6GQFDSnLtNrHZrnXuBMTowF0rHEogE1rDMexFzrupuAg4vbhNpIgRm1YI3jF1Zm9zNkKISQ+bCsUHgrcZsQmn7jR2AMEaH1H8S+jpgZ32l4zZp6xCpLS8l3MRFtSSDuDcEOampyk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74E2A3858D33
To: cygwin@cygwin.com
Subject: libusb error -12
Autocrypt: addr=joel.bertrand@systella.fr; prefer-encrypt=mutual; keydata=
 mDMEZRwX3xYJKwYBBAHaRw8BAQdAPnfO4wC5CMbkYaOioVYbTVmx5dnKJwvYZ8EKDFyZGyO0
 KkJFUlRSQU5EIEpvw6tsIDxqb2VsLmJlcnRyYW5kQHN5c3RlbGxhLmZyPoiMBBAWCgA+BYJl
 HBffBAsJBwgJkMVb+z+YwtcIAxUICgQWAAIBAhkBApsDAh4BFiEEI/DFvIjrAtkVxM55xVv7
 P5jC1wgAADaKAQCkdx4kqKvHPhJGYGrq2VXpJQhdOqE9Asq/kkw+GS4c6AD9GdILmmQUH3Tn
 KZCiY2wzujE2j1VjOmCPHfn+7X8gYAG4OARlHBffEgorBgEEAZdVAQUBAQdAyvP3E1DykVzz
 7VjVTT3JcAZOnV4tjH3Pnu+YwGJdylEDAQgHiHgEGBYIACoFgmUcF98JkMVb+z+YwtcIApsM
 FiEEI/DFvIjrAtkVxM55xVv7P5jC1wgAADU2AP4l7GE6+jTfSEoE1p/NRZ3Au5cWxRXSim70
 Ka7nW9E4NAD9FuYgs7TCaiKkcu6pnRVaFkEYUC41LzbHjATtY0czBg4=
Message-ID: <5c19e340-fbc1-35b4-c3e1-d2ea36b4b958@systella.fr>
Date: Tue, 26 Nov 2024 13:15:07 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Firefox/91.0 SeaMonkey/2.53.19
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 1.4.1 at rayleigh
X-Virus-Status: Clean
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: =?utf-8?q?BERTRAND_Jo=C3=ABl_via_Cygwin?= <cygwin@cygwin.com>
Reply-To: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= <joel.bertrand@systella.fr>
Content-Type: multipart/mixed; boundary="===============9071531393736565385=="
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============9071531393736565385==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="c4LDJinKLrd2ysLzqfYSG7Mk9vShmxKtC"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--c4LDJinKLrd2ysLzqfYSG7Mk9vShmxKtC
Content-Type: multipart/mixed; boundary="cW6zvHGwSXpKnJcQKwF8Lu6nyo9DxkiJ7"

--cW6zvHGwSXpKnJcQKwF8Lu6nyo9DxkiJ7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

	Hello,

	I'm trying to build a little piece of code that comes from NetBSD.
Target is Windows 10 Enterprise (64 bits) and up to date Cygwin.

	My code is linked with readline, and statically linked with a
cryptographic library, sqlite and libcyusbserial (a Cypress library that
is provided by Cypress). I have build libcyusbserial on NetBSD and Linux
and both libraries run as expected. This last library uses libusb 1.0.

	Under cygwin, I have built my program without trouble, but it is not
usable.

$ lsusb
=2E..
Bus 001 Device 003: ID 04b4:0004 Cypress Semiconductor Corp.
Bus 001 Device 003: ID 04b4:0004 Cypress Semiconductor Corp.
=2E..

	Device appears twice as is contains two different end points. Now, I
try to run my code.

$ ./sonde 1
=2E..
CY:Error in opening the device... Libusb error is -12
CyGetDeviceInfo failure (3)

	I have tried to execute this code as administrator with the same
result. I don't understand why lubusb returns an error.

	Help will be welcome,

	JKB


--cW6zvHGwSXpKnJcQKwF8Lu6nyo9DxkiJ7--

--c4LDJinKLrd2ysLzqfYSG7Mk9vShmxKtC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCZ0W7zQAKCRDFW/s/mMLX
CFGNAP9nj/SZQX2zJKVV74osbq1a4Qg7NKQ3It/6pbgHhnjXoQD/ep2Fous8vg3B
PMcRJbiVU6no9MThYii7upL7ic2dhQc=
=26Le
-----END PGP SIGNATURE-----

--c4LDJinKLrd2ysLzqfYSG7Mk9vShmxKtC--

--===============9071531393736565385==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--===============9071531393736565385==--
