* Building libusb1.0 from source fails (Attn maintainer)
@ 2020-02-02 1:23 Doug Henderson
2020-02-02 5:38 ` Marco Atzeri
0 siblings, 1 reply; 2+ messages in thread
From: Doug Henderson @ 2020-02-02 1:23 UTC (permalink / raw)
To: cygwin
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
--
Doug Henderson, Calgary, Alberta, Canada - from gmail.com
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building libusb1.0 from source fails (Attn maintainer)
2020-02-02 1:23 Building libusb1.0 from source fails (Attn maintainer) Doug Henderson
@ 2020-02-02 5:38 ` Marco Atzeri
0 siblings, 0 replies; 2+ messages in thread
From: Marco Atzeri @ 2020-02-02 5:38 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
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
[-- Attachment #2: libusb1.0-1.0.21-1.src.patch --]
[-- Type: text/plain, Size: 295 bytes --]
--- origsrc/libusb-1.0.21/libusb/io.c 2016-10-25 18:07:38.000000000 +0200
+++ src/libusb-1.0.21/libusb/io.c 2020-02-02 06:33:05.141074300 +0100
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <unistd.h>
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
[-- Attachment #3: Type: text/plain, Size: 219 bytes --]
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-02 5:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 1:23 Building libusb1.0 from source fails (Attn maintainer) Doug Henderson
2020-02-02 5:38 ` Marco Atzeri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).