This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Go patch committed: Update libgo to 1.1.1


On Tue, Jul 23, 2013 at 6:50 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>>
>> Another problem was triggered on CentOS 5.9, where compile fails with:
>>
>> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c: In function
>> ‘runtime_epollcreate1’:
>> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c:41:2: error:
>> implicit declaration of function ‘epoll_create1’
>> [-Werror=implicit-function-declaration]
>>   r = epoll_create1(flags);
>>   ^
>> cc1: all warnings being treated as errors
>> gmake[4]: *** [netpoll_epoll.lo] Error 1
>> gmake[4]: *** Waiting for unfinished jobs....
>>
>> CentOS has glibc 2.5 and epoll_create1 is not supported.
>
> Attached patch fixes this problem by providing prototype, missing from
> sys/poll.h in netpoll_epoll.c.
>
> Patch was tested on x86_64-pc-linux-gnu {,-m32} on CentOS 5.9 and Fedora 19.

Thanks!  Committed to mainline and 4.8 branch.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]