public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* siginfo_t missing member si_band
@ 2013-10-15 14:48 Ryan Johnson
  2013-10-15 19:42 ` Christopher Faylor
  0 siblings, 1 reply; 12+ messages in thread
From: Ryan Johnson @ 2013-10-15 14:48 UTC (permalink / raw)
  To: cygwin

Hi all,

While trying to build python3 for cygwin, I kept encountering the 
following error message:

./Modules/signalmodule.c: In function ‘fill_siginfo’:
./Modules/signalmodule.c:745:60: error: ‘siginfo_t’ has no member named 
‘si_band’
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
^
Include/tupleobject.h:62:75: note: in definition of macro 
‘PyTuple_SET_ITEM’
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] 
= v)
^
./Modules/signalmodule.c:745:5: note: in expansion of macro 
‘PyStructSequence_SET_ITEM’
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));

As far as I can tell, siginfo_t::si_band is mandated by POSIX.1-2001, 
and required for proper handling of SIGPOLL. The latter seems to 
correspond to async I/O with poll(2). I'm pretty sure cygwin doesn't 
support async I/O, but shouldn't the struct member at least exist, to 
avoid breaking code that assumes its existence? The alternative is to 
patch python3 locally so its os.sigwaitinfo function no longer touches 
si_band, or to file a bug upstream so that the module's configury tests 
for its existence before using it.

Thoughts?
Ryan


--
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] 12+ messages in thread

end of thread, other threads:[~2013-10-17  8:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-15 14:48 siginfo_t missing member si_band Ryan Johnson
2013-10-15 19:42 ` Christopher Faylor
2013-10-15 21:14   ` Ryan Johnson
2013-10-15 22:36     ` Christopher Faylor
2013-10-15 23:15       ` Larry Hall (Cygwin)
2013-10-15 23:16         ` Warren Young
2013-10-16  7:59           ` Corinna Vinschen
2013-10-16 21:27             ` Christopher Faylor
2013-10-17  3:46               ` Ryan Johnson
2013-10-17  8:48                 ` Corinna Vinschen
2013-10-16 13:17       ` Bengt Larsson
2013-10-16 16:05         ` Corinna Vinschen

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).