Error building ocserv 0.2.2

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Dec 7 11:48:44 EST 2013


On Fri, 2013-12-06 at 21:59 +0100, Per Juborg wrote:
> Hi,
> 
> That helped, but not all the way :(
> 
> Look at this:
> make
> make  all-recursive
> Making all in gl
> make  all-recursive
> make[4]: Nothing to be done for `all-am'.
> Making all in src
> Making all in pcl
> make[3]: Nothing to be done for `all'.
>   CC       worker-vpn.o
> In file included from worker-vpn.c:35:
> /usr/include/net/if.h:306:19: error: field has incomplete type 'struct sockaddr'
>                 struct  sockaddr ifru_addr;
>                                  ^
> /usr/include/net/if.h:306:10: note: forward declaration of 'struct sockaddr'

No idea what is that. It looks like an issue in this system's headers.
Could you try editing worker-vpn.c and moving the "include net/if.h" at
the end of the include list?

regards,
Nikos





More information about the openconnect-devel mailing list