Bug#754646: libnfs: FTBFS on kfreebsd-*: invalid application^M^J of 'sizeof' to incomplete type 'struct sockaddr6_in'

2014-07-19 Thread Steven Chamberlain
Hi Balint,

On 19/07/14 17:13, Bálint Réczey wrote:
> Can libnfs build on kfreebsd with this fix or there are other issues?

I just tried on kfreebsd-amd64 sid, and with only this change it built
successfully.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#754646: libnfs: FTBFS on kfreebsd-*: invalid application^M^J of 'sizeof' to incomplete type 'struct sockaddr6_in'

2014-07-19 Thread Bálint Réczey
Hi Petr,

2014-07-19 14:54 GMT+02:00 Petr Salinger :
>>> 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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#754646: libnfs: FTBFS on kfreebsd-*: invalid application^M^J of 'sizeof' to incomplete type 'struct sockaddr6_in'

2014-07-19 Thread Petr Salinger

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;

Cheers

Petr


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org