From: "Hannes Müller" <h.c.f.mueller@gmx.de>
To: Bruno Haible <bruno@clisp.org>, bug-gnulib@gnu.org
Subject: Re: modules poll* fail on mingw-w64 for i686 and x86_64
Date: Sat, 29 Jun 2019 20:32:56 +0200 [thread overview]
Message-ID: <1561833176.1274.10.camel@gmx.de> (raw)
In-Reply-To: <67909157.2iZzdWHPA0@omega>
[-- Attachment #1: Type: text/plain, Size: 5037 bytes --]
Hi Bruno,
Thanks for your reply. Sorry, now the output with correct line breaks.
For the following test command I got the below noted output on mingw-
w64 with latest gnulib from git repository.
./gnulib-tool --create-testdir --dir=/tmp/testdir poll poll-tests poll-
h poll-h-tests
cd /tmp/testdir
./configure && make
Result for i686:
In file included from poll.c:39:
C:/Users/hm/Documents/msys32/mingw32/i686-w64-
mingw32/include/winsock2.h:1155:16: error: redefinition of 'struct
pollfd'
1155 | typedef struct pollfd {
| ^~~~~~
In file included from poll.c:32:
./poll.h:506:8: note: originally defined here
506 | struct pollfd
| ^~~~~~
poll.c:345:1: error: conflicting types for 'poll'
345 | poll (struct pollfd *pfd, nfds_t nfd, int timeout)
| ^~~~
In file included from poll.c:32:
./poll.h:536:1: note: previous declaration of 'poll' was here
536 | _GL_FUNCDECL_SYS (poll, int, (struct pollfd *pfd, nfds_t nfd,
int timeout));
| ^~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1459: poll.o] Fehler 1
make[4]: Verzeichnis „/tmp/testdir/gllib“ wird verlassen
make[3]: *** [Makefile:1481: all-recursive] Fehler 1
make[3]: Verzeichnis „/tmp/testdir/gllib“ wird verlassen
make[2]: *** [Makefile:1318: all] Fehler 2
make[2]: Verzeichnis „/tmp/testdir/gllib“ wird verlassen
make[1]: *** [Makefile:1220: all-recursive] Fehler 1
make[1]: Verzeichnis „/tmp/testdir“ wird verlassen
make: *** [Makefile:1161: all] Fehler 2
Result for x86_64:
In file included from poll.c:39:
C:/Users/hm/Documents/msys32/mingw64/x86_64-w64-
mingw32/include/winsock2.h:1155:16: error: redefinition of 'struct
pollfd'
1155 | typedef struct pollfd {
| ^~~~~~
In file included from poll.c:32:
./poll.h:506:8: note: originally defined here
506 | struct pollfd
| ^~~~~~
poll.c:345:1: error: conflicting types for 'poll'
345 | poll (struct pollfd *pfd, nfds_t nfd, int timeout)
| ^~~~
In file included from poll.c:32:
./poll.h:536:1: note: previous declaration of 'poll' was here
536 | _GL_FUNCDECL_SYS (poll, int, (struct pollfd *pfd, nfds_t nfd,
int timeout));
| ^~~~~~~~~~~~~~~~
poll.c: In function 'poll':
poll.c:519:39: warning: passing argument 5 of 'select' from
incompatible pointer type [-Wincompatible-pointer-types]
519 | if (select (0, &rfds, &wfds, &xfds, &tv0) > 0)
| ^~~~
| |
| struct rpl_timeval *
In file included from poll.c:39:
C:/Users/hm/Documents/msys32/mingw64/x86_64-w64-
mingw32/include/winsock2.h:995:116: note: expected 'PTIMEVAL' {aka
'struct timeval * const'} but argument is of type 'struct rpl_timeval
*'
995 | WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set
*readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
|
~~~~~~~~~~~~~~~^~~~~~~
poll.c:555:37: warning: passing argument 5 of 'select' from
incompatible pointer type [-Wincompatible-pointer-types]
555 | select (0, &rfds, &wfds, &xfds, &tv0);
| ^~~~
| |
| struct rpl_timeval *
In file included from poll.c:39:
C:/Users/hm/Documents/msys32/mingw64/x86_64-w64-
mingw32/include/winsock2.h:995:116: note: expected 'PTIMEVAL' {aka
'struct timeval * const'} but argument is of type 'struct rpl_timeval
*'
995 | WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set
*readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
|
~~~~~~~~~~~~~~~^~~~~~~
make[4]: *** [Makefile:1459: poll.o] Fehler 1
make[4]: Verzeichnis „/tmp/testdir-64/gllib“ wird verlassen
make[3]: *** [Makefile:1481: all-recursive] Fehler 1
make[3]: Verzeichnis „/tmp/testdir-64/gllib“ wird verlassen
make[2]: *** [Makefile:1318: all] Fehler 2
make[2]: Verzeichnis „/tmp/testdir-64/gllib“ wird verlassen
make[1]: *** [Makefile:1221: all-recursive] Fehler 1
make[1]: Verzeichnis „/tmp/testdir-64“ wird verlassen
make: *** [Makefile:1162: all] Fehler 2
[-- Attachment #2: Type: text/html, Size: 11541 bytes --]
next prev parent reply other threads:[~2019-06-29 18:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-29 6:54 modules poll* fail on mingw-w64 for i686 and x86_64 Hannes Müller
2019-06-29 14:06 ` Bruno Haible
2019-06-29 18:32 ` Hannes Müller [this message]
2019-06-30 12:46 ` Bruno Haible
2019-07-01 18:16 ` Patch: Fix warning for timeval in poll.c on mingw-w64 for x86_64 Hannes Müller
2019-07-01 23:51 ` Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1561833176.1274.10.camel@gmx.de \
--to=h.c.f.mueller@gmx.de \
--cc=bruno@clisp.org \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).