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 ned.deily
Recipients Segev Finer, ned.deily, vstinner
Date 2017-07-07.05:53:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499406797.01.0.0537840016907.issue30797@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the report.  This warning is currently visible on many/all of the buildbots on all branches.  The conflict is caused by the upgrade of the bundled to libexpat to version 2.2.1 (bpo-30694). 2.2.1 introduced a define of _GNU_SOURCE into Modules/expat/xmlparse.c.  The definition in xmlparse is simply:

#define _GNU_SOURCE

But Python, in pyconfig.h, which ./configure generates from pyconfig.h.in, may already have defined _GNU_SOURCE thusly:

#define _GNU_SOURCE 1

pyconfig.h gets included into our copy of Modules/expat/expat_config.h which is included later in xmlparse.c causing the compile warning.

The simplest way to avoid the warning is to just change the definition in xmlparse.c to match that in pyconfig.h; the compilers don't complain if the definition is identical.  I have now merged that fix into the 3.6 branch so builders of 3.6.2 won't see the warning.  I will leave this open for @haypo to review and to handle merging into the other branches affected by bpo-30694 (master, 3.5, 2.7, 3.4, 3.3).
History
Date User Action Args
2017-07-07 05:53:17ned.deilysetrecipients: + ned.deily, vstinner, Segev Finer
2017-07-07 05:53:17ned.deilysetmessageid: <1499406797.01.0.0537840016907.issue30797@psf.upfronthosting.co.za>
2017-07-07 05:53:16ned.deilylinkissue30797 messages
2017-07-07 05:53:16ned.deilycreate