From owner-freebsd-ports-bugs@freebsd.org Mon Feb 6 13:33:05 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 224B7CD1B09 for ; Mon, 6 Feb 2017 13:33:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0F4E3250 for ; Mon, 6 Feb 2017 13:33:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v16DX478097640 for ; Mon, 6 Feb 2017 13:33:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216845] security/tor: fix build with libressl-devel Date: Mon, 06 Feb 2017 13:33:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@anongoth.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2017 13:33:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216845 Bug ID: 216845 Summary: security/tor: fix build with libressl-devel Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: pkubaj@anongoth.pl CC: yuri@rawbw.com CC: yuri@rawbw.com Flags: maintainer-feedback?(yuri@rawbw.com) Created attachment 179675 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179675&action= =3Dedit patch Building tor with libressl-devel currently graciously fails: src/test/test_tortls.c:449:13: error: no member named 'rwstate' in 'struct ssl_st' tls->ssl->rwstate =3D SSL_READING; ~~~~~~~~ ^ src/test/test_tortls.c:457:13: error: no member named 'rwstate' in 'struct ssl_st' tls->ssl->rwstate =3D SSL_READING; ~~~~~~~~ ^ src/test/test_tortls.c:465:13: error: no member named 'rwstate' in 'struct ssl_st' tls->ssl->rwstate =3D 0; ~~~~~~~~ ^ src/test/test_tortls.c:466:13: error: no member named 'shutdown' in 'struct ssl_st' tls->ssl->shutdown =3D SSL_RECEIVED_SHUTDOWN; ~~~~~~~~ ^ src/test/test_tortls.c:467:17: error: no member named 'warn_alert' in 'stru= ct ssl3_state_st' tls->ssl->s3->warn_alert =3DSSL_AD_CLOSE_NOTIFY; ~~~~~~~~~~~~ ^ src/test/test_tortls.c:1138:11: error: no member named 'ssl_pending' in 'st= ruct ssl_method_st' method->ssl_pending =3D fixed_ssl_pending; ~~~~~~ ^ src/test/test_tortls.c:1412:22: error: no member named 'sess_cert' in 'stru= ct ssl_session_st' tls->ssl->session->sess_cert =3D (void *)sess; ~~~~~~~~~~~~~~~~~ ^ src/test/test_tortls.c:1552:24: error: no member named 'tls_session_secret_= cb' in 'struct ssl_st' tt_assert(!tls->ssl->tls_session_secret_cb); ~~~~~~~~ ^ ./src/ext/tinytest_macros.h:111:37: note: expanded from macro 'tt_assert' #define tt_assert(b) tt_assert_msg((b), "assert("#b")") ^ ./src/ext/tinytest_macros.h:106:11: note: expanded from macro 'tt_assert_ms= g' tt_want_(b, msg, TT_EXIT_TEST_FUNCTION); ^ ./src/ext/tinytest_macros.h:91:8: note: expanded from macro 'tt_want_' if (!(b)) { \ ^ src/test/test_tortls.c:1561:24: error: no member named 'tls_session_secret_= cb' in 'struct ssl_st' tt_assert(!tls->ssl->tls_session_secret_cb); ~~~~~~~~ ^ ./src/ext/tinytest_macros.h:111:37: note: expanded from macro 'tt_assert' #define tt_assert(b) tt_assert_msg((b), "assert("#b")") ^ ./src/ext/tinytest_macros.h:106:11: note: expanded from macro 'tt_assert_ms= g' tt_want_(b, msg, TT_EXIT_TEST_FUNCTION); ^ ./src/ext/tinytest_macros.h:91:8: note: expanded from macro 'tt_want_' if (!(b)) { \ ^ src/test/test_tortls.c:1685:23: error: no member named 'info_callback' in 'struct ssl_st' tt_assert(tls->ssl->info_callback =3D=3D tor_tls_server_info_callback); ~~~~~~~~ ^ ./src/ext/tinytest_macros.h:111:37: note: expanded from macro 'tt_assert' #define tt_assert(b) tt_assert_msg((b), "assert("#b")") ^ ./src/ext/tinytest_macros.h:106:11: note: expanded from macro 'tt_assert_ms= g' tt_want_(b, msg, TT_EXIT_TEST_FUNCTION); ^ ./src/ext/tinytest_macros.h:91:8: note: expanded from macro 'tt_want_' if (!(b)) { \ ^ src/test/test_tortls.c:1688:23: error: no member named 'info_callback' in 'struct ssl_st' tt_assert(tls->ssl->info_callback =3D=3D tor_tls_debug_state_callback); ~~~~~~~~ ^ ./src/ext/tinytest_macros.h:111:37: note: expanded from macro 'tt_assert' #define tt_assert(b) tt_assert_msg((b), "assert("#b")") ^ ./src/ext/tinytest_macros.h:106:11: note: expanded from macro 'tt_assert_ms= g' tt_want_(b, msg, TT_EXIT_TEST_FUNCTION); ^ ./src/ext/tinytest_macros.h:91:8: note: expanded from macro 'tt_want_' if (!(b)) { \ ^ src/test/test_tortls.c:1936:11: error: no member named 'ssl_read' in 'struct ssl_method_st' method->ssl_read =3D fixed_ssl_read; ~~~~~~ ^ src/test/test_tortls.c:1937:11: error: no member named 'ssl_shutdown' in 'struct ssl_method_st' method->ssl_shutdown =3D fixed_ssl_shutdown; ~~~~~~ ^ src/test/test_tortls.c:2048:13: error: no member named 'handshake_func' in 'struct ssl_st' tls->ssl->handshake_func =3D dummy_handshake_func; ~~~~~~~~ ^ src/test/test_tortls.c:2050:11: error: no member named 'ssl_read' in 'struct ssl_method_st' method->ssl_read =3D fixed_ssl_read; ~~~~~~ ^ src/test/test_tortls.c:2128:11: error: no member named 'ssl_write' in 'stru= ct ssl_method_st' method->ssl_write =3D fixed_ssl_write; ~~~~~~ ^ src/test/test_tortls.c:2129:13: error: no member named 'handshake_func' in 'struct ssl_st' tls->ssl->handshake_func =3D dummy_handshake_func; ~~~~~~~~ ^ src/test/test_tortls.c:2137:13: error: no member named 'rwstate' in 'struct ssl_st' tls->ssl->rwstate =3D SSL_READING; ~~~~~~~~ ^ src/test/test_tortls.c:2144:13: error: no member named 'rwstate' in 'struct ssl_st' tls->ssl->rwstate =3D SSL_READING; ~~~~~~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 20 errors generated. The attached patch fixes those errors, allowing the port to be built with {open,libre}ssl{,devel}. It's based on the patch used in OpenBSD ports. --=20 You are receiving this mail because: You are the assignee for the bug.=