hiroyuki-sato / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group):
http://www.openucx.org
Other
2 stars 0 forks source link

Remove include <sys/epoll.h> from src/ucs/sys/sys.h #14

Closed hiroyuki-sato closed 5 years ago

hiroyuki-sato commented 5 years ago
  CC       tcp/libuct_la-tcp_ep.lo
tcp/tcp_ep.c: In function ‘uct_tcp_ep_epoll_ctl’:
tcp/tcp_ep.c:53:12: error: variable ‘epoll_event’ has initializer but incomplete type
     struct epoll_event epoll_event = {
            ^
tcp/tcp_ep.c:54:9: error: unknown field ‘data’ specified in initializer
         .data.ptr                  = ep,
         ^
tcp/tcp_ep.c:54:9: error: excess elements in struct initializer [-Werror]
tcp/tcp_ep.c:54:9: error: (near initialization for ‘epoll_event’) [-Werror]
tcp/tcp_ep.c:55:9: error: unknown field ‘events’ specified in initializer
         .events                    = ep->events,
         ^
tcp/tcp_ep.c:55:9: error: excess elements in struct initializer [-Werror]
tcp/tcp_ep.c:55:9: error: (near initialization for ‘epoll_event’) [-Werror]
tcp/tcp_ep.c:53:24: error: storage size of ‘epoll_event’ isn’t known
     struct epoll_event epoll_event = {
                        ^
tcp/tcp_ep.c:59:5: error: implicit declaration of function ‘epoll_ctl’ [-Werror=implicit-function-declaration]
     ret = epoll_ctl(iface->epfd, op, ep->fd, &epoll_event);
     ^
tcp/tcp_ep.c:53:24: error: unused variable ‘epoll_event’ [-Werror=unused-variable]
     struct epoll_event epoll_event = {
                        ^
In file included from /home/arch/ucx/src/uct/base/uct_iface.h:17:0,
                 from /home/arch/ucx/src/uct/base/uct_md.h:11,
                 from tcp/tcp.h:9,
                 from tcp/tcp_ep.c:6:
tcp/tcp_ep.c: In function ‘uct_tcp_ep_mod_events’:
tcp/tcp_ep.c:324:33: error: ‘EPOLLIN’ undeclared (first use in this function)
                   (new_events & EPOLLIN)  ? 'i' : '-',
                                 ^
/home/arch/ucx/src/ucs/debug/log.h:33:39: note: in definition of macro ‘ucs_log’
                              _fmt, ## __VA_ARGS__); \
                                       ^
tcp/tcp_ep.c:323:9: note: in expansion of macro ‘ucs_trace’
         ucs_trace("tcp_ep %p: set events to %c%c", ep,
         ^
tcp/tcp_ep.c:324:33: note: each undeclared identifier is reported only once for each function it appears in
                   (new_events & EPOLLIN)  ? 'i' : '-',
                                 ^
/home/arch/ucx/src/ucs/debug/log.h:33:39: note: in definition of macro ‘ucs_log’
                              _fmt, ## __VA_ARGS__); \
                                       ^
tcp/tcp_ep.c:323:9: note: in expansion of macro ‘ucs_trace’
         ucs_trace("tcp_ep %p: set events to %c%c", ep,
         ^
tcp/tcp_ep.c:325:33: error: ‘EPOLLOUT’ undeclared (first use in this function)
                   (new_events & EPOLLOUT) ? 'o' : '-');
                                 ^
/home/arch/ucx/src/ucs/debug/log.h:33:39: note: in definition of macro ‘ucs_log’
                              _fmt, ## __VA_ARGS__); \
                                       ^
tcp/tcp_ep.c:323:9: note: in expansion of macro ‘ucs_trace’
         ucs_trace("tcp_ep %p: set events to %c%c", ep,
         ^
tcp/tcp_ep.c:327:38: error: ‘EPOLL_CTL_DEL’ undeclared (first use in this function)
             uct_tcp_ep_epoll_ctl(ep, EPOLL_CTL_DEL);
                                      ^
tcp/tcp_ep.c:329:38: error: ‘EPOLL_CTL_MOD’ undeclared (first use in this function)
             uct_tcp_ep_epoll_ctl(ep, EPOLL_CTL_MOD);
                                      ^
tcp/tcp_ep.c:331:38: error: ‘EPOLL_CTL_ADD’ undeclared (first use in this function)
             uct_tcp_ep_epoll_ctl(ep, EPOLL_CTL_ADD);
                                      ^
tcp/tcp_ep.c: In function ‘uct_tcp_ep_handle_disconnected’:
tcp/tcp_ep.c:341:34: error: ‘EPOLLIN’ undeclared (first use in this function)
     uct_tcp_ep_mod_events(ep, 0, EPOLLIN);
                                  ^
tcp/tcp_ep.c: In function ‘uct_tcp_ep_progress_tx’:
tcp/tcp_ep.c:437:38: error: ‘EPOLLOUT’ undeclared (first use in this function)
         uct_tcp_ep_mod_events(ep, 0, EPOLLOUT);
                                      ^
tcp/tcp_ep.c: In function ‘uct_tcp_ep_am_send’:
tcp/tcp_ep.c:568:35: error: ‘EPOLLOUT’ undeclared (first use in this function)
         uct_tcp_ep_mod_events(ep, EPOLLOUT, 0);
                                   ^
hiroyuki-sato commented 5 years ago

Done: https://github.com/openucx/ucx/pull/3610