Source: nginx
Version: 1.10.1-1
Severity: important
Hi,
ngingx FTBFS on kfreebsd-any since version 1.9.14-1, probably due to a
missing #include:
https://buildd.debian.org/status/fetch.php?pkg=nginx&arch=kfreebsd-amd64&ver=1.10.1-1&stamp=1464724938
https://buildd.debian.org/status/fetch.php?pkg=nginx&arch=kfreebsd-i386&ver=1.10.1-1&stamp=1464724962
cc -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/libxml2 -I objs \
-o objs/src/event/ngx_event_accept.o \
src/event/ngx_event_accept.c
src/event/ngx_event_accept.c: In function 'ngx_event_accept':
src/event/ngx_event_accept.c:65:17: warning: implicit declaration of function 'accept4' [-Wimplicit-function-declaration]
s = accept4(lc->fd, (struct sockaddr *) sa, &socklen,
^
In file included from /usr/include/i386-kfreebsd-gnu/sys/socket.h:38:0,
from src/os/unix/ngx_posix_config.h:83,
from src/core/ngx_config.h:42,
from src/event/ngx_event_accept.c:8:
src/event/ngx_event_accept.c: In function 'ngx_event_recvmsg':
src/event/ngx_event_accept.c:348:55: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'
u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))];
^
src/event/ngx_event_accept.c:546:43: error: dereferencing pointer to incomplete type 'struct in6_pktinfo'
sin6->sin6_addr = pkt6->ipi6_addr;
^
objs/Makefile:656: recipe for target 'objs/src/event/ngx_event_accept.o' failed
make[3]: *** [objs/src/event/ngx_event_accept.o] Error 1
Cheers,
Andreas