Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Dec 2022 21:45:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268258] security/p5-Crypt-SSLeay: fix build with clang 15
Message-ID:  <bug-268258-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268258

            Bug ID: 268258
           Summary: security/p5-Crypt-SSLeay: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: perl@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(perl@FreeBSD.org)
          Assignee: perl@FreeBSD.org

During an exp-run for llvm 15 (see bug 265425), it turned out that
security/p5-Crypt-SSLeay failed to build with clang 15:

  SSLeay.xs:159:31: warning: call to undeclared function 'SSLv2_client_meth=
od';
ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
              ctx =3D SSL_CTX_new(SSLv2_client_method());
                                ^
  SSLeay.xs:159:31: error: incompatible integer to pointer conversion passi=
ng
'int' to parameter of type 'const SSL_METHOD *' (aka 'const struct
ssl_method_st *') [-Wint-conversion]
              ctx =3D SSL_CTX_new(SSLv2_client_method());
                                ^~~~~~~~~~~~~~~~~~~~~

This is because SSLeay.xs uses the obsolete define OPENSSL_NO_SSL2 to deter=
mine
whether OpenSSL still supports SSLv2. Since this define was removed from
OpenSSL 1.1 and later, define it via CFLAGS instead.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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