Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 23:48:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 226256] lang/python27 fails to build: importing pyexpat.so fails with: Undefined symbol "XML_ParserCreate_MM"
Message-ID:  <bug-226256-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226256

            Bug ID: 226256
           Summary: lang/python27 fails to build: importing pyexpat.so
                    fails with: Undefined symbol "XML_ParserCreate_MM"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: skh1002@hotmail.com
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

I am trying to build the latest Python 2.7 (2.7.14_1) and it fails on freeB=
SD
10.3-RELEASE-p12, because of an undefined symbol "XML_ParserCreate_MM" in
pyexpat. Last time I built Python 2.7.3 and everything was fine. The follow=
ing
errors are generated:

$portmaster lang/python
...
building 'pyexpat' extension
...
cc -shared -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -O2 -pipe -I/usr/local/include -fstack-protector
-fno-strict-aliasing -I/usr/local/include -I/usr/local/include
build/temp.freebsd-10.3-RELEASE-p12-amd64-2.7/var/ports/usr/ports/lang/pyth=
on27/work/Python-2.7.14/Modules/pyexpat.o
build/temp.freebsd-10.3-RELEASE-p12-amd64-2.7/var/ports/usr/ports/lang/pyth=
on27/work/Python-2.7.14/Modules/expat/xmlparse.o
build/temp.freebsd-10.3-RELEASE-p12-amd64-2.7/var/ports/usr/ports/lang/pyth=
on27/work/Python-2.7.14/Modules/expat/xmlrole.o
build/temp.freebsd-10.3-RELEASE-p12-amd64-2.7/var/ports/usr/ports/lang/pyth=
on27/work/Python-2.7.14/Modules/expat/xmltok.o
-L/usr/local/lib -L. -lpython2.7 -o
build/lib.freebsd-10.3-RELEASE-p12-amd64-2.7/pyexpat.so
*** WARNING: renaming "pyexpat" since importing it failed:
build/lib.freebsd-10.3-RELEASE-p12-amd64-2.7/pyexpat.so: Undefined symbol
"XML_ParserCreate_MM"
building '_elementtree' extension
...
cc -shared -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -O2 -pipe -I/usr/local/include -fstack-protector
-fno-strict-aliasing -I/usr/local/include -I/usr/local/include
build/temp.freebsd-10.3-RELEASE-p12-amd64-2.7/var/ports/usr/ports/lang/pyth=
on27/work/Python-2.7.14/Modules/_elementtree.o
-L/usr/local/lib -L. -lpython2.7 -o
build/lib.freebsd-10.3-RELEASE-p12-amd64-2.7/_elementtree.so
*** WARNING: renaming "_elementtree" since importing it failed:
PyCapsule_Import could not import module "pyexpat"
...
Failed to build these modules:
_elementtree       pyexpat
...
=3D=3D=3D>   Registering installation for python27-2.7.14_1 as automatic
pkg-static: Unable to access file
/var/ports/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-d=
ynload/_elementtree.so:No
such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-d=
ynload/pyexpat.so:No
such file or directory
*** Error code 74

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226256-13>