Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Nov 2016 20:45:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214371] devel/py-lxml:
Message-ID:  <bug-214371-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 214371
           Summary: devel/py-lxml:
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: wg@FreeBSD.org
          Reporter: petersanchez@gmail.com
          Assignee: wg@FreeBSD.org
             Flags: maintainer-feedback?(wg@FreeBSD.org)

OS: 10.3-RELEASE-p12

The port will fail to build with xlocale-208080 (devel/xlocale) installed.
xlocale-208080 adds /usr/local/include/xlocale.h which conflicts with
/usr/include/xlocale.h. Output of the port build is as follows:

root:dev ~ # cd /usr/ports/devel/py-lxml/
root:dev /usr/ports/devel/py-lxml # make all
=3D=3D=3D>  License BSD3CLAUSE accepted by the user
=3D=3D=3D>  Found saved configuration for py27-lxml-3.6.0
=3D=3D=3D>   py27-lxml-3.6.0 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by py27-lxml-3.6.0 for building
=3D=3D=3D>  Extracting for py27-lxml-3.6.0
=3D> SHA256 Checksum OK for lxml-3.6.0.tar.gz.
=3D=3D=3D>  Patching for py27-lxml-3.6.0
=3D=3D=3D>  Applying FreeBSD patches for py27-lxml-3.6.0
=3D=3D=3D>   py27-lxml-3.6.0 depends on package: py27-setuptools27>0 - found
=3D=3D=3D>   py27-lxml-3.6.0 depends on file: /usr/local/bin/python2.7 - fo=
und
=3D=3D=3D>   py27-lxml-3.6.0 depends on shared library: libxml2.so - found
(/usr/local/lib/libxml2.so)
=3D=3D=3D>   py27-lxml-3.6.0 depends on shared library: libxslt.so - found
(/usr/local/lib/libxslt.so)
=3D=3D=3D>  Configuring for py27-lxml-3.6.0
Building lxml version 3.6.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in one of the following directories:
  /usr/local/lib
  /usr/lib
running config
=3D=3D=3D>  Building for py27-lxml-3.6.0
Building lxml version 3.6.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in one of the following directories:
  /usr/local/lib
  /usr/lib
running build
running build_py
creating build
creating build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7
creating build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/builder.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/cssselect.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/pyclasslookup.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/usedoctest.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/ElementInclude.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/sax.py -> build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/_elementpath.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/__init__.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/doctestcompare.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
creating build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/__init__.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
creating build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/_html5builder.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/builder.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/html5parser.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/_diffcommand.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/clean.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/formfill.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/usedoctest.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/_setmixin.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/soupparser.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/ElementSoup.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/__init__.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/defs.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
copying src/lxml/html/diff.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/html
creating build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/lxml.etree_api.h ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml
copying src/lxml/includes/relaxng.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/c14n.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/config.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/tree.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/uri.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/includes
creating
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources
creating
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/r=
ng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/r=
ng
creating
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl
creating
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.=
xsl
->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_me=
ssage.xsl
->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt=
1.xsl
->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expa=
nd.xsl
->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_sk=
eleton_for_xslt1.xsl
->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.tx=
t ->
build/lib.freebsd-10.3-RELEASE-p11-amd64-2.7/lxml/isoschematron/resources/x=
sl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.freebsd-10.3-RELEASE-p11-amd64-2.7
creating build/temp.freebsd-10.3-RELEASE-p11-amd64-2.7/src
creating build/temp.freebsd-10.3-RELEASE-p11-amd64-2.7/src/lxml
cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC
-I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include
-Isrc/lxml/includes -I/usr/local/include/python2.7 -c src/lxml/lxml.etree.c=
 -o
build/temp.freebsd-10.3-RELEASE-p11-amd64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:357:
In file included from /usr/local/include/libxslt/xsltInternals.h:24:
In file included from /usr/local/include/libxslt/xsltlocale.h:20:
/usr/local/include/xlocale.h:22:30: error: typedef redefinition with differ=
ent
types ('struct _LC_locale_t *' vs 'struct _xlocale *')
typedef struct _LC_locale_t* locale_t;
                             ^
/usr/include/xlocale/_strings.h:31:26: note: previous definition is here
typedef struct  _xlocale *locale_t;
                          ^
In file included from src/lxml/lxml.etree.c:357:
In file included from /usr/local/include/libxslt/xsltInternals.h:24:
In file included from /usr/local/include/libxslt/xsltlocale.h:20:
/usr/local/include/xlocale.h:39:6: error: conflicting types for 'freelocale'
void freelocale(locale_t loc);
     ^
/usr/include/xlocale/_locale.h:51:7: note: previous declaration is here
int              freelocale(locale_t loc);
                 ^
2 errors generated.
Compile failed: command 'cc' failed with exit status 1
creating tmp
cc -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include
-I/usr/include/libxml2 -c /tmp/xmlXPathInit9VAH3M.c -o tmp/xmlXPathInit9VAH=
3M.o
/tmp/xmlXPathInit9VAH3M.c:2:1: warning: type specifier missing, defaults to
'int' [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
1 warning generated.
cc tmp/xmlXPathInit9VAH3M.o -L/usr/local/lib -L/usr/lib -lxml2 -o a.out
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/py-lxml
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-lxml
root:dev /usr/ports/devel/py-lxml #

Removing the xlocale-208080 install resolves this issue.

--=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-214371-13>