NetBSD Problem Report #51817

From  Tue Jan 10 17:17:43 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 2C7C37A26F
	for <>; Tue, 10 Jan 2017 17:17:43 +0000 (UTC)
Message-Id: <>
Date: Tue, 10 Jan 2017 12:17:40 -0500 (EST)
Subject: Python fails to install
X-Send-Pr-Version: 3.95

>Number:         51817
>Category:       pkg
>Synopsis:       Python fails to install due to missing
>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
D'Arcy J.M. Cain <> IM:darcy@Vex.Net
System: NetBSD 7.0.1 NetBSD 7.0.1 (GENERIC.201605221355Z) amd64
Architecture: x86_64
Machine: amd64
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/'
pkg_create: lstat failed for file lib/python3.6/lib-dynload/ 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 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/ 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.
Try to install Python (I tried 3.5 and 3.6) in a 7.0.1 NetBSD.



 Another point of information - it works on -current which has
 OpenSSL 1.0.2j  26 Sep 2016

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.