5.1p build problem on SCO OSR6
Build of 5.1p1 fails on SCO OSR6 with the error:
UX:acomp: ERROR: "addrmatch.c", line 100: undefined struct/union member: sin6_scope_id
configure checks for presence of struct sockaddr_in6 and uses the system
declaration if found (via #define HAVE_STRUCT_SOCKADDR_IN6 in config.h)
If not found, the struct is declared in openbsd-compat/fake-rfc2553.h.
OSR6 has struct sockaddr_in6 but it does not include the sin6_scope_id
member. The declaration in fake-rfc2553.h does include this member,
which is referenced in addrmatch.c.
So the problem seems to be, openssh erroneously assumes the presence of
sin6_scope_id if struct sockaddr_in6 is present. This isn't true on
OSR6 (and maybe others??).
--
Roger Cornelius [email]rac@tenzing.org[/email]
_______________________________________________
openssh-unix-dev mailing list
[email]openssh-unix-dev@mindrot.org[/email]
[url]https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev[/url]
RE: 5.1p build problem on SCO OSR6
[color=blue]
> -----Original Message-----
> From: openssh-unix-dev-bounces+scott_n=xypro.com@mindrot.org
> [mailto:openssh-unix-dev-bounces+scott_n=xypro.com@mindrot.org] On
> Behalf Of Roger Cornelius
> Sent: Wednesday, July 30, 2008 10:58 AM
> To: [email]openssh-unix-dev@mindrot.org[/email]
> Subject: 5.1p build problem on SCO OSR6
>
> Build of 5.1p1 fails on SCO OSR6 with the error:
>
> UX:acomp: ERROR: "addrmatch.c", line 100: undefined struct/union
> member: sin6_scope_id
>
> configure checks for presence of struct sockaddr_in6 and uses the
> system
> declaration if found (via #define HAVE_STRUCT_SOCKADDR_IN6 in[/color]
config.h)[color=blue]
> If not found, the struct is declared in openbsd-compat/fake-rfc2553.h.
> OSR6 has struct sockaddr_in6 but it does not include the sin6_scope_id
> member. The declaration in fake-rfc2553.h does include this member,
> which is referenced in addrmatch.c.
>
> So the problem seems to be, openssh erroneously assumes the presence[/color]
of[color=blue]
> sin6_scope_id if struct sockaddr_in6 is present. This isn't true on
> OSR6 (and maybe others??).
>[/color]
Perhaps you could set environment variables at config time to disable
HAVE_STRUCT_SOCKADDR_IN6, assuming you won't need IPv6. It's an
ac_{something} variable.
I've done stuff like this to work around this sort of thing without
needing to tweak configure.
_______________________________________________
openssh-unix-dev mailing list
[email]openssh-unix-dev@mindrot.org[/email]
[url]https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev[/url]