Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 06:07:24 -0800 (PST)
From:      Michael Scheidell <scheidell@secnap.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35673: openssl port won't compile on 3.5.1-STABLE
Message-ID:  <200203081407.g28E7On86902@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         35673
>Category:       ports
>Synopsis:       openssl port won't compile on 3.5.1-STABLE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 08 06:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scheidell
>Release:        3.5.1-STABLE
>Organization:
SECNAP Network Security, LLC
>Environment:
FreeBSD caerulus.cerintha.com 3.5-STABLE FreeBSD 3.5-STABLE #6: Thu Oct 18 10:49:01 EDT 2001     scheidell@caerulus.cerintha.com:/usr/src/sys/compile/CAERULUS  i386

>Description:
attempted to compile openssh due to recent security alerts.
First attempt failed 3.5.1 not supporting INET6
(i did'nt know what addrbuf should be so I guessed at 64, you can adjust)



>How-To-Repeat:
cd /usr/ports/security/openssh
make

>Fix:
replace files/patch-at with this: make clean, make

--- sshconnect.c.orig   Mon Oct  8 15:05:05 2001
+++ sshconnect.c        Fri Mar  8 09:02:21 2002
@@ -42,15 +42,20 @@
 sockaddr_ntop(struct sockaddr *sa)
 {
        void *addr;
+#ifdef INET6
        static char addrbuf[INET6_ADDRSTRLEN];
-
+#else
+       static char addrbuf[64];
+#endif
        switch (sa->sa_family) {
                case AF_INET:
                        addr = &((struct sockaddr_in *)sa)->sin_addr;
                        break;
+#ifdef INET6
                case AF_INET6:
                        addr = &((struct sockaddr_in6 *)sa)->sin6_addr;
                        break;
+#endif
                default:
                        /* This case should be protected against elsewhere */
                        abort();
@@ -552,10 +557,12 @@
                local = (ntohl(((struct sockaddr_in *)hostaddr)->
                   sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
                break;
+#ifdef INET6
        case AF_INET6:
                local = IN6_IS_ADDR_LOOPBACK(
                    &(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
                break;
+#endif
        default:
                local = 0;
                break;
caerulus#
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203081407.g28E7On86902>