NetBSD Problem Report #51817
From darcy@druid.net Tue Jan 10 17:17:43 2017
Return-Path: <darcy@druid.net>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2C7C37A26F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 10 Jan 2017 17:17:43 +0000 (UTC)
Message-Id: <20170110171740.B9AE0BC0C55@dilbert.druid.net>
Date: Tue, 10 Jan 2017 12:17:40 -0500 (EST)
From: darcy@NetBSD.org
Reply-To: darcy@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Python fails to install
X-Send-Pr-Version: 3.95
>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
>Last-Modified: Tue Jan 10 22:54:49 +0000 2017
>Originator: D'Arcy J.M. Cain
>Release: NetBSD 7.0.1
>Organization:
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/ IM:darcy@Vex.Net
>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
>Release-Note:
>Audit-Trail:
>Unformatted:
Another point of information - it works on -current which has
OpenSSL 1.0.2j 26 Sep 2016
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.