NetBSD Problem Report #52980

From  Mon Feb  5 16:57:56 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 26D297A18C
	for <>; Mon,  5 Feb 2018 16:57:56 +0000 (UTC)
Message-Id: <>
Date: Mon,  5 Feb 2018 16:57:55 +0000 (UTC)
Subject: python27 fails to build: ImportError: No module named _struct
X-Send-Pr-Version: www-1.0

>Number:         52980
>Category:       pkg
>Synopsis:       python27 fails to build: ImportError: No module named _struct
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 05 17:00:00 +0000 2018
>Originator:     Rusty Dev
>Release:        7.1.1
NetBSD 7.1.1 (GENERIC.201712222334Z) amd64
ld: /usr/pkgsrc/lang/python27/work/.buildlink/lib/libffi.a(closures.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/pkgsrc/lang/python27/work/.buildlink/lib/libffi.a: could not read symbols: Bad value
Traceback (most recent call last):
  File "/usr/pkgsrc/lang/python27/work/.destdir/usr/pkg/lib/python2.7/", line 16, in <module>
    import struct
  File "/usr/pkgsrc/lang/python27/work/.destdir/usr/pkg/lib/python2.7/", line 1, in <module>
    from _struct import *
ImportError: No module named _struct

7.1.1 python27 package fails to build with the above error.
cd /usr/pkgsrc/lang/python27 && make install

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.