ошибка сборки Solaris10/x86
Igor Sysoev
is at rambler-co.ru
Wed Mar 21 13:03:24 MSK 2007
On Wed, Mar 21, 2007 at 10:56:16AM +0300, storm wrote:
> Добрый день.
> К сожалению версия 0.5.15 не собирается под Solaris10/x86.
> старые версии (до 0.5.11 включительно), жили без проблем...
>
> bash-3.00# uname -a
> SunOS nginx0 5.10 Generic_118855-14 i86pc i386 i86pc
>
> bash-3.00# pwd
> /opt/distrib/IA32/nginx-0.5.15
>
> bash-3.00# make
> make -f objs/Makefile
> .....
> gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -I
> src/core -I src/event -I src/event/modules -I src/os/unix -I
> /opt/distrib/IA32/pcre-6.7 -I /opt/distrib/IA32/openssl-0.9.8a/include -I
> /opt/distrib/IA32/zlib-1.2.3 -I objs \
> -o objs/src/event/modules/ngx_devpoll_module.o \
> src/event/modules/ngx_devpoll_module.c
> src/event/modules/ngx_devpoll_module.c:421:74: macro "ngx_log_debug2"
> passed 7 arguments, but takes just 6
> src/event/modules/ngx_devpoll_module.c: In function
> `ngx_devpoll_process_events':
> src/event/modules/ngx_devpoll_module.c:419: error: `ngx_log_debug2'
> undeclared (first use in this function)
> src/event/modules/ngx_devpoll_module.c:419: error: (Each undeclared
> identifier is reported only once
> src/event/modules/ngx_devpoll_module.c:419: error: for each function it
> appears in.)
Прилагаемый патч должен помочь.
Но, вообще, для gcc это странно. А показывает configure в районе
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 3.4.6 [FreeBSD] 20060305
checking for gcc -pipe switch ... found
checking for gcc variadic macros ... found
checking for C99 variadic macros ... found
?
--
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: src/event/modules/ngx_devpoll_module.c
===================================================================
--- src/event/modules/ngx_devpoll_module.c (revision 460)
+++ src/event/modules/ngx_devpoll_module.c (working copy)
@@ -416,7 +416,7 @@
event_list[i].fd, event_list[i].events, revents);
if (revents & (POLLERR|POLLHUP|POLLNVAL)) {
- ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
+ ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
"ioctl(DP_POLL) error fd:%d ev:%04Xd rev:%04Xd",
event_list[i].fd, event_list[i].events, revents);
}
More information about the nginx-ru
mailing list