[Bug 210820] lang/python27: _ssl.so fails to build (Undefined symbol "SSLv2_method")
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 10 17:59:33 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210820
--- Comment #6 from Fukang Chen <loader at FreeBSD.org> ---
Okay, I will continue posting here.
I think the change was introduced by r417651:
https://svnweb.freebsd.org/ports?view=revision&revision=417651
r417650:
% make WITH_OPENSSL_PORT=1 -C /usr/ports/lang/python27 -V LDFLAGS
-lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib
-L/usr/local/lib -fstack-protector
r417651:
% make DEFAULT_VERSIONS+=ssl=openssl -C /usr/ports/lang/python27 -V LDFLAGS
-lpthread -Wl,-rpath=/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 USES:
https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=markup&pathrev=417409#l1354
https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=markup&pathrev=417409#l1450
Later lang/python27/Makefile has changed to:
USES= cpe ncurses pkgconfig readline ssl tar:xz
the first "-Wl,-rpath=/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-CURRENT,
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]
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-python
mailing list