pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51817: Python fails to install



>Number:         51817
>Category:       pkg
>Synopsis:       Python fails to install due to missing _ssl.so
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 10 17:20:00 +0000 2017
>Originator:     D'Arcy J.M. Cain
>Release:        NetBSD 7.0.1
>Organization:
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost
>Environment:
System: NetBSD cloud.vex.net 7.0.1 NetBSD 7.0.1 (GENERIC.201605221355Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
Building Python fails with the following error.
=> Creating binary package /usr/obj/lang/python36/work/.packages/python36-3.6.0.tgz
pkg_create: can't stat `/usr/obj/lang/python36/work/.destdir/usr/pkg/lib/python3.6/lib-dynload/_ssl.so'
pkg_create: lstat failed for file lib/python3.6/lib-dynload/_ssl.so: No such file or directory
mv: rename /usr/obj/lang/python36/work/.packages/python36-3.6.0.tmp.tgz to /usr/obj/lang/python36/work/.packages/python36-3.6.0.tgz: No such file or directory
*** Error code 1

The file named does not exist but _ssl_failed.so does.  This happens if
loading openssl fails.  The file gets renamed.  If I rename the file to
the one that PLIST expects then the install completes but importing ssl
gives this error.

ImportError: /usr/pkg/lib/python3.6/lib-dynload/_ssl.so: Undefined PLT symbol "SSL_get0_alpn_selected" (symnum = 147)

As far as I can tell the difference between 7.0_STABLE where it works and
7.0.1 where it doesn't is the version of openssl which is "OpenSSL 1.0.1u
22 Sep 2016" in the first and "OpenSSL 1.0.2h 3 May 2016" in the latter.
>How-To-Repeat:
Try to install Python (I tried 3.5 and 3.6) in a 7.0.1 NetBSD.
>Fix:
Unknown



Home | Main Index | Thread Index | Old Index