[oe] minimal-uclibc: systemd fails with `src/manager.c:257:42: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)`

Phil Blundell philb at gnu.org
Wed May 11 17:11:51 UTC 2011


On Tue, 2011-05-10 at 23:14 +0200, Paul Menzel wrote:
> I am no uClibc expert, but do you know if uClibc will provide
> `EPOLL_CLOEXEC` in the near future? How should systemd fix that?

It's not just EPOLL_CLOEXEC: uClibc seems to be missing epoll_create1()
entirely.  As far as I know there's nothing complex about that, though:
it's just a standard syscall wrapper, so I don't know why it would have
been deliberately left out.  I guess you'd have to ask the uClibc h4x0rs
about that.

There probably is no trivial workaround available to systemd.  If you
wanted a quick hack to make it work then you could call
syscall(SYS_epoll_create1, O_CLOEXEC) manually.  Or you could perhaps
eliminate the usage of EPOLL_CLOEXEC in favour of a separate fcntl()
call, but that may not be safe if systemd is multithreaded.

p.






More information about the Openembedded-devel mailing list