Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2018 03:28:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 229021] devel/p4 Fails to build with OpenSSL 1.1
Message-ID:  <bug-229021-7788-G7gTWbfTxw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229021-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229021-7788@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #9 from Alan Somers <asomers@FreeBSD.org> ---
w.schwarzenfeld@utanet.at your patch doesn't work for me, on either 11.2 or
12.0-ALPHA9.  Here are the errors on 12.0-ALPHA9:

net/netsslcredentials.cc:221:16: error: member access into incomplete type
'EVP_PKEY'
      (aka 'evp_pkey_st')
        if (privateKey->type !=3D EVP_PKEY_RSA)

net/netssltransport.cc:117:36: error: use of undeclared identifier
'CRYPTO_NUM_LOCKS'
static pthread_mutex_t mutexArray[ CRYPTO_NUM_LOCKS ];
                                   ^
net/netssltransport.cc:259:18: error: out-of-line definition of=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20
      'CreateAndInitializeSslContext' does not match any declaration in
      'NetSslTransport'
NetSslTransport::CreateAndInitializeSslContext(const char *conntypename)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/netssltransport.cc:267:5: error: use of undeclared identifier=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20
      'TRANSPORT_PRINT_VAR'
    TRANSPORT_PRINT_VAR( SSLDEBUG_FUNCTION, msgbuf );
    ^
net/netssltransport.cc:296:5: error: use of undeclared identifier=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20
      'TRANSPORT_PRINT_VAR'
    TRANSPORT_PRINT_VAR( SSLDEBUG_FUNCTION, msgbuf );
    ^
net/netssltransport.cc:320:33: error: use of undeclared identifier=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
      'P4TUNE_SSL_TLS_VERSION_MIN'
    int tlsmin =3D p4tunable.Get( P4TUNE_SSL_TLS_VERSION_MIN );
                                ^
net/netssltransport.cc:321:33: error: use of undeclared identifier=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
      'P4TUNE_SSL_TLS_VERSION_MAX'
    int tlsmax =3D p4tunable.Get( P4TUNE_SSL_TLS_VERSION_MAX );
net/netssltransport.cc:890:19: error: no member named 'SslProtocolError' in
'MsgRpc'=20=20
                e->Set( MsgRpc::SslProtocolError ) << sslErrorBuf;
                        ~~~~~~~~^
net/netssltransport.cc:1053:30: error: no member named 'PollMs' in 'KeepAli=
ve'=20=20
                    int p =3D breakCallback->PollMs();
                            ~~~~~~~~~~~~~  ^


And here are the errors on 11.2:

net/netssltransport.cc:259:18: error: out-of-line definition of
'CreateAndInitializeSslContext' does not match any declaration in
'NetSslTransport'
NetSslTransport::CreateAndInitializeSslContext(const char *conntypename)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/netssltransport.cc:267:5: error: use of undeclared identifier
'TRANSPORT_PRINT_VAR'
    TRANSPORT_PRINT_VAR( SSLDEBUG_FUNCTION, msgbuf );
    ^
net/netssltransport.cc:296:5: error: use of undeclared identifier
'TRANSPORT_PRINT_VAR'
    TRANSPORT_PRINT_VAR( SSLDEBUG_FUNCTION, msgbuf );
net/netssltransport.cc:320:33: error: use of undeclared identifier
'P4TUNE_SSL_TLS_VERSION_MIN'
    int tlsmin =3D p4tunable.Get( P4TUNE_SSL_TLS_VERSION_MIN );
net/netssltransport.cc:321:33: error: use of undeclared identifier
'P4TUNE_SSL_TLS_VERSION_MAX'
    int tlsmax =3D p4tunable.Get( P4TUNE_SSL_TLS_VERSION_MAX );
                                ^
net/netssltransport.cc:890:19: error: no member named 'SslProtocolError' in
'MsgRpc'
                e->Set( MsgRpc::SslProtocolError ) << sslErrorBuf;
                        ~~~~~~~~^
net/netssltransport.cc:1053:30: error: no member named 'PollMs' in 'KeepAli=
ve'
                    int p =3D breakCallback->PollMs();
                            ~~~~~~~~~~~~~  ^

Are you suggesting that with your patch, p4 should use the openssl from por=
ts?=20
If so, that requires patching the Makefile, too.

--=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-229021-7788-G7gTWbfTxw>