Artifacts Associated With Ticket 4832b53e8506df52
Ticket change [dc6bfdc62b] (rid 160026) by toast12 on 2018-01-05 15:03:15:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi TCL group, When building tcl 8.7 from source on Centos 6, I get this error: tclEpollNotfy.c: In function 'PlatformEventsInit': tclEpollNotfy.c:369: warning: implicit declaration of function 'pipe2' tclEpollNotfy.c:369: error: 'O_CLOEXEC' undeclared (first use in this function) tclEpollNotfy.c:369: error: (Each undeclared identifier is reported only once tclEpollNotfy.c:369: error: for each function it appears in.) tclEpollNotfy.c:374: warning: implicit declaration of function 'epoll_create1' tclEpollNotfy.c:374: error: 'EPOLL_CLOEXEC' undeclared (first use in this 2 make: *** [tclEpollNotfy.o] Error 1 I asked the question on TCL community and they suggested I should open a ticket here. I need this resolved urgently since it is a blocker to some critical work I am handling. Need a patch asap. TIA
- foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "toast12"
- priority initialized to: "5 Medium"
- private_contact initialized to: "314743a106f87d8d5309ed1af14a990185bbcb6a"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "toast12"
- subsystem initialized to: "01. Notifier"
- title initialized to: "Build error with TCL 8.7 on Centos 6"
- type initialized to: "Bug"
Ticket change [7023f00f29] (rid 160056) by dgp on 2018-01-07 15:24:31:
- icomment:
Thank you for the bug report. Tcl 8.7 is in pre-release "alpha" state. What do you need it urgently for that Tcl 8.6.8 cannot do instead? Or is this problem in that release as well?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [d08b8533e0] (rid 160057) by dgp on 2018-01-07 15:26:08:
- icomment:
I should have read more carefully. This appears to be a problem in the new epoll notifier, only in 8.7 sources. Is it the epoll notifier you urgently need to use?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [1bd9c7b514] (rid 160058) by dgp on 2018-01-07 15:38:36:
- icomment:
As a guess, I'd say Tcl's configure script is setting NOTIFIER_EPOLL to choose the use of the epoll notifier, while CentOS 6 might not be able to supply epoll as Tcl needs it? The workaround is to undefine that compiler directive to fall back on the select() notifier. And the bug that needs fixing is to get the configure script to detect working epolls properly, and to offer hand-configuration to override its choices, I think.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [ebe39730ce] (rid 183971) by kjnash on 2020-06-18 20:24:54:
- icomment:
I cannot reproduce this bug on CentOS 6 64-bit, x86_64, either for the e2d0c521 commit of 2018-01-04, or for 8.7a3, or for aed31dfc6d of 2020-06-16. The file tclEpollNotfy.c compiles without errors or warnings.
- login: "kjnash"
- mimetype: "text/plain"
- username: "kjnash"
- icomment:
Ticket change [6d4dfee1ed] (rid 183976) by andy on 2020-06-19 05:56:16:
- icomment: "See also [a850726018ef31416d9b9f990581597f80a0834]"
- login: "andy"
- mimetype: "text/x-fossil-wiki"
- username: "Andy Goth"
Ticket change [4368efce6f] (rid 183977) by andy on 2020-06-19 05:58:21:
- icomment:
For kjnash: I'm having trouble when targeting 64-bit CentOS 5.6. Here are the download links I used: http://archive.kernel.org/centos-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-1of8.iso (through 8of8.iso)
- login: "andy"
- mimetype: "text/plain"
- username: "Andy Goth"
- icomment:
Ticket change [5be8b9b711] (rid 258004) by serhiy.storchaka on 2026-10-14 14:14:02:
- icomment:
Not reproducible on CentOS 6 (see kjnash's comment). epoll_create1(), EPOLL_CLOEXEC and pipe2() need glibc 2.9 or later, so the error only happens on older systems such as CentOS 5, which is long out of support. To build there with the select notifier, run configure with <code>ac_cv_header_sys_epoll_h=no</code>. See also [a850726018] (epoll detection when cross-compiling).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- icomment:
Ticket change [ad0a8db809] (rid 259911) by serhiy.storchaka on 2026-10-22 17:19:25:
- closedate changed to: "2461328.093083623"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"