NetBSD Problem Report #52980
From www@NetBSD.org Mon Feb 5 16:57:56 2018
Return-Path: <www@NetBSD.org>
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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 26D297A18C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 5 Feb 2018 16:57:56 +0000 (UTC)
Message-Id: <20180205165755.3B3127A227@mollari.NetBSD.org>
Date: Mon, 5 Feb 2018 16:57:55 +0000 (UTC)
From: rustydev7@gmail.com
Reply-To: rustydev7@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
NetBSD 7.1.1 (GENERIC.201712222334Z) amd64
>Description:
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/compileall.py", line 16, in <module>
import struct
File "/usr/pkgsrc/lang/python27/work/.destdir/usr/pkg/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
7.1.1 python27 package fails to build with the above error.
>How-To-Repeat:
cd /usr/pkgsrc/lang/python27 && make install
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.