Re: Bug#754646: libnfs: FTBFS on kfreebsd-*: invalid application^M^J of 'sizeof' to incomplete type 'struct sockaddr6_in'
Hi Petr,
2014-07-19 14:54 GMT+02:00 Petr Salinger <Petr.Salinger@seznam.cz>:
>>> Since upstream plans making a new release this weekend I wanted to
>>> speed up fixing all the FTBFS-s by asking for help.
>
>
> The fix have to be different one - "sockaddr6_in -> sockaddr_in6":
>
> --- lib/socket.c~
> +++ lib/socket.c
> @@ -506,7 +506,7 @@
> ((struct sockaddr_in6
> *)&ss)->sin6_port = port;
> ((struct sockaddr_in6
> *)&ss)->sin6_family = AF_INET6;
> #ifdef HAVE_SOCKADDR_LEN
> - ((struct sockaddr_in6
> *)&ss)->sin6_len = sizeof(struct sockaddr6_in);
> + ((struct sockaddr_in6
> *)&ss)->sin6_len = sizeof(struct sockaddr_in6);
> #endif
> break;
>
Thanks, I have updated the pull request.
Can libnfs build on kfreebsd with this fix or there are other issues?
Cheers,
Balint
Reply to: