Re: nginx 1.1.8 не собирается clang на -CURRENT

Maxim Konovalov maxim на nginx.com
Пт Ноя 18 11:48:36 UTC 2011


On 11/18/11 1:22 PM, Igor Sysoev wrote:
> On Fri, Nov 18, 2011 at 04:02:01AM -0500, vsharun wrote:
>> FreeBSD 10.0-CURRENT #2: Tue Nov  8 09:30:37 EET 2011
>>
>> src/os/unix/ngx_files.c:470:1: error: expected parameter declarator
>> ngx_read_ahead(ngx_fd_t fd, size_t n)
>> ^
>> src/os/unix/ngx_files.h:280:44: note: expanded from:
>> #define ngx_read_ahead(fd, n)    fcntl(fd, F_READAHEAD, (int) n)
>>                                             ^
>> /usr/include/fcntl.h:226:21: note: expanded from:
>> #define F_READAHEAD     15              /* read ahead */
>>                          ^
>> src/os/unix/ngx_files.c:470:1: error: expected ')'
>> src/os/unix/ngx_files.c:470:1: note: to match this '('
>> ngx_read_ahead(ngx_fd_t fd, size_t n)
>> ^
>> src/os/unix/ngx_files.h:280:39: note: expanded from:
>> #define ngx_read_ahead(fd, n)    fcntl(fd, F_READAHEAD, (int) n)
>>                                        ^
>> src/os/unix/ngx_files.c:470:1: error: conflicting types for 'fcntl'
>> ngx_read_ahead(ngx_fd_t fd, size_t n)
>> ^
>> src/os/unix/ngx_files.h:280:34: note: expanded from:
>> #define ngx_read_ahead(fd, n)    fcntl(fd, F_READAHEAD, (int) n)
>>                                   ^
>> /usr/include/fcntl.h:296:5: note: previous declaration is here
>> int     fcntl(int, int, ...);
>>          ^
>> 3 errors generated.
>> *** Error code 1
>
> Патч.
>
It works.

-- 
Maxim Konovalov
+7 (910) 4293178
http://nginx.com/



Подробная информация о списке рассылки nginx-ru