| Summary: | Allow to build on systems without IPV6 | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Dirk Meyer <dirk.meyer> |
| Component: | Build system | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | All | ||
| OS: | FreeBSD | ||
This should already be taken care of by the openbsd-compat/fake-socket.h header. What is the error that you get during compilation? sshconnect.c: In function `ssh_create_socket': sshconnect.c:174: warning: implicit declaration of function `rresvport_af' sshconnect.c: In function `ssh_exchange_identification': sshconnect.c:369: warning: comparison between signed and unsigned sshconnect.c:448: warning: comparison between signed and unsigned sshconnect.c: In function `check_host_key': sshconnect.c:516: warning: implicit declaration of function `IN6_IS_ADDR_LOOPBACK' sshconnect.c:517: dereferencing pointer to incomplete type sshconnect.c:779: warning: implicit declaration of function `strlcat' sshconnect.c: In function `ssh_put_password': sshconnect.c:865: warning: implicit declaration of function `strlcpy' *** Error code 1 Looking closer, I mixed this up, its in openss-3.5, not in openssh-3.5p1! testing again my fix is not needed in the püortable version. Mass change of RESOLVED bugs to CLOSED |
openssh 3.5p1: AF_INET6 is not included on FreeBSD 2.2.8 so skip it when not detected: --- sshconnect.c.orig Wed Aug 8 00:29:09 2001 +++ sshconnect.c Wed Oct 3 14:28:15 2001 @@ -577,11 +577,13 @@ sin_addr.s_addr) >> 24) == IN_LOOPBACKNET; salen = sizeof(struct sockaddr_in); break; +#ifdef HAVE_STRUCT_SOCKADDR_IN6 case AF_INET6: local = IN6_IS_ADDR_LOOPBACK( &(((struct sockaddr_in6 *)hostaddr)->sin6_addr)); salen = sizeof(struct sockaddr_in6); break; +#endif default: local = 0; salen = sizeof(struct sockaddr_storage);