[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

Segev Finer report at bugs.python.org
Wed Jun 28 18:24:05 EDT 2017


New submission from Segev Finer:

This is caused by _GNU_SOURCE being defined here: https://github.com/python/cpython/blob/c08177a1ccad2ed0d50898c2731b518c631aed14/configure.ac#L124, But also getting defined by AC_USE_SYSTEM_EXTENSIONS (https://github.com/python/cpython/blob/c08177a1ccad2ed0d50898c2731b518c631aed14/configure.ac#L906).

AC_USE_SYSTEM_EXTENSIONS does use an #ifndef but Python's AC_DEFINE seems to be getting order after it.

----------
components: Build
messages: 297238
nosy: Segev Finer
priority: normal
severity: normal
status: open
title: ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]
type: compile error
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30797>
_______________________________________


More information about the Python-bugs-list mailing list