Help compiling tinc in Solaris 2.6

Mauricio pingouin at bellsouth.net
Fri Dec 13 18:59:32 CET 2002


At 17:00 +0100 13/12/02, Guus Sliepen wrote:
>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".

	Thanks for the help once again!  It did not complain about 
them, but it did bark about something else (AF_INET6):

sparc-sun-solaris2.6-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib 
-g -O2 -I/usr/local/ssl/include -I/usr/local/include 
-DPKGLIBDIR=/usr/local/lib/tinc -DCONFDIR=\"/usr/local/etc\" 
-DLOCALEDIR=\"/usr/local/share/locale\" 
-DLOCALSTATEDIR=\"/usr/local/var\" -c `test -f 'net_setup.c' || echo 
'./'`net_setup.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
net_setup.c: In function `setup_myself':
net_setup.c:357: `AF_INET6' undeclared (first use in this function)
net_setup.c:357: (Each undeclared identifier is reported only once
net_setup.c:357: for each function it appears in.)
make[2]: *** [net_setup.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
raub at kushana>

The story goes on with another cliffhanger... ;)
Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://tinc.nl.linux.org/




More information about the Tinc mailing list