FreeBSD & Linux disk AIO support

Лазовский Вадим lvm at rkmail.ru
Wed Aug 26 12:37:06 MSD 2009


Igor Sysoev пишет:
> On Wed, Aug 26, 2009 at 11:59:05AM +0400, Dmitriy Timokhin wrote:
> 
>> 2009/8/26 Igor Sysoev <is at rambler-co.ru>:
>>> Скорее всего, glibc старая. Насколько я понимаю, это дистрибутив, где
>>> руками поставили ядро поновее ?
>>>
>> Не обязательно -- например, в debian/lenny ядро уже с eventfd (2.6.26),
>> а glibc ещё без (2.7).
> 
> Новый патч.
> 
> 
> 

Компилятор ругался на src/event/modules/ngx_epoll_module.c:235

- ngx_eventfd = syscall(SYS_eventfd, 0)
+ ngx_eventfd = syscall(SYS_eventfd, 0);

Теперь:

gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter 
-Wunused-function -Wunused-variable -Wunused-value -Werror -g -O3 
-march=native -mtune=native -I src/core -I src/event -I 
src/event/modules -I src/os/unix -I objs \
                 -o objs/src/os/unix/ngx_linux_aio_read.o \
                 src/os/unix/ngx_linux_aio_read.c
src/os/unix/ngx_linux_aio_read.c:109: error: redefinition of 'io_submit'
src/os/unix/ngx_linux_aio_read.c:18: error: previous definition of 
'io_submit' was here
src/os/unix/ngx_linux_aio_read.c:116: error: redefinition of 
'ngx_file_aio_read'
src/os/unix/ngx_linux_aio_read.c:25: error: previous definition of 
'ngx_file_aio_read' was here
make[1]: *** [objs/src/os/unix/ngx_linux_aio_read.o] Error 1
make[1]: Leaving directory `/usr/src/nginx-0.8.10'
make: *** [build] Error 2





More information about the nginx-ru mailing list