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

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed May 11 20:25:10 UTC 2011


On Wed, May 11, 2011 at 06:11:51PM +0100, Phil Blundell wrote:
>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.

It was only omitted until now since nobody asked for it.

You should be set if you can trick someone into updating to
c91c3a2b27f5909e190cde4518383864298e82af or later.




More information about the Openembedded-devel mailing list