[Bug 223388] security/openssl: Fails to build without SSE3: implicit declaration of function 'SSLv3_client_method' in s23_clnt.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 2 23:02:36 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223388

            Bug ID: 223388
           Summary: security/openssl: Fails to build without SSE3:
                    implicit declaration of function 'SSLv3_client_method'
                    in s23_clnt.c
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brnrd at freebsd.org
          Reporter: greenreaper at hotmail.com
             Flags: maintainer-feedback?(brnrd at freebsd.org)
          Assignee: brnrd at freebsd.org

I'm trying to compile openssl-1.0.2m from ports on 10.3-RELEASE-p20.

The following options are enabled:
DOCS EC SHARED THREADS ASM SSE2 SCTP

The following options are disabled:
MAN3 PADLOCK RFC3779 EXPCIPHERS ZLIB RC5 MD2 SSL2 SSL3

Things go fine, until s23_clnt.c
----
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -O3
-Wall -O2 -pipe -O2 -march=native  -Werror -Qunused-arguments -fstack-protector
-fno-strict-aliasing -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM
-DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM
-DGHASH_ASM -DECP_NISTZ256_ASM -c s23_clnt.c -o s23_clnt.o
s23_clnt.c:762:29: error: implicit declaration of function
'SSLv3_client_method' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                s->method = SSLv3_client_method();
                            ^
s23_clnt.c:762:27: error: incompatible integer to pointer conversion assigning
to 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') from 'int'
      [-Werror,-Wint-conversion]
                s->method = SSLv3_client_method();
                          ^ ~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
*** Error code 1
----

SSL3 disabling seems to be broken. Enabling SSE3 causes the build to work.

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


More information about the freebsd-ports-bugs mailing list