Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2016 17:59:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 210820] lang/python27: _ssl.so fails to build (Undefined symbol "SSLv2_method")
Message-ID:  <bug-210820-21822-ITTimU2Nzb@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210820-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210820-21822@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=3D210820

--- Comment #6 from Fukang Chen <loader@FreeBSD.org> ---
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.=



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