This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sxsns243
Recipients sxsns243
Date 2016-12-09.00:35:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481243721.04.0.91028253928.issue28914@psf.upfronthosting.co.za>
In-reply-to
Content
selectmodule build fails with the linux without epoll_create1(before kernel 2.6.27).


building 'select' extension
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I./Include -I. -I/usr/local/include -I/home/wmatsumo/download/cpython/Include -I/home/wmatsumo/download/cpython -c /home/wmatsumo/download/cpython/Modules/selectmodule.c -o build/temp.linux-x86_64-3.7-pydebug/home/wmatsumo/download/cpython/Modules/selectmodule.o
/home/wmatsumo/download/cpython/Modules/selectmodule.c: In function 'pyepoll_new':
/home/wmatsumo/download/cpython/Modules/selectmodule.c:1306: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)
/home/wmatsumo/download/cpython/Modules/selectmodule.c:1306: error: (Each undeclared identifier is reported only once
/home/wmatsumo/download/cpython/Modules/selectmodule.c:1306: error: for each function it appears in.)

It seems due to the below change.
http://bugs.python.org/issue20100
It have to check HAVE_EPOLL_CREATE1 is defined before using EPOLL_CLOEXEC.
History
Date User Action Args
2016-12-09 00:35:21sxsns243setrecipients: + sxsns243
2016-12-09 00:35:21sxsns243setmessageid: <1481243721.04.0.91028253928.issue28914@psf.upfronthosting.co.za>
2016-12-09 00:35:20sxsns243linkissue28914 messages
2016-12-09 00:35:20sxsns243create