On Thu, Jan 19, 2006, Doug Summers wrote:
> Ralf S. Engelschall wrote:
> >On Thu, Jan 19, 2006, Doug Summers wrote:
> >
> >
> >>>You can't really disable it explicitly as the contained OSSP sa
> >>>library's source code just detects IPV6 via some #ifdefs on the symbol
> >>>AF_INET6. But in your case the problem is that the #include is missing
> >>>for the "struct sockaddr_in6". Usually this has to be provided by
> >>><netinet/in.h> but on your platform this isn't the case. Can you perform
> >>>a "grep -r sockaddr_in6 /usr/include/" and give us the output, please?
> >>
> >>grep -r sockaddr_in6 /usr/include/
> >>/usr/include/net/raw_cb.h:#include <netinet/in.h> /* for sockaddr_in6 */
> >>/usr/include/net/raw_cb.h: struct sockaddr_in6 raw_dst6;/*
> >>dst address for rawintr */
> >>/usr/include/net/raw_cb.h: struct sockaddr_in6 raw_src6;/*
> >>src address for sbappendaddr */
> >>/usr/include/netinet/in_pcb.h: struct sockaddr_in6 spare_dst;
> >>/usr/include/netinet/in.h:struct sockaddr_in6 {
> >>/usr/include/netinet/in.h:#define satosin6(sa) ((struct sockaddr_in6
> >>*)(sa))
> >>/usr/include/rapi_lib.h: struct sockaddr_in6 sender;
> >
> >
> >Hmmm... interesting, the stuff actually is in <netinet/in.h>. But I
> >guess there is a nice #ifdef somewhere around it which prevents it from
> >being activated. Can you send us the complete /usr/include/netinet/in.h
> >file, too?
> [...]
> #ifdef INET6
> /*
> * IPv6 socket address
> */
> #define SIN6_LEN
>
> struct sockaddr_in6 {
> uint8_t sin6_len;
> u_int8_t sin6_family;/* XXX6 should be sa_family_t but it is a short */
> in_port_t sin6_port;
> uint32_t sin6_flowinfo;
> struct in6_addr sin6_addr;
> };
> [...]
Ah, there it is! Hmmm... INET6?! Who should set this define? I guess the
IRIX guys think the application has to set this. Well, you can then try
to define this with something like -DINET to workaround your problems.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [email protected]