[Python-bugs-list] [Bug #113142] configure problems with poll.h

noreply@sourceforge.net noreply@sourceforge.net
Wed, 30 Aug 2000 16:01:40 -0700


Bug #113142, was updated on 2000-Aug-30 12:03
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Closed
Resolution: None
Bug Group: Platform-specific
Priority: 5
Summary: configure problems with poll.h

Details: The configure script sets HAVE_POLL to 1 but in
selectmodule.c, HAVE_POLL_H is tested. 

And one more problem with this: When I add
the "_H" to config.h, it doesn't work yet: the poll.h
header file resides in /usr/include/sys. Changing
`#include <poll.h>' to `#include <sys/poll.h>' works for
me; adding this directory via a -I flag to the
selectmodule line in Modules/Setup doesn't work because
it drives gcc into an endless macro recursion ...
(I'm using Linux on Intel, sources fresh from the CVS
tree.)


Follow-Ups:

Date: 2000-Aug-30 12:41
By: lannert

Comment:
More recent Linux systems do have a <poll.h> header
file, so you may forget about the second problem. Sorry.

And this has probably been the reason why I didn't have
HAVE_POLL_H set -- because ./configure didn't find it.
Arrrgh. I'd close this bug report if I could, but I can't.

(One question remains: Is it sensible to set HAVE_POLL
[and die during compilation] when the header file isn't
there? Maybe some systems don't need any header files
for poll()?)

-------------------------------------------------------

Date: 2000-Aug-30 16:01
By: jhylton

Comment:
lannert would close this bug if he/she could; so I will.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113142&group_id=5470