Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#826061: nginx: FTBFS on kfreebsd: incomplete type 'struct in6_pktinfo'

211 views
Skip to first unread message

Andreas Beckmann

unread,
Jun 1, 2016, 7:30:04 PM6/1/16
to
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

Steven Chamberlain

unread,
Jul 16, 2016, 7:10:03 PM7/16/16
to
tags 826061 + patch
user debia...@lists.debian.org
usertags 826061 + kfreebsd
thanks

Hello,

Andreas Beckmann wrote:
> src/event/ngx_event_accept.c:65:17: warning: implicit declaration of function 'accept4' [-Wimplicit-function-declaration]
> src/event/ngx_event_accept.c:348:55: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'
> src/event/ngx_event_accept.c:546:43: error: dereferencing pointer to incomplete type 'struct in6_pktinfo'

Please find a simple patch for this attached. Thanks!

Regards,
--
Steven Chamberlain
ste...@pyro.eu.org
nginx-kfreebsd.diff
signature.asc

Michael Lustfield

unread,
Jul 16, 2016, 7:50:02 PM7/16/16
to
Thanks for looking into this and building a patch so quickly! I'm
currently testing this patch and will send upstream, unless you prefer
handle it, once the build is succeeding in debian-kbsd.
0 new messages