This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-11-07.01:09:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510016984.72.0.213398074469.issue31964@psf.upfronthosting.co.za>
In-reply-to
Content
/home/haypo/prog/python/3.5/Modules/expat/xmltok.c: In function 'utf8_toUtf8':
/home/haypo/prog/python/3.5/Modules/expat/xmltok.c:408:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
   const char * const fromLimBefore = fromLim;
   ^~~~~
/home/haypo/prog/python/3.5/Modules/expat/xmltok.c:414:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
   const ptrdiff_t bytesToCopy = fromLim - *fromP;
   ^~~~~
cc1: some warnings being treated as errors
*** WARNING: renaming "_elementtree" since importing it failed: PyCapsule_Import could not import module "pyexpat"


It's probably a regression caused by:

* Python 3.5: commit f2492bb6aae061aea47e21fc7e56b7ab9bfdf543
* Python 3.4: commit 86a713cb0c110b6798ca7f9e630fc511ee0a4028


I don't understand why the issue wasn't catched before. Maybe test_xml_etree is simply skipped if pyexpat compilation fails on Linux. Or buildbots and Travis CI uses ./configure --with-system-expat on Linux.
History
Date User Action Args
2017-11-07 01:09:44vstinnersetrecipients: + vstinner
2017-11-07 01:09:44vstinnersetmessageid: <1510016984.72.0.213398074469.issue31964@psf.upfronthosting.co.za>
2017-11-07 01:09:44vstinnerlinkissue31964 messages
2017-11-07 01:09:43vstinnercreate