From owner-freebsd-python@freebsd.org Sun Jul 10 17:59:33 2016 Return-Path: Delivered-To: freebsd-python@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 43E07B831B6 for ; Sun, 10 Jul 2016 17:59:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2D5441793 for ; Sun, 10 Jul 2016 17:59:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 28F5EB831B5; Sun, 10 Jul 2016 17:59:33 +0000 (UTC) Delivered-To: python@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 28984B831B4 for ; Sun, 10 Jul 2016 17:59:33 +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 F20B81792 for ; Sun, 10 Jul 2016 17:59:32 +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 u6AHxWjM020487 for ; Sun, 10 Jul 2016 17:59:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 210820] lang/python27: _ssl.so fails to build (Undefined symbol "SSLv2_method") Date: Sun, 10 Jul 2016 17:59:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: loader@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-python@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2016 17:59:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210820 --- Comment #6 from Fukang Chen --- Okay, I will continue posting here. I think the change was introduced by r417651: https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D417651 r417650: % make WITH_OPENSSL_PORT=3D1 -C /usr/ports/lang/python27 -V LDFLAGS -lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=3D/usr/lib:/usr/local/lib -L/usr/local/lib -fstack-protector r417651: % make DEFAULT_VERSIONS+=3Dssl=3Dopenssl -C /usr/ports/lang/python27 -V LDF= LAGS -lpthread -Wl,-rpath=3D/usr/lib:/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector in the previous version, bsd.port.mk loads Mk/bsd.openssl.mk before the USE= S: https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=3Dmarkup&pathrev= =3D417409#l1354 https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=3Dmarkup&pathrev= =3D417409#l1450 Later lang/python27/Makefile has changed to: USES=3D cpe ncurses pkgconfig readline ssl tar:xz the first "-Wl,-rpath=3D/usr/lib:/usr/local/lib" comes from Uses/ncurses.mk then_ssl.so looks for libssl.so.8 in /usr/lib:/usr/local/lib on 11.0-CURREN= T, and the SSLv2 in /usr/lib/libssl.so.8 is disabled there. # readelf -d /usr/local/lib/python2.7/lib-dynload/_ssl.so | head -n 10 Dynamic section at offset 0x13be0 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libthr.so.3] 0x0000000000000001 (NEEDED) Shared library: [libssl.so.8] 0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.8] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.7] 0x000000000000000f (RPATH) Library rpath: [/usr/lib:/usr/local/lib] 0x000000000000001d (RUNPATH) Library runpath: [/usr/lib:/usr/local/lib] --=20 You are receiving this mail because: You are the assignee for the bug.=