X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=l59u tWUIx4xsRDqKybQeYXFYTG1LFV63wWaA1z1UmUoPuB0oBKA59yPSaNAa9wFyXOvY BffCY4CRMXX6Ht2SFvFbmdjzNjD92ScUIpua7Y7D2V1l0vzJGf6KsMDj2XoIFc4A yfJCmBaahX9HS0Db+aOhq+HCOrugUvqIzZHfmAA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=cz9l/WHsCr m/1QzcoOhUpQYfsL8=; b=uLe0OUGhvsPkcqGTBIfyzPiCEDPZPInEVlOR++RCqW yfwpOI0HA7tHgfaK40uWhFVVSLi8I20ccyOk15J/ZtmlzTaVuvh8gEhKmVxJZhtb 7EQzkddMeGPUKar3O9p3iLYMGPMBVIH53giN2udO2g9oW6x7j3XkH68723OHFrUW Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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== Subject: Re: Building libusb1.0 from source fails (Attn maintainer) To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: <0b3c68da-fb4c-f00f-7324-40529047dea0@gmail.com> Date: Sun, 2 Feb 2020 06:38:06 +0100 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 --------------BE19705E1FC81F9D8F7EE130 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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" LS0tIG9yaWdzcmMvbGlidXNiLTEuMC4yMS9saWJ1c2IvaW8uYwkyMDE2LTEw LTI1IDE4OjA3OjM4LjAwMDAwMDAwMCArMDIwMAorKysgc3JjL2xpYnVzYi0x LjAuMjEvbGlidXNiL2lvLmMJMjAyMC0wMi0wMiAwNjozMzowNS4xNDEwNzQz MDAgKzAxMDAKQEAgLTI3LDYgKzI3LDcgQEAKICNpbmNsdWRlIDxzdGRsaWIu aD4KICNpbmNsdWRlIDxzdHJpbmcuaD4KICNpbmNsdWRlIDx0aW1lLmg+Cisj aW5jbHVkZSA8dW5pc3RkLmg+CiAjaWZkZWYgSEFWRV9TSUdOQUxfSAogI2lu Y2x1ZGUgPHNpZ25hbC5oPgogI2VuZGlmCg== --------------BE19705E1FC81F9D8F7EE130 Content-Type: text/plain; charset=us-ascii -- 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--