2 hlgxiuxiu2011 hlgxiuxiu2011 于 2017.04.18 16:23 提问

ACE在ubuntu上的编译错误

ACE/TAO-5.6.9 gcc version 5.4.0 Ubuntu 16.04.2

执行以下命令时:
$ tar xjvf ACE-5.6.9.tar.bz2
$ cd ACE_wrappers
$ mkdir build
$ cd build
$ ../configure --prefix=/usr/local
$ make

出现错误:
../../ace/Dev_Poll_Reactor.cpp: In member function 'int ACE_Dev_Poll_Reactor::dispatch_io_event(ACE_Dev_Poll_Reactor::Token_Guard&)':
../../ace/Dev_Poll_Reactor.cpp:1216:41: error: cannot bind packed field 'pfds->epoll_event::events' to '__uint32_t& {aka unsigned int&}'
__uint32_t &revents = pfds->events;
^
Makefile:3306: recipe for target 'libACE_la-Dev_Poll_Reactor.lo' failed
make[3]: *** [libACE_la-Dev_Poll_Reactor.lo] Error 1
make[3]: Leaving directory '/opt/ACE_wrappers/build/ace'
Makefile:5192: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/opt/ACE_wrappers/build/ace'
Makefile:2506: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/ACE_wrappers/build/ace'
Makefile:444: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

怎么解决?

Csdn user default icon
上传中...
上传图片
插入图片