Help compiling tinc in Solaris 2.6
Guus Sliepen
guus at sliepen.eu.org
Fri Dec 13 17:00:55 CET 2002
On Fri, Dec 13, 2002 at 07:00:43AM -0500, Mauricio wrote:
> However, I now have another one:
>
> In file included from conf.h:31,
> from conf.c:44:
> net.h:73: field `in6' has incomplete type
> net.h:74: confused by earlier errors, bailing out
> make[2]: *** [conf.o] Error 1
> make[2]: Leaving directory `/home/raub/todo/tinc-1.0pre8/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/raub/todo/tinc-1.0pre8'
> make: *** [all] Error 2
Try to add this to src/net.h right before the definition of union
sockaddr_t:
struct in6_addr {
union {
uint8_t u6_addr8[16];
uint16_t u6_addr16[8];
uint32_t u6_addr32[4];
} in6_u;
#define s6_addr in6_u.u6_addr8
#define s6_addr16 in6_u.u6_addr16
#define s6_addr32 in6_u.u6_addr32
};
struct sockaddr_in6 {
sa_family_t sin6_family;
in_port_t sin6_port; /* Transport layer port # */
uint32_t sin6_flowinfo; /* IPv6 flow information */
struct in6_addr sin6_addr; /* IPv6 address */
uint32_t sin6_scope_id; /* IPv6 scope-id */
};
If it complains about sa_family_t or in_port_t replace those by "short
int".
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20021213/3c88aa00/attachment.pgp
More information about the Tinc
mailing list