pkgsrc-Bugs archive

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

pkg/52980: python27 fails to build: ImportError: No module named _struct



>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:


Home | Main Index | Thread Index | Old Index