From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125297 invoked by alias); 2 Feb 2020 05:38:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 125290 invoked by uid 89); 2 Feb 2020 05:38:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=maintainer, attn, libusb10, Doug X-HELO: mail-wm1-f46.google.com Received: from mail-wm1-f46.google.com (HELO mail-wm1-f46.google.com) (209.85.128.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Feb 2020 05:38:12 +0000 Received: by mail-wm1-f46.google.com with SMTP id a5so12351230wmb.0 for ; Sat, 01 Feb 2020 21:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=MDx8HeE0uZ0w81PhsViqH/Pd/FJqobp2Spy8ETsbXJQ=; b=RGCYmCFMiSl20SmNiVc1NUE+BJI7Rd3S7CZy/aElwtYshxKj4i/05dku/Rp06BWJfn Kqf2Q2zTtsaNGB88Dz6UKSHvLN/oveP2PhtqPoAUFfYJEvcsMK6xzjLBD6G0gFIj1XRR 37yExMpf5b1Wehv22jdGujbv/tHRq/8+Wf1O5QbsXs50TDzEbaWo5IMHcb6iuRpjkQi6 Afxu+rxgDVi25Q5fOH7PcdhkJljePrFuggE2ZY9qb6usE8WO85QIGAPSO1KGYbGMcAYF kn+/HOYvs6ge+uul0xZk3dlO4DsMEuVZg5/q88NC7SiP8f+4JbV3e+tSQDDvq5un6dwc orAw== Return-Path: Received: from ?IPv6:2003:ee:6727:2e01:a0b4:1b60:120f:6939? (p200300EE67272E01A0B41B60120F6939.dip0.t-ipconnect.de. [2003:ee:6727:2e01:a0b4:1b60:120f:6939]) by smtp.gmail.com with ESMTPSA id o189sm10337515wme.1.2020.02.01.21.38.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Feb 2020 21:38:09 -0800 (PST) Subject: Re: Building libusb1.0 from source fails (Attn maintainer) To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <0b3c68da-fb4c-f00f-7324-40529047dea0@gmail.com> Date: Sun, 02 Feb 2020 05:38:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------BE19705E1FC81F9D8F7EE130" X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00012.txt.bz2 --------------BE19705E1FC81F9D8F7EE130 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-length: 1126 Am 02.02.2020 um 02:23 schrieb Doug Henderson: > Windows 10 Home > 10.0.17763 Build 17763 > > $ uname -a > CYGWIN_NT-10.0 mars 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin > > fully patched as of today (no test versions or snapshots installed) > > > Building libusb1.0 from source using > > $ cygport libusb1.0.cygport download > $ cygport libusb1.0.cygport prep > $ cygport libusb1.0.cygport compile > > fails with: > > /usr/src/libusb1.0-1.0.21-1.src/libusb1.0-1.0.21-1.x86_64/src/libusb-1.0.21/libusb/io.c: > In function ‘usbi_io_init’: > /usr/src/libusb1.0-1.0.21-1.src/libusb1.0-1.0.21-1.x86_64/src/libusb-1.0.21/libusb/io.c:1167:2: > error: implicit declaration of function ‘close’; did you mean > ‘_lclose’? [-Werror=implicit-function-declaration] > close(ctx->timerfd); > ^~~~~ > _lclose > cc1: some warnings being treated as errors > > I also built with the latest upstream release, but that generates a > great many warnings, which I have not attempted to resolve. > > Any guidance to resolve this is appreciated. > > Doug > attached patch solve the build issue. Regards Marco --------------BE19705E1FC81F9D8F7EE130 Content-Type: text/plain; charset=UTF-8; name="libusb1.0-1.0.21-1.src.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="libusb1.0-1.0.21-1.src.patch" Content-length: 403 LS0tIG9yaWdzcmMvbGlidXNiLTEuMC4yMS9saWJ1c2IvaW8uYwkyMDE2LTEw LTI1IDE4OjA3OjM4LjAwMDAwMDAwMCArMDIwMAorKysgc3JjL2xpYnVzYi0x LjAuMjEvbGlidXNiL2lvLmMJMjAyMC0wMi0wMiAwNjozMzowNS4xNDEwNzQz MDAgKzAxMDAKQEAgLTI3LDYgKzI3LDcgQEAKICNpbmNsdWRlIDxzdGRsaWIu aD4KICNpbmNsdWRlIDxzdHJpbmcuaD4KICNpbmNsdWRlIDx0aW1lLmg+Cisj aW5jbHVkZSA8dW5pc3RkLmg+CiAjaWZkZWYgSEFWRV9TSUdOQUxfSAogI2lu Y2x1ZGUgPHNpZ25hbC5oPgogI2VuZGlmCg== --------------BE19705E1FC81F9D8F7EE130 Content-Type: text/plain; charset=us-ascii Content-length: 219 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --------------BE19705E1FC81F9D8F7EE130--